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"
}'
{
  "data": {
    "created_at": "2023-08-20T10:00:00Z",
    "email": "john.doe@example.com",
    "id": "12345",
    "role": "admin"
  },
  "status": "updated"
}

Authorizations

Authorization
string
headerrequired

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

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
data
object
required
status
enum<string>
required

The outcome of the update request

Available options:
updated