Skip to main content
PUT
/
workspace
/
{workspaceId}
/
change-role
Update a collaborator's workspace role
curl --request PUT \
  --url https://app.myhero.so/workspace/{workspaceId}/change-role \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "<string>",
  "role": "owner"
}
'
{
  "data": true
}

Documentation Index

Fetch the complete documentation index at: https://developers.myhero.so/llms.txt

Use this file to discover all available pages before exploring further.

Changes the role of a workspace collaborator identified by userId. Broadcasts a real-time role update event to connected clients on success.

Authorizations

Authorization
string
header
required

HERO personal access token

Path Parameters

workspaceId
string
required
Minimum string length: 1

Body

application/json
userId
string
required
Minimum string length: 1
role
enum<string>
required
Available options:
owner,
admin,
member,
editor,
viewer

Response

200 response

data
boolean
required