POST/spaces/members/remove

Remove a user or group from a space

Requires Manage/Member space permission. Provide userId or groupId (not both).

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

3 body fields
groupIdstringoptional
ID of the group to remove. Mutually exclusive with `userId`.
spaceIdstringrequired
ID of the space to remove the member from.
userIdstringoptional
ID of the user to remove. Mutually exclusive with `groupId`.

3 status codes
200Member removed
dataunknownoptional
Response payload
statusintegeroptional
successbooleanoptional
400Validation error
errorstringoptional
Reason phrase, for example `Bad Request`.
messagestringoptional
statusCodeintegeroptional
403Forbidden
errorstringoptional
Reason phrase, for example `Bad Request`.
messagestringoptional
statusCodeintegeroptional

Error handling

A 400 is returned: Validation error. A 403 is returned: Forbidden.