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
{}
/user/ Description:
The /user/{userId} endpoint allows updating the details of a specific user identified by their unique userId.
Method:
PATCH
Request Payload:
ParameterTypeDescription
firstNamestringThe updated first name of the user.
lastNamestringThe updated last name of the user.
ipistringThe updated IPI (Interested Parties Information) of the user.
rolestringThe updated role of the user.
nickNamestringThe updated nickname of the user.
userTypestringThe updated type of user.
phone (Optional)stringThe updated phone number of the user.
country (Optional)stringThe updated country of the user.

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Path Parameters

ParameterTypeInRequiredDescription
idstringpathāœ…User ID

Request Body

Responses

āœ… 200 - success

āš ļø 401 - Unauthorized

āš ļø 404 - Not Found

āŒ 500 - Internal Server Error

Tags

User

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.

⌘I