Scorm - Upload Controller API

Visit Ruby Sample Code - File Upload to learn how to upload a file and get the url

Interfaces

Create a Scorm course

POST /api/scorm/upload

The response contains the id of the new bridge course.

Response Codes

  • 201 Created
  • 400 Bad Request

Parameters

  • title String Required

    The title of the course.

  • url String Required

    The url of the course that was uploaded to S3

Example Request

{
  "title": "Awesome title",
  "url": "https://abc.instructure.s3.amazonaws.com/1/1%2Fuploads%2F45718ec0-a3f6-46a2-9536-805aeebd5.zip"
}
curl \
  -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -d '{"title":"Awesome title","url":"https://abc.instructure.s3.amazonaws.com/1/1%2Fuploads%2F45718ec0-a3f6-46a2-9536-805aeebd5.zip"}' \
  http://<bridge>/api/scorm/upload
    

Example Response

{
  "id": 105
}