Invite a person into a space you moderate
POST /api/member/communities/{communityId}/spaces/{spaceId}/invites. Invite a person into a space you moderate. Headless LMS Communities API reference.
For a moderator who is a member of the community. Invites another member into a by_invite space; they join when they accept. 403 when the person is staff or does not hold the community; 409 when the space is not invite-only or the person is already placed.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/member/communities/string/spaces/string/invites" \ -H "Content-Type: application/json" \ -d '{ "orgUserId": "string" }'{ "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"}Ask to join a space POST
POST /api/member/communities/{communityId}/spaces/{spaceId}/requests. Ask to join a space. Headless LMS Communities API reference.
Accept your invitation to a space POST
POST /api/member/communities/{communityId}/spaces/{spaceId}/acceptance. Accept your invitation to a space. Headless LMS Communities API reference.