Skip to main content
POST
/
document
/
update-collaborator-role
Update a collaborator's role
curl --request POST \
  --url https://app.myhero.so/document/update-collaborator-role \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "documentId": "<string>",
  "userId": "<string>",
  "newRole": "owner"
}
'
{
  "data": {
    "success": 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 collaborator on a single document. Requires workspace-level edit permission. Returns 404 if the document does not exist.

Authorizations

Authorization
string
header
required

HERO personal access token

Body

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

Response

200 response

data
object
required