LMS
cURL
curl --request POST \ --url https://api.stackone.com/unified/lms/users/{id}/completions \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --header 'x-account-id: <x-account-id>' \ --data '{ "passthrough": { "other_known_names": "John Doe" }, "result": { "value": "Pass", "source_value": "<string>" }, "completed_at": "2021-07-21T14:00:00.000Z", "learning_object_id": "e3gd34-23tr21-er234-345er56", "learning_object_external_reference": "learning-content-123", "time_spent": "PT1H30M45S", "content_external_reference": "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-CONTENT", "content_id": "16873-ENG-VIDEO-1" }'
{ "statusCode": 201, "message": "Record created successfully.", "timestamp": "2021-01-01T01:01:01.000Z", "data": { "id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3" } }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The account identifier
The completion was created successfully.
The response is of type object.
object
Was this page helpful?