Make Dual Role
Assigns a dual role to the specified user, enabling them to act as both a learner and a manager within the platform
Assigns a dual role to the specified user, enabling them to act as both a learner and a manager within the platform.
PUT
https://example.thoughtindustries.com/incoming/v2/users/:id/makeDualRoleExample request
curl -X PUT "https://example.thoughtindustries.com/incoming/v2/users/:id/makeDualRole" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"role": "string"
}'Parameters
| Name | Type | Required | Location | Description |
|---|---|---|---|---|
id | uuid | Yes | path | The id identifier. |
role | string | No | body | The role to assign to the user in addition to their existing role (e.g., "manager" or "learner"). |
Example response
{
"data": {
"SetupUserDualRole": {
"learnerId": "00000000-0000-0000-0000-000000000000",
"managerId": "00000000-0000-0000-0000-000000000000"
}
}
}Response fields
| Field | Type | Description |
|---|---|---|
learnerId | uuid | The unique identifier of the user in their learner role. |
managerId | uuid | The unique identifier of the user in their manager role. |