OpenAPI 3.1.12026-08-114448163.1 KB
2289f3059f77
users
Update a user
Updates a client user by ID.
patch/users/{id}
Path parameters
idstring cuid required
The ID of the item
Example:cmf41ajzv003706un4i99q19z
Headers
x-client-idstring cuid required
The ID of the client
Example:cmf41ajzv003706un4i99q19z
Request body
Example request
{
"role": "admin"
}Response
User updated
Example response
{
"id": "cmf41ajzv003706un4i99q1a0",
"createdAt": "2024-05-14T08:30:00Z",
"email": "frida@example.com",
"firstName": "Frida",
"lastName": "Meyer",
"roles": [
"client_admin"
]
}