save - Methods - Questions API

Questions API Methods

save()

Saves the user responses in the Learnosity Database.

The settings argument 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.

Arguments

  • settings object

    The following properties are supported.

    • error ErrorCallback

    • progress ProgressCallback

    • success SuccessCallback

Return value

None (undefined).

Type definitions

  • ErrorCallback callback

    The following arguments are available.

    • error object

      The following properties are supported.

      • code integer

      • detail string

      • msg string

  • ProgressCallback callback

    The following arguments are available.

    • progress object

      The following properties are supported.

      • bytesTotal integer

      • bytesUploaded integer

      • percentage integer

      • state string

  • SuccessCallback callback

    The following arguments are available.

    • response_ids array[string]

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.