/1/authorize - POST
Overview
This API is used to create an authorization for learner for specific user.This endpoint allows users to assess learners that are owned by other users.
Headers
Key | value | Description |
---|---|---|
X-LearnerId | <LearnerId value> | The learner for which you want to create the authorization for |
Body
Key | Value | Description |
---|---|---|
userId | <UserId Value> | The User for which you want to create the authorization for |
role (optional) | observer/teacher | This is optional if omitted the authorization will be a clinician/teacher role by default |
Code
curl --location 'https://api-sandbox.vbmappapp.com/1/authorize' \
--header 'X-LearnerId: 19309' \
--header 'User-Agent: dmtd-rest-api' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer *************' \
--data '{ "userId": "300","role": "observer/teacher"}'
Response Example
{
"success": true,
"message": "Authorization created successfully",
"groupId": 220
}
Updated 8 days ago