Skip to main content
PATCH
/
user
/
{id}
Update User
curl --request PATCH \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/user/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'firstName=<string>' \
  --form 'lastName=<string>' \
  --form 'ipi=<string>' \
  --form 'role=<string>' \
  --form 'nickName=<string>' \
  --form 'userType=<string>' \
  --form 'phone=<string>' \
  --form 'country=<string>' \
  --form file=@example-file
{}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/user/example-id', {
  method: 'PATCH',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({})
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

User ID

Body

multipart/form-data
firstName
string

The updated first name of the user

lastName
string

The updated last name of the user

ipi
string

The updated IPI (Interested Parties Information) of the user

role
string

The updated role of the user

nickName
string

The updated nickname of the user

userType
string

The updated type of user

phone
string

The updated phone number of the user

country
string

The updated country of the user

file
file

Profile image file

Response

success

The response is of type object.