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>"
}
'
{
  "data": {
    "success": true
  }
}

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