Gateway GRPC
Update a user
patch/v2/organisations/{organisation_id}/users/{user_id}
Request
- Base URLhttps://api.cautio.in (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Path parameters
organisation_idstring required
Example:019aa01c-a1a9-7fae-961b-23845147892e
Organisation ID
user_idstring required
Example:123e4567-e89b-12d3-a456-426614174000
User ID
Request body
Example request
{
"first_name": "John",
"last_name": "Doe",
"assignments": [
{
"role_id": "a9a7e4e8-3e4b-4b1a-8e4a-4a2a4a2a4a2a",
"contexts": [
{
"organisation_id": "a9a7e4e8-3e4b-4b1a-8e4a-4a2a4a2a4a2a",
"resource_type": "VEHICLE",
"resource_ids": [
"a9a7e4e8-3e4b-4b1a-8e4a-4a2a4a2a4a2a"
],
"exclude_children": true
}
]
}
],
"auto_assign": true
}Response
Updated user details
Example response
{
"roles": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Admin"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.