Update workspace user
Update the role of a workspace user. Throws 403 if Access Controls are not available for the organization.
Request schema
Path parameters
workspace_id
integerrequired
ID of the workspace
user_id
integerrequired
ID of the user
Header parameters
Authorization
stringrequired
HTTP: basicAuth
HTTP AuthorizationScheme: basic
Request
role
stringrequired
The new workspace role for the user.
enum:
Http + 1.1
PUT
https://app.getcensus.com/api/v1/workspaces/{workspace_id}/users/{user_id}
PUT /api/v1/workspaces/{workspace_id}/users/{user_id} HTTP/1.1 Authorization: Bearer REPLACE_BEARER_TOKEN Content-Type: application/json Host: app.getcensus.com Content-Length: 21 { "role": "owner" }
Responses
200
Successfully updated workspace user role.
403
The feature you're trying to use is not available for your organization.
404
Resource not found.
200
status
stringrequired
The outcome of the update request
enum:
data
objectrequired
id
string
Unique identifier for the user.
example:
email
string
User's email address.
example:
role
string
User's role.
enum:
created_at
string
Timestamp of user account creation.
example:
403
status
integer
HTTP status code.
enum:
message
string
Error message.
example:
404
status
integer
HTTP status code.
enum:
{ "status": "updated", "data": { "id": "12345", "email": "john.doe@example.com", "role": "admin", "created_at": "2023-08-20T10:00:00Z" } }