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

Removes a collaborator from the workspace. Requires workspace edit permission. Broadcasts a removal event to connected clients. Returns true on success.

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
workspaceId
string
required
Minimum string length: 1
userId
string
required
Minimum string length: 1

Response

200 response

data
boolean
required