Decline a person's request to join a space (staff)
POST /api/communities/{communityId}/spaces/{spaceId}/members/{orgUserId}/decline. Decline a person's request to join a space (staff). Headless LMS Communities API reference.
Staff only (owner, admin, instructor). Closes the open request. 404 when the person has no open request; 409 when they are already a member.
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/communities/string/spaces/string/members/string/decline"{ "orgId": "string", "id": "string", "communityId": "string", "spaceId": "string", "orgUserId": "string", "status": "requested", "source": "request", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}{ "error": "string", "message": "string", "requestId": "string", "issues": [ { "path": "string", "message": "string" } ]}{ "error": "string", "message": "string", "requestId": "string"}{ "error": "string", "message": "string", "requestId": "string"}{ "error": "string", "message": "string", "requestId": "string"}{ "error": "string", "message": "string", "requestId": "string"}{ "error": "string", "message": "string", "requestId": "string"}Approve a person's request to join a space (staff) POST
POST /api/communities/{communityId}/spaces/{spaceId}/members/{orgUserId}/approval. Approve a person's request to join a space (staff). Headless LMS Communities API reference.
Remove a person from a space (staff) POST
POST /api/communities/{communityId}/spaces/{spaceId}/members/{orgUserId}/removal. Remove a person from a space (staff). Headless LMS Communities API reference.