Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Info
titleRequired Headers


Key
Value
Example
Acceptapplication/json
AuthorizationBearer <your token>Bearer wV1MLk5+sFzioJw/3M5r9A==
Content-Typeapplication/json
X-LearnerId<the learner id>The DMTD-supplied identifier that identifies the learner (see Getting started and /1/learner - POST)*
X-LearnerCode<the learner code>A REST-client-supplied identifier that identifies the learner (see Getting started and /1/learner - POST)*

*Only one of X-LearnerId or X-LearnerCode is required. If both are specified, X-LearnerId is used.

...

Info
titleExample
curl -X POST \
  -H 'Authorization: Bearer L2Hth4lRwgHRBWtX8Hkl5w==' \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
-H "X-LearnerId: 1" \
  -d '{ "systemDomain": "vbmapp", "type": "assessment", "locale": "en" }' \
  https://dataapi-sandbox.datamtd.com/1/purchase

...