Skip to main content
POST
/
document
/
remove-collaborator-many
Remove a collaborator from documents
curl --request POST \
  --url https://app.myhero.so/document/remove-collaborator-many \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "documentIds": [
    "<string>"
  ],
  "userId": "<string>",
  "email": "jsmith@example.com",
  "cancelInvites": true
}
'
{
  "data": {
    "success": true,
    "modifiedCount": 123
  }
}

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 multiple documents at once. Pass cancelInvites: true along with email to also cancel any pending invitations for that user in the affected project. Returns a modifiedCount of updated documents.

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
documentIds
string[]
required
Minimum array length: 1
Minimum string length: 1
userId
string
required
Minimum string length: 1
email
string<email>
cancelInvites
boolean

Response

200 response

data
object
required