Remove a workspace person
OpenAPI contract
- Method
- DELETE
- Path
/api/v1/workspaces/{id}/people/{personId}- Security
- jwtBearer (bearer)
- Response status
- 204 400 401 403 404 409 429 500
Request and response schemas
JSON
{
"requestBody": {},
"responses": {
"204": {
"description": "Workspace person removed",
"content": {}
},
"400": {
"description": "Invalid request",
"content": {
"application/json": {
"$ref": "#/components/schemas/RequestError"
}
}
},
"401": {
"description": "Authentication required or invalid",
"content": {
"application/json": {
"$ref": "#/components/schemas/SecurityError"
}
}
},
"403": {
"description": "Authenticated but not permitted",
"content": {
"application/json": {
"$ref": "#/components/schemas/SecurityError"
}
}
},
"404": {
"description": "Requested workspace resource was not found",
"content": {
"application/json": {
"$ref": "#/components/schemas/ApiError"
}
}
},
"409": {
"description": "Request conflicts with current workspace state",
"content": {
"application/json": {
"$ref": "#/components/schemas/ApiError"
}
}
},
"429": {
"description": "Rate limit exceeded",
"content": {
"application/json": {
"$ref": "#/components/schemas/SecurityError"
}
}
},
"500": {
"description": "Unexpected server error",
"content": {
"application/json": {
"$ref": "#/components/schemas/ApiError"
}
}
}
}
}DELETE /api/v1/workspaces/{id}/people/{personId} is JWT-only and requires people:manage. For an active member, it deactivates the workspace membership and removes that user's direct project grants in the workspace. For a pending invitation, it records the invitation as revoked. The successful response has no body.
The service refuses to remove the workspace's last active ADMIN. A missing person, inactive membership, or ID from another workspace is reported as not found.