Skip to main content
PATCH
Update User
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

/user/ Description: The /user/{userId} endpoint allows updating the details of a specific user identified by their unique userId. Authorization:
  • Own resource: any authenticated user (self-access)
  • Other resources: admin or higher
Method: PATCH Request Payload:

Code Examples

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.