PUT
/
workspaces
/
{workspace_id}
/
users
/
{user_id}
curl --request PUT \
  --url https://app.getcensus.com/api/v1/workspaces/{workspace_id}/users/{user_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "role": "owner"
}'
{
  "status": "updated",
  "data": {
    "id": "12345",
    "email": "john.doe@example.com",
    "role": "admin",
    "created_at": "2023-08-20T10:00:00Z"
  }
}

Authorizations

Authorization
string
headerrequired

Bearer authorization using your Personal Access Token. Generate a new PAT on your user settings page.

Path Parameters

workspace_id
integer
required

ID of the workspace

user_id
integer
required

ID of the user

Body

application/json
role
enum<string>

The new workspace role for the user.

Available options:
owner,
editor,
operator,
viewer

Response

200 - application/json
status
enum<string>
required

The outcome of the update request

Available options:
updated
data
object
required