v1
latestOpenAPI 3.1.12026-07-124448163.2 KBusers
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"
]
}