headless lms

Set a person's org role

PUT /api/organizations/people/{orgUserId}/roles/org. Set a person's org role. Headless LMS People API reference.

PUT
/api/organizations/people/{orgUserId}/roles/org

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

orgUserId*string

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"}