This is a lower-level API. Lower-level APIs are not recommended for most projects, and may not be available on all plans. See our page on recommended deployment patterns for more information.
Public Method Assess API

save()

Saves the user responses in the Learnosity platform.

Examples

var saveSettings = {
    success: function (response_ids) {
        // Receives a list of the saved user responses as [response_id]
        console.log("save has been successful", response_ids);
    },
    error: function (e) {
        // Receives the event object defined in the Event section
        console.log("save has failed",e);
    },
    progress: function (e) {
        // Client custom progress event handler
        console.log("progress",e);
    }
};

assessApp.save(saveSettings);

Arguments

  • settings object
    An argument that provides a way to define specific callbacks for events related to the save operation. You should always use these to ensure that your save operation completes successfully or at least throws an error.
    • error function
      An error handler.
    • progress function
      A custom progress event handler.
    • success function
      A callback that receives an array of the saved user responses as an argument.

Return value

None (undefined).

Was this article helpful?