Skip to content

Update a member's role

PUT
/api/workspaces/{id}/members/{userId}
id
required
string
userId
required
string
object
role
required
string
Allowed values: admin member viewer

Successful response

object
success

Whether the request succeeded.

boolean
data

Endpoint-specific response payload.

message
string
Example
Operation completed
error
string
Example
Error message

Invalid request

object
success
boolean
error
string
Example
Error message

Internal server error

object
success
boolean
error
string
Example
Error message