headless lms

Give a person a role on a content item

PUT /api/organizations/people/{orgUserId}/roles/content/{contentId}. Give a person a role on a content item. Headless LMS People API reference.

PUT
/api/organizations/people/{orgUserId}/roles/content/{contentId}

Requires people:write. The role must list the item's type as a level. Needs every permission the old and the new role give there.

Path Parameters

orgUserId*string
contentId*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/content/string" \  -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"}