UsersController_updateUser
PATCH
/users/{id}
const url = 'https://example.com/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: { cookie: 'session=<session>', 'x-tenant-schema': 'example', 'Content-Type': 'application/json' }, body: '{"name":"example","department":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --header 'x-tenant-schema: example' \ --cookie session=<session> \ --data '{ "name": "example", "department": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Header Parameters
Section titled “Header Parameters”x-tenant-schema
required
string
The tenant of the request.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
string
department
string
Examplegenerated
{ "name": "example", "department": "example"}Responses
Section titled “Responses”The updated user, as far as the caller may read it.
Media typeapplication/json
object
id
string
email
string
name
string
department
string
Examplegenerated
{ "id": "example", "email": "example", "name": "example", "department": "example"}