The
/user/{userId}
endpoint allows updating the details of a specific user identified by their unique userId.
Method:PATCH
Request Payload:
Parameter | Type | Description |
---|---|---|
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 (Optional) | string | The updated phone number of the user. |
country (Optional) | string | The updated country of the user. |
Authentication
This endpoint requires authentication. Include your bearer token in the Authorization header.Path Parameters
Parameter | Type | In | Required | Description |
---|---|---|---|---|
id | string | path | ā | User ID |
Request Body
Responses
ā 200 - success
ā ļø 401 - Unauthorized
ā ļø 404 - Not Found
ā 500 - Internal Server Error
Tags
User
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
User ID
Body
multipart/form-data
The updated first name of the user
The updated last name of the user
The updated IPI (Interested Parties Information) of the user
The updated role of the user
The updated nickname of the user
The updated type of user
The updated phone number of the user
The updated country of the user
Profile image file
Response
success
The response is of type object
.