Consumers Endpoints

The Data API's v1/consumer/* endpoints allow you to manage consumer configuration.

Endpoint v1/consumer/keys/lti
HTTP Method POST
Action Type set
Parameter Description
label
string

A location to describe the nature or user of the LTI Key. This should be unique within the set of keys defined.

Label can be up to 255 characters long.

key
string

(Optional) A secure unique string for your LTI key.
By default, Learnosity will generate a key for you.
Note: a secret must be set if you are using this option.


Key must be between 16-255 (inclusive) characters long.
Key is limited to the characters: a-z 0-9 ! # % & , - _ / ^ $ * + . |
Key must not be the same as secret

secret
string

(Optional) A secure unique string for your LTI secret.
By default, Learnosity will generate a secret for you.
Note: a key must be set if you are using this option.


Secret must be between 16-255 (inclusive) characters long.
Secret is limited to the characters: a-z 0-9 ! # % & , - _ / ^ $ * + . |
Secret must not be the same as key

Example

{
    "label": "Test key for use in Learnosity quality assurance environment and documentation."
}

        /* Example Response:
        {
            "meta": {
            "status": true,
            "timestamp": 1515549097
            },
            "data": {
                "key": "DsgiVBiy3OUAzI9l",
                "secret": "05bCkbHi3OVXa10nuhWisIOwhs6hB9SC84Pyfghj",
                "label": "Test key for use in Learnosity quality assurance environment and documentation."
            }
        }
        */