/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

KeyvalueDescription
X-LearnerId<LearnerId value>The learner for which you want to create the authorization for

Body

KeyValueDescription
userId<UserId Value>The User for which you want to create the authorization for
role (optional)observer/teacherThis 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
}