Set a person's org role
PUT /api/organizations/people/{orgUserId}/roles/org. Set a person's org role. Headless LMS People API reference.
Requires people:write. Needs every permission the old and the new role hold. Nobody changes their own roles, and the owner's role changes only by transfer.
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 PUT "https://example.com/api/organizations/people/string/roles/org" \ -H "Content-Type: application/json" \ -d '{ "roleKey": "string" }'[ { "orgUserId": "string", "roleKey": "string", "roleName": "string", "contentId": "string", "contentType": "course" }]{ "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"}A person's roles GET
GET /api/organizations/people/{orgUserId}/roles. A person's roles. Headless LMS People API reference.
Remove a person's role on a content item DELETE
DELETE /api/organizations/people/{orgUserId}/roles/content/{contentId}. Remove a person's role on a content item. Headless LMS People API reference.