Skip to main content
POST
/
document
/
remove-collaborator
Remove a document collaborator
curl --request POST \
  --url https://app.myhero.so/document/remove-collaborator \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "documentId": "<string>",
  "userId": "<string>"
}
'
{
  "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.

Removes a collaborator by userId from a single document and cleans up their access from any parent folder hierarchy if they no longer have access to other documents in those folders.

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

Response

200 response

data
object
required