API Guide

}
]
}
PUT /auth/users/{userId}
Updates information for a specific user.
API
PUT /auth/users/{userId}
Description
This API updates user information based on the user ID. Users can change their own data, and users with ADMIN
role can update the user data of others.
Parameters
Table 11. API parameters
Filter name Description
userId
required string (path)
userId parameter as input to update user information.
body
required (body)
Update user data.
{
"first_name": "string",
"last_name": "string",
"contact_number": "string"
}
Responses 200 — Success or error response
{
"new_object_id": "string",
"id": "string",
"message": "string",
"messageParams": [
"string"
],
"messages": [
{
"id": "string",
"message": "string",
"field_name": "string",
"messageParams": [
"string"
]
}
]
}
401 — You are not authorized to perform this operation.
{
"new_object_id": "string",
"id": "string",
"message": "string",
"messageParams": [
"string"
],
"messages": [
{
"id": "string",
"message": "string",
"field_name": "string",
"messageParams": [
"string"
Authentication
25