Skip to main content
PATCH
/
organizations
/
current
/
users
/
{userId}
/
role
Update user role and site assignment
curl --request PATCH \
  --url https://app.azalt.co/api/v1/organizations/current/users/{userId}/role \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "COLLECTOR",
  "assignedSiteIds": [
    "<string>"
  ]
}
'
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

userId
string
required

Body

application/json
role
enum<string>
required
Available options:
COLLECTOR,
APPROVER,
VIEWER,
MANAGER,
OWNER
assignedSiteIds
string[]

Response

Successful response

success
boolean
required
message
string
required