Catalog JSON API Documentation

So, you want to develop some tooling around the Catalog API - perhaps some custom reports? Great! This API gives you everything that Catalog has to offer.

Authentication

Visit this page to create an API key. Once you’ve received your key, treat it like a password.

Use SSL for all requests to the API. Non-SSL requests will result in redirects, and your API key will be sent in the clear.

To authenticate, send the API key as a request header. Here’s an example using cURL:

curl https://www.my-catalog.edu/api/v1/products -H 'Authorization: Token token="my-api-key"'

Pagination

All index endpoints support pagination. Specifically, we implement RFC5988.

Pagination Options

You can use ?page= to set the page of data you want to retrieve. If no items exist for that page, the response will be a root key with an empty array.

curl https://www.my-catalog.edu/api/v1/courses?page=2

{
  "courses": []
}

To change the number of items returned for each page, you can use ?per_page=. This defaults to 20 and has a max of 100.

curl https://www.my-catalog.edu/api/v1/courses?per_page=40&page=2

Information about pagination is provided in the Link header. Here is an example of what the header could look like

curl -I https://www.my-catalog.edu/api/v1/courses?page=3

Link: <https://www.my-catalog.edu/api/v1/courses?page=4>; rel="next",  
      <https://www.my-catalog.edu/api/v1/courses?page=15>; rel="last",
      <https://www.my-catalog.edu/api/v1/courses?page=1>; rel="first",
      <https://www.my-catalog.edu/api/v1/courses?page=2>; rel="prev"

Let’s talk about what each link means. rel="next" lets us know that the next page of data is page=4. This make sense given that we requested page 3. rel="prev" lets us know that the page previous to the one we requested is page=2. rel="next" indicates the next page of data to request. rel="last" tells us the last and total number of pages of data that currently exist.

Not all rel= links will exist on every response. For instance, the response for the first page of data will not have rel="first" or rel="prev". The same is true for the last page of data. This means that you can programmatically traverse all pages of data by requesting the first page and continuing to request the rel="next" until the response does not contain a rel="next".

It’s important to note that altering the per_page= will change the total number of pages.

Listing Image

If you are uploading a product image in SVG format. You will need to specify the file type.

curl https://www.my-catalog.edu/api/v1/products -F "course[listing_image]=@somefile.svg;type=image/svg+xml"'

Catalogs

Getting a specific catalog

Endpoint

GET https://www.my-catalog.edu/api/v1/catalogs/:id

Request

Route

GET https://www.my-catalog.edu/api/v1/catalogs/34

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this catalog. Integer
created_at The creation date for the catalog. Datetime
updated_at The last time the catalog was updated. Datetime
name The name of the catalog. String
canvas_domain Domain for the corresponding canvas account. String
canvas_id Id for the corresponding canvas account. String
logo URL for the catalog logo. String
locale Three character locale for the catalog. String
url Url for the catalog String
user_defined_fields An array of serialized user defined field records provided to the catalog either through direct assignment or inheritance. Array
user_defined_field[name] Name of the user defined field String
user_defined_field[label] Label that will be shown with the field String
user_defined_field[field_type] HTML input type of the field String
user_defined_field[required] Indicates if the custom field is required Boolean
parent[id] The id of the parent catalog Integer
parent[name] The name of the parent catalog Integer
settings[privacy_policy_url] Url of the privacy policy for this catalog. String
settings[terms_url] Url of the terms used for this catalog. String
settings[currency] Three character currency code. String
settings[time_zone] Timezone configured for this catalog. String
settings[country] Two character country code. String
settings[email_from_name] Name that appears as the sender in emails. String
settings[allow_user_registration] Indicates if new users allowed to enroll classes. Boolean
settings[title_tag] Used for custom titles in HTML. String
settings[meta_description] Used to a meta tag description in HTML. String
settings[custom_head_content] Used to add custom head content to HTML. String
settings[custom_body_content] Used to add custom body content to HTML. String
settings[show_listings_in_parent] Indicates if this catalogs listings will show in a parent catalog. Boolean
settings[skus_enabled] Indicates if the course displays the sku field. Boolean

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: BmlkUsVHrqeL3LDYI8bf3V8Z45jQbP6vSUWuU/GUMgKpt7WflOofnnvmfE6gJsWP1H/ADHwvCBTTxtRv6rFNEw==
ETag: W/"d238f2285cb1f5b466768efc3f15badb"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=R2lMZU93VlRrcE02VXJkVVBEWmJuYU4zaFhMWUM0V0tNenI3azk2b0FlWjlWZmFSVW8zMi9ZR29ka0RUWjNVZ0FpWmp1NHMvd2ppY3Ewd1BTK1FWeVphdGNLL0hPNTJtekk3RHhCUHVEcXNERy9jNFk0QWRZcm55WnorL1Z2VnZ1WGJ4UGlmcUxDUFo5Sy9rZWdCV3l4eGpkS0x0K0JVRnM3MGVQaVdZRXNWWmd0eDVaN2RTZDdTY0xlODJuWUN3LS12YnI0b3pRNmYzNHVoUTM3UjBrMXZnPT0%3D--9ccc2f50d62ed6249c28453f05776819e9fa99bb; path=/; HttpOnly
X-Request-Id: f055254a-5109-4e43-996e-def1aa61ca3e
X-Runtime: 0.110689
Content-Length: 1773

Body

{
  "account": {
    "id": 34,
    "name": "Domain Account 35",
    "parent": null,
    "created_at": "2023/05/12 09:12:12 +0000",
    "updated_at": "2023/05/12 09:12:12 +0000",
    "canvas_domain": "www.canvas-domain-35.com",
    "canvas_id": 35,
    "settings": {
      "privacy_policy_url": "https://www.instructure.com/policies/privacy/",
      "terms_url": "https://www.instructure.com/policies/acceptable-use",
      "currency": "USD",
      "supported_payment_types": "standard",
      "time_zone": null,
      "country": "US",
      "measurement": "credit",
      "email_from_name": "Canvas Catalog",
      "email_from_address": "notifications@instructure.com",
      "allow_user_registration": true,
      "title_tag": null,
      "meta_description": null,
      "custom_head_content": null,
      "custom_body_content": null,
      "show_listings_in_parent": true,
      "order_id_prefix": null,
      "inherit_categories": false,
      "inherit_user_defined_fields": false,
      "beta_canvas_domain": null,
      "skus_enabled": false,
      "canvas_enrollment_events": false,
      "include_noncatalog_courses_in_dashboard": true,
      "external_idp_logout_workflow": false,
      "private_catalog": false,
      "bulk_purchase_disabled": false,
      "enroll_button_behavior": "cart",
      "external_registration_url": null,
      "external_registration_public_key": null,
      "redirect_external_registration_condition": "authenticated",
      "include_captcha": false,
      "user_registration_domain_restriction_type": "inherit",
      "user_registration_domain_deny_list": "",
      "user_registration_domain_allow_list": "",
      "frame_ancestors": "",
      "disabled_new_registration": false,
      "email_reply_to": "",
      "has_sso_warning": false,
      "measurement_id": null,
      "redirect_non_admins_to_root_url": false,
      "canvas_feature_send_usage_metrics": false,
      "disable_passive_login": false
    },
    "user_defined_fields": [

    ],
    "logo": "http://s3.catalog.docker:80/gallery-s3/development/logos/db03bad40b5868bc6b95d0c6553ef3816899eeda.jpeg",
    "locale": "en",
    "url": "http://www.my-catalog.edu",
    "measurement": "credit"
  }
}

Listing catalogs

Endpoint

GET https://www.my-catalog.edu/api/v1/catalogs

Request

Route

GET https://www.my-catalog.edu/api/v1/catalogs

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this catalog. Integer
created_at The creation date for the catalog. Datetime
updated_at The last time the catalog was updated. Datetime
name The name of the catalog. String
canvas_domain Domain for the corresponding canvas account. String
canvas_id Id for the corresponding canvas account. String
logo URL for the catalog logo. String
locale Three character locale for the catalog. String
url Url for the catalog String
user_defined_fields An array of serialized user defined field records provided to the catalog either through direct assignment or inheritance. Array
user_defined_field[name] Name of the user defined field String
user_defined_field[label] Label that will be shown with the field String
user_defined_field[field_type] HTML input type of the field String
user_defined_field[required] Indicates if the custom field is required Boolean
parent[id] The id of the parent catalog Integer
parent[name] The name of the parent catalog Integer
settings[privacy_policy_url] Url of the privacy policy for this catalog. String
settings[terms_url] Url of the terms used for this catalog. String
settings[currency] Three character currency code. String
settings[time_zone] Timezone configured for this catalog. String
settings[country] Two character country code. String
settings[email_from_name] Name that appears as the sender in emails. String
settings[allow_user_registration] Indicates if new users allowed to enroll classes. Boolean
settings[title_tag] Used for custom titles in HTML. String
settings[meta_description] Used to a meta tag description in HTML. String
settings[custom_head_content] Used to add custom head content to HTML. String
settings[custom_body_content] Used to add custom body content to HTML. String
settings[show_listings_in_parent] Indicates if this catalogs listings will show in a parent catalog. Boolean
settings[skus_enabled] Indicates if the course displays the sku field. Boolean

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: yYoOcy6/McLbWiH/SmfL203YR16l7lNFwKk8LsvjRxCz5sGLYVMSjUyYsRRydCL8Zo1u+M/wKS/vkQb9THFRJg==
ETag: W/"89b0f5e216b2f25c6e4fe61d9f7a20fb"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=a0d3aExqQlpnZVd5bG5lS0R2UVp4eXozZVVaYkJmenpEVkZHdDlwSFBBYWpvZGVlUW9mV3lsOHIyVFdzbTRWUkk5NnB5QnNvaTg0UWJRNVcySmVaWktGYkhMYUdJR2drY3pBQ1MzYWtYbWFzNEdyVGRsKzZsYzFSYXN3UlhlOEgvTEpmY3pReUNScG5pRkxyOTJNTXV2QUFWKy9qL0E1S0VUbDczVDJDQUd0N3B1YUxuamxidk1SNGdLOUJVRjZQLS0zMHp6Rm5xeU1Ga0RZdGxhT2czd3ZnPT0%3D--d04e32121c61406e717f5e1ed48efc417ae25c1b; path=/; HttpOnly
X-Request-Id: 9c9e2d91-2a0a-4a60-a65c-0fc3d42f68e8
X-Runtime: 0.097592
Content-Length: 2218

Body

{
  "catalogs": [
    {
      "id": 30,
      "name": "Domain Account 31",
      "parent": null,
      "created_at": "2023/05/12 09:12:12 +0000",
      "updated_at": "2023/05/12 09:12:12 +0000",
      "canvas_domain": "www.canvas-domain-31.com",
      "canvas_id": 31,
      "settings": {
        "privacy_policy_url": "https://www.instructure.com/policies/privacy/",
        "terms_url": "https://www.instructure.com/policies/acceptable-use",
        "currency": "USD",
        "supported_payment_types": "standard",
        "time_zone": null,
        "country": "US",
        "measurement": "credit",
        "email_from_name": "Canvas Catalog",
        "email_from_address": "notifications@instructure.com",
        "allow_user_registration": true,
        "title_tag": null,
        "meta_description": null,
        "custom_head_content": null,
        "custom_body_content": null,
        "show_listings_in_parent": true,
        "order_id_prefix": null,
        "inherit_categories": false,
        "inherit_user_defined_fields": false,
        "beta_canvas_domain": null,
        "skus_enabled": false,
        "canvas_enrollment_events": false,
        "include_noncatalog_courses_in_dashboard": true,
        "external_idp_logout_workflow": false,
        "private_catalog": false,
        "bulk_purchase_disabled": false,
        "enroll_button_behavior": "cart",
        "external_registration_url": null,
        "external_registration_public_key": null,
        "redirect_external_registration_condition": "authenticated",
        "include_captcha": false,
        "user_registration_domain_restriction_type": "inherit",
        "user_registration_domain_deny_list": "",
        "user_registration_domain_allow_list": "",
        "frame_ancestors": "",
        "disabled_new_registration": false,
        "email_reply_to": "",
        "has_sso_warning": false,
        "measurement_id": null,
        "redirect_non_admins_to_root_url": false,
        "canvas_feature_send_usage_metrics": false,
        "disable_passive_login": false
      },
      "user_defined_fields": [
        {
          "list_order": 0,
          "name": "favorite_color",
          "label": "Favorite Color",
          "field_type": "text",
          "required": false,
          "required_message": "Favorite Color is required"
        },
        {
          "list_order": 1,
          "name": "code_of_conduct",
          "label": "Code of Conduct",
          "field_type": "checkbox",
          "required": true,
          "required_message": "You must accept the Code of Conduct."
        },
        {
          "list_order": 2,
          "name": "age",
          "label": "Age",
          "field_type": "text",
          "required": true,
          "required_message": "You must provide an Age."
        }
      ],
      "logo": "http://s3.catalog.docker:80/gallery-s3/development/logos/f8ba24d08bf114dde32c836886ff9d2bcc33f802.jpeg",
      "locale": "en",
      "url": "http://www.my-catalog.edu",
      "measurement": "credit"
    }
  ]
}

Certificates

Creating a Certificate

Endpoint

POST https://www.my-catalog.edu/api/v1/certificates

Parameters

Name Description Type
certificate[listing_id] required Id of the Listing Integer
certificate[name] required Name of the Certificate String
certificate[active] State of the Certificate, defaults to true Boolean
certificate[template] required Template for Certificate contents String
certificate[pdf_settings][orientation] 'Landscape' or 'Portrait' mode for PDF. Defaults to Landscape. String
days_to_expire Days until the certificate expires after it is awarded. Defaults to null. Must not be present when expires_at is present. Integer
expires_at Date of certificate expiration. Defaults to null. Must not be present when days_to_expire is present. Datetime

Request

Route

POST https://www.my-catalog.edu/api/v1/certificates

Headers

Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "certificate": {
    "listing_id": 12,
    "name": "API Name",
    "active": true,
    "template": "<H1>This is a template</h1>",
    "pdf_settings": {
      "orientation": "Landscape"
    }
  }
}

Response

Status

201

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: zanVAPBZsSKTeiWqxUr6lumOKvRM5Va2laoGvD1PiZw5cAdc1WFB8vFyskN4xYutUF7kCQk307D2HSqtbZycaQ==
ETag: W/"353ca65515378cbad30bd1d7d29e25e9"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=OERyTTJnQmFzS1BDVW9PVlpPNmFGSGZDTFlobEJ4L2V3N2dRdWFzWmc4MzFDVGFBNlVLeHduNXE1UTRFejU0ViszNUNKRS9ONHVoekNXcW9FanJ2dDB5aXhOYzBFUEduM3BKWHVqTSt0L0pHckV0UE92Yk9Pb1VwZWtaNktyZllRTGs3ZG5hNmNTM29mWDNJSHB3WDZiY3BqcE1MR2h5Q0F1WjZWdnFTbE9rS25ZbC9aNXVMSWR4Yng0alE0STBDLS1HZ0hobndXKzJpVWs0YVd0dkF5QlZnPT0%3D--58724d48d8774351b0cc7d80d6d57b89e0f05b13; path=/; HttpOnly
X-Request-Id: d32d8c8f-afaa-4e4d-b015-111b0a3cc1f4
X-Runtime: 0.038555
Content-Length: 298

Body

{
  "certificate": {
    "id": 2,
    "listing_id": 12,
    "name": "API Name",
    "active": true,
    "template": "<H1>This is a template</h1>",
    "pdf_settings": {
      "orientation": "Landscape"
    },
    "created_at": "2023/04/28 14:07:29 +0000",
    "updated_at": "2023/04/28 14:07:29 +0000",
    "days_to_expire": null,
    "expires_at": null
  }
}

Deleting a Certificate

Endpoint

DELETE https://www.my-catalog.edu/api/v1/certificates

Parameters

Name Description Type
certificate[listing_id] required Id of the Listing Integer
nullify_requirements_completed_at Should nullify the requirements_completed_at for the enrollments, defaults to false Boolean

Request

Route

DELETE https://www.my-catalog.edu/api/v1/certificates

Headers

Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "certificate": {
    "listing_id": 32
  },
  "nullify_requirements_completed_at": true
}

Response

Status

204

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
X-CSRF-Token: 5l58UjAdP62EzRSckU9VrVvpu4vBrFcxvJvuYdIFP51hJrRH0IrEnSNwqWA/cyrbRXPnYuPiWq2zQH+ojj938Q==
Cache-Control: no-cache
Set-Cookie: _gallery_session=TFZxR1FrUDBXN255dmUwUml1aUVYNUh4b1ErcXkrRDFwNmpHMmlCYU9sSGZydUhCcGVtWmNrVVpidFZPMmdrMzA1Vzd5VGNLNktyV1J3eEhBZ0NMSFVrcXNGeUs3dS8rSmhDTDhGdjdGd0licmYvb3hueUE5Q0NaT3B6QUpvRFZyNnM3TVBDU1dZMmNZVmNHS0FkUkp2VFh5SXFPZHdSZHo2UGRLRjh0anN3V1hMblR0R1ZPVThqQ3E0L09MUU45LS16bkZwUFg0QU5VbHVZZ1lYd1o2RXdRPT0%3D--a3cfc2420e4f53056a5dee03fae573050976c4a6; path=/; HttpOnly
X-Request-Id: 2a2a87e8-a759-483e-ac7d-21df5262fc9b
X-Runtime: 0.107604

Revoking Users Certificate

Endpoint

PUT https://www.my-catalog.edu/api/v1/certificates/revoke_users_certificate

Parameters

Name Description Type
certificate[listing_id] required Id of the Listing Integer
certificate[canvas_user_ids] required List of Canvas User Id's Array

Request

Route

PUT https://www.my-catalog.edu/api/v1/certificates/revoke_users_certificate

Headers

Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "certificate": {
    "listing_id": 36,
    "canvas_user_ids": [
      1
    ]
  }
}

Response

Response Fields

Name Description Type
revoked_certificates[canvas_user_id] Canvas User ID Integer
revoked_certificates[canvas_course_id] Canvas Course ID Integer
revoked_certificates[listing_id] Catalog Product Listing ID Integer

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: GtP3YdO0xdMbcQnl5CKz7GKaBCNyJzlNWYSDyoejLJ1CrB8IOcNpS8KYgb9r2po8upn/df95Z8wdZUn1IZPYpQ==
ETag: W/"898575eb151824e052558b2bb82514cf"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=Qllla2N3eXdRKzBZNXJpVW4yTTBJT1JJOVJGQm1IaFY2ZzZEeklYRmJnQ29aVkZUT3RCUENUaFdWNHRwMDJabGdXVkhGSmF0REZyS1QyRCtZYzlEaFJjZXBlY0FQVFVheUl3cmNaWWcrN2dLeFVwUERRck1tYVR6c2YyZFI4TE0zREowaXRnMlZtKzhtZm9xdE5SUHRQOUM4ZytMeW1OdTM2ZFhPVW1KaStOLzJiRE9hVDBRUGI1b3gzM1dsdFFOLS02NzJyVmF0VXJ5ZHFIcGJ6TGhFNzNRPT0%3D--1d7293bd62a63d8a1c512ae5acabee66814edaee; path=/; HttpOnly
X-Request-Id: 53aa19d9-cf4d-414a-9405-8177b8caf0e9
X-Runtime: 0.112145
Content-Length: 87

Body

{
  "revoked_certificates": [
    {
      "canvas_user_id": 1,
      "canvas_course_id": 1001,
      "listing_id": 36
    }
  ]
}

Completed Certificates

listing a user's completions with a certificate

Endpoint

GET https://www.my-catalog.edu/api/v1/completed_certificates

Parameters

Name Description Type
user_id required Canvas Id of the user Integer
only_certificates Indicates if the courses without certificates should be included, default is to include all courses Boolean

Request

Route

GET https://www.my-catalog.edu/api/v1/completed_certificates?user_id=1&only_certificates=true

Headers

Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Query Parameters

user_id=1
only_certificates=true

Response

Response Fields

Name Description Type
canvas_course_id Canvas Course ID Integer
catalog_title catalog course title String
canvas_course_name Canvas Course name String
certificate_url URL for Course Certificate String
canvas_course_workflow_state Canvas Course Workflow State String
completed_at Canvas Course Completion Date Datetime

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: GJ3KnMfhnQN+OHvIKQQ0Zc/wEi46J02zblTSi9FXsIqMVGp2gAt9bpzYD2ZmsWwU3xz6H07gt2rISTYN35TiXA==
ETag: W/"23becf0f0fba38b071cf7e94f3731f13"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=RFBsb2VSeWFPTlRveEdUMDFWdkpzT1FLRU1OeW5RMjBsZ2RHdlNmenZQUGU0aUx0bndSUktYQnVJbVhmL3V2TlB2ZVNmZkFyZ1pvMFZUTHpmVTdxK1ltc1FTaEZzTlhqWEZ1Qm1vZHhPSGVFcGY1ZCtjQWdNaDdEYmcxTXY3azFyek5RRXNqRS9Ed1pGcXJRMkdxNGNkdXRMYWc1SWdCVUp4MzlxaDNRYjZZMnVJaUg2QWl5OERUTjIrNU91L3FMLS1MWkg1bVdNOXpSTzB5UGpYSzI2R2JnPT0%3D--7c8774a5dda14e580ccd2fc819b85c8298782e3d; path=/; HttpOnly
X-Request-Id: 9188eb2c-cb2c-4c18-8649-b30d17338929
X-Runtime: 0.232413
Content-Length: 258

Body

{
  "completed_certificates": [
    {
      "canvas_course_id": 1,
      "catalog_title": "Course 1",
      "canvas_course_name": "Course 1",
      "certificate_url": "https://www.domain-1.com/certificates/certificate-numero-1-1.pdf",
      "canvas_course_workflow_state": "available",
      "completed_at": null
    }
  ]
}

Courses

Creating a course

Endpoint

POST https://www.my-catalog.edu/api/v1/courses

Parameters

Name Description Type
course[title] required Listing title String
course[description] required Full listing description String
course[path] required Path to the listing. Used in URLs String
course[teaser] required A shorter description of the listing String
course[enrollment_open] Indicates if the listing is current accepting new students Boolean
course[enrollment_open_from] If specified, enrollment is open only from this date-time Datetime
course[enrollment_open_to] If specified, enrollment is open only to this date-time Datetime
course[visibility] Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
course[enrollment_cap] A limit for the total number of enrollments Integer
course[enrollment_fee] Enrollment fee Decimal
course[allowed_payment_types] Allowed payment methods Array
course[days_to_complete] The number of days a student has to complete the requirements Integer
course[account_id] The id of the account to associate the listing to. Can be an id of any subcatalog of the catalog making the API request. Defaults to the catalog making the API request. Integer
course[list_order] Order in which the listing is shown in the catalog Integer
course[waitlist] Waitlist enabled (defaults to false) Boolean
course[waitlist_cap] Wait List Limit for the total number of wait listed enrollments Integer
course[listing_image] URL or file upload for the image to be shown with this listing. String
course[tag_names] List of tags applied to this listing Array
course[show_free_banner] Show the 'FREE' mark on the card of the listing if free Boolean
course[canvas_course_id] required Id of the related canvas course Integer
course[credits] Credit value of the course Decimal
sku Listing SKU for a course String

Request

Route

POST https://www.my-catalog.edu/api/v1/courses

Headers

Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "course": {
    "title": "Course 1",
    "description": "This is a very important course.",
    "path": "course-1",
    "canvas_course_id": 10010010,
    "teaser": "This is an example teaser",
    "enrollment_open": true,
    "visibility": "listed",
    "enrollment_cap": 150,
    "waitlist": true,
    "waitlist_cap": 25,
    "enrollment_fee": 49.99,
    "days_to_complete": 45,
    "list_order": 123,
    "credits": 4,
    "sku": "abc1234",
    "tag_names": [
      "Tag",
      "Another Tag"
    ]
  }
}

Response

Response Fields

Name Description Type
id Identifier for this listing. Integer
visibility Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
enrollment_open Open for enrollment Boolean
enrollment_open_from If specified, enrollment is open only from this date-time Datetime
enrollment_open_to If specified, enrollment is open only to this date-time Datetime
enrollment_cap A limit for the total number of enrollments Integer
waitlist Waitlist enabled Boolean
waitlist_cap Wait List Limit for the total number of wait listed enrollments Integer
title Title of the listing String
enrollment_fee Enrollment fee Decimal
currency The three digit currency code associated to the enrollment fee String
listing_path Path to the listing. Used in URLs String
listing_url The URL of the listing String
short_description A short description for this listing String
list_order Order in which the listing is listed in the catalog Integer
tag_names List of tags applied to this listing Array
detail_code Payment detail code for a course (only if enabled with :payment_detail_code_enabled feature flag) String
show_free_banner Show the 'FREE' mark on the card of the listing if free Boolean
catalog[id] Id for the catalog that owns this listing Integer
catalog[name] Name for the catalog that owns this listing String
created_at The creation date for the listing. Datetime
updated_at The last time the listing was updated. Datetime
canvas_course[id] Corresponding Canvas id Integer
credits Credit value of the course Decimal
sku Listing SKU for a course String

Status

201

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Location: https://www.my-catalog.edu/api/v1/courses/5
Content-Type: application/json; charset=utf-8
X-CSRF-Token: qFBLI16qaqfonuk50pjGjt9LFckD9Tp1lVKHwZzv0RvOjrCCLSBDtpL64hdnvrg9vYZruNDVxKFCPvT8mXgkTw==
ETag: W/"16354c2a876248da239f380424329a08"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=R09XZDV1L2ZqY0RTMXhoR2gyV1VNN3Z6cjJXWTRUa3lySWFySjkrd0xTdE1PVDNwS2orc1RJZnhzNTRsWWxKSW0rNFYxek5QNnpERTQzbU5YVEZZUTNYREhEWjR0eExLUFE0UlVVWEh4Z05DNjE3Y09uOUx3Z2JPUmZabzE1U2tmclNwZXA3eFFISTB4dEFQamlLK29kYnFJWTJ2dDRtcW5neHV5R1llUkVvc01yTjYxNDE5VDB5V3hSN1Zzb25hLS1hYllmZG1Eekx3ZDNYbnhrOGtrVUdBPT0%3D--61a42055af1c1b7c36c9ebb009e5ce932a5b3a46; path=/; HttpOnly
X-Request-Id: e37beb25-1545-429c-b1f6-0a92d0f42e86
X-Runtime: 0.140973
Content-Length: 799

Body

{
  "course": {
    "id": 5,
    "visibility": "listed",
    "enrollment_open": true,
    "enrollment_open_from": null,
    "enrollment_open_to": null,
    "enrollment_cap": 150,
    "description": "This is a very important course.",
    "enrollment_fee": "49.99",
    "created_at": "2023/05/12 09:12:09 +0000",
    "credits": 4.0,
    "measurement": "credit",
    "updated_at": "2023/05/12 09:12:09 +0000",
    "short_description": "This is an example teaser",
    "listing_path": "course-1",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 9,
      "name": "Domain Account 9"
    },
    "type": "Course",
    "title": "Course 1",
    "list_order": 123,
    "waitlist": true,
    "waitlist_cap": 25,
    "sku": "abc1234",
    "show_free_banner": true,
    "image_alt_text": null,
    "allowed_payment_types": [
      "standard"
    ],
    "tag_names": [
      "Tag",
      "Another Tag"
    ],
    "listing_url": "http://www.my-catalog.edu/courses/course-1",
    "canvas_course": {
      "id": 10010010
    }
  }
}

Deleting a specific course

Endpoint

DELETE https://www.my-catalog.edu/api/v1/courses/:id

Request

Route

DELETE https://www.my-catalog.edu/api/v1/courses/6

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Content-Type: application/x-www-form-urlencoded
Cookie: 

Response

Status

204

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
X-CSRF-Token: XF5kG8sLGQkdJ6y0AepAr9kJqTvYdt4BhttypaJi1K5CdQL86UOeqZ1E0nqlW+DS0SjKfepS9gvZcW3mANHdqw==
Cache-Control: no-cache
Set-Cookie: _gallery_session=dlo3MUQ1Y2hpTUhzQXVzT1JxRlJ4bkwwdUI0UUlxNFEwYzlDOUFacXZDeVBuTFJBTVJnSmJSaUZqbHVIZzhTNXFpVVR1Nit4MmkrMFg1eUZUZ0FUR3hla0FXaUNPYzdwTmM1Z0RwdnRBblJETy9sdjhxT3ZZVS9FVmV4d3lvT080ODg0d25EOWxKdmhKM3hRbzI3TzVBSEYzTHplTWdrQUx4Ulh1bXRmQlVwWjZEOFVreFBOZDJXTklSSGk1SjhkLS1sbmw4SUY0SmhWZjVlaWNacU1LNWlRPT0%3D--3a00941a0833369b0e2ee2abf1fbd2b9cc060551; path=/; HttpOnly
X-Request-Id: a6f00508-202a-472f-8ff1-3c99b8b7d5be
X-Runtime: 0.123155

Getting a specific course

Endpoint

GET https://www.my-catalog.edu/api/v1/courses/:id

Request

Route

GET https://www.my-catalog.edu/api/v1/courses/7

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this listing. Integer
visibility Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
enrollment_open Open for enrollment Boolean
enrollment_open_from If specified, enrollment is open only from this date-time Datetime
enrollment_open_to If specified, enrollment is open only to this date-time Datetime
enrollment_cap A limit for the total number of enrollments Integer
waitlist Waitlist enabled Boolean
waitlist_cap Wait List Limit for the total number of wait listed enrollments Integer
title Title of the listing String
enrollment_fee Enrollment fee Decimal
currency The three digit currency code associated to the enrollment fee String
listing_path Path to the listing. Used in URLs String
listing_url The URL of the listing String
short_description A short description for this listing String
list_order Order in which the listing is listed in the catalog Integer
tag_names List of tags applied to this listing Array
detail_code Payment detail code for a course (only if enabled with :payment_detail_code_enabled feature flag) String
show_free_banner Show the 'FREE' mark on the card of the listing if free Boolean
catalog[id] Id for the catalog that owns this listing Integer
catalog[name] Name for the catalog that owns this listing String
created_at The creation date for the listing. Datetime
updated_at The last time the listing was updated. Datetime
canvas_course[id] Corresponding Canvas id Integer
credits Credit value of the course Decimal
sku Listing SKU for a course String

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: k7OO8gkGiQjc50Cpk8aqns6M4Kwtj9fgKYv9qbFzi1ZRwPmFWRiidiqhqiG9b/ODC7AHShoVuQj++f3C+HCDdQ==
ETag: W/"b89a8376e8cc9c87ed1b199d17555200"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=ZEYzek5pVXlEUmcwK2YvVmRBZW1GS2hocG1jbEtCb2l3V2tqVFlIRm1IdkE1Mi8xTEZoTFQ5ejZXVWdHUmtBZlBvT1B5aFVTYlJKRkpyaVFkb0J6WjFGWnYvcncxM01oVEZhMTM0NjY2bDYyU2FVL1VHeVUvRkQwZXplL3F0U0Z2eVpKN2J1OEhnT3BPZmpzYStTYmxsS0QvRS9Ob1VlR3p0NTVoYVFCaEV3OG96VzZEWFNiek1hNFMxaTdWOHRkLS03NkFvVnhMM0F5TXZicWhXNlpyTGF3PT0%3D--d3e02a4e32ed3565d8ce7e59e7132a3ddf88c248; path=/; HttpOnly
X-Request-Id: 64d5f493-021a-4113-a082-90af856012e4
X-Runtime: 0.098288
Content-Length: 769

Body

{
  "course": {
    "id": 7,
    "visibility": "listed",
    "enrollment_open": true,
    "enrollment_open_from": null,
    "enrollment_open_to": null,
    "enrollment_cap": null,
    "description": "description_6",
    "enrollment_fee": "0.0",
    "created_at": "2023/05/12 09:12:09 +0000",
    "credits": 3.0,
    "measurement": "credit",
    "updated_at": "2023/05/12 09:12:09 +0000",
    "short_description": "teaser_6",
    "listing_path": "course-path-6",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 11,
      "name": "Domain Account 11"
    },
    "type": "Course",
    "title": "Course 6",
    "list_order": null,
    "waitlist": false,
    "waitlist_cap": null,
    "sku": "sku_6",
    "show_free_banner": true,
    "image_alt_text": null,
    "allowed_payment_types": [
      "standard"
    ],
    "tag_names": [
      "Tag",
      "Another Tag"
    ],
    "listing_url": "http://www.my-catalog.edu/courses/course-path-6",
    "canvas_course": {
      "id": 6
    }
  }
}

Listing courses

Endpoint

GET https://www.my-catalog.edu/api/v1/courses

Request

Route

GET https://www.my-catalog.edu/api/v1/courses

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: CPdwJPg2ky+wlSD9ISV89MfLh4Fsu1poUu4pvCcKjhcexyOwJO5OldFvsNW1mf65zLP6v1VKO1AT4wj/op/N1A==
ETag: W/"c6443d59074b9b488ecf3991e63d1ecd"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=N3RndjZZelBGcExsazhLeTZ5WEk2Rm1KQ0N1WEFIVEJXdkRDREpRVkpPT3MvWVBlTWNML3R3TjlQT2ZtWE9RRGt0UWl3Zjlack5mRFNTUnUzS01MN2g5SElnQnBuUXlhNUV0VndWelRHU2NEcmhpS0QxUW9BQWtNeER6Z0hvcEpUcUNBQUZNN21mdnV3eW4wSmNyanV5ZnIzQkhBL09FUGVjdnBlL0c0MkRqZmNIS2J0dkpBcGh2WmQ0a2t3VGwyLS1pdm1CQUFmOEVaVjQ3QnlxaVpvMXZBPT0%3D--e234d28f59a89f131a31921e84779f1adc2cf5f4; path=/; HttpOnly
X-Request-Id: 775a7a16-2ec8-421d-933e-a680d7dce54d
X-Runtime: 0.102632
Content-Length: 772

Body

{
  "courses": [
    {
      "id": 8,
      "visibility": "listed",
      "enrollment_open": true,
      "enrollment_open_from": null,
      "enrollment_open_to": null,
      "enrollment_cap": null,
      "description": "description_7",
      "enrollment_fee": "0.0",
      "created_at": "2023/05/12 09:12:09 +0000",
      "credits": 3.0,
      "measurement": "credit",
      "updated_at": "2023/05/12 09:12:09 +0000",
      "short_description": "teaser_7",
      "listing_path": "course-path-7",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 12,
        "name": "Domain Account 12"
      },
      "type": "Course",
      "title": "Course 7",
      "list_order": null,
      "waitlist": false,
      "waitlist_cap": null,
      "sku": "sku_7",
      "show_free_banner": true,
      "image_alt_text": null,
      "allowed_payment_types": [
        "standard"
      ],
      "tag_names": [
        "Tag",
        "Another Tag"
      ],
      "listing_url": "http://www.my-catalog.edu/courses/course-path-7",
      "canvas_course": {
        "id": 7
      }
    }
  ]
}

Updating Course SKUs

Endpoint

PUT https://www.my-catalog.edu/api/v1/courses/update_skus

Parameters

Name Description Type
attachment required CSV containing a Catalog Course ID and Catalog Course SKU header file

Request

Route

PUT https://www.my-catalog.edu/api/v1/courses/update_skus

Headers

Authorization: Token token="my-token"
Content-Type: multipart/form-data; boundary=----------XnJLe9ZIbbGUYtzPQJ16u1
Host: www.my-catalog.edu
Cookie: 

Body

------------XnJLe9ZIbbGUYtzPQJ16u1
Content-Disposition: form-data; name="attachment"; filename="missing_header1.csv"
Content-Type: text/plain
Content-Length: 69

[uploaded data]
------------XnJLe9ZIbbGUYtzPQJ16u1--

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: vj3khLcUsP/eKd6jsmOn9w+JC6P+HRZuj4wv4j2BKcSjtrMiv+hEqpc5aeV8jzE9Lzhn5yNBtsRm2mgGO0g7Pg==
ETag: W/"35cf6abe214a49aa3e9e3686e2341a65"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=dHhYem42UkhBdE02VFdPWkcvZ05JWGV3TGdqL09jR2wweHJRcE1WNWY2c2RLRTRJUU1kTy9BR3VHV3VqRTNEK1lUaktqM0ZwKzVFbkRESnRPd0JqV1c5bFdvMHArcXczeG5ndTVhSzBEdEs5SGhBeFlFaTF5MEdleXhUWHRYQitKd1NLaWF4eFdUWFc0a2VXc0VyWGZ4Y1p1SE1mWUhwWGlvcGFTZWJxWHhWbVkvQzRkS3djNHlROGwyTHVtbm9pLS1manZHajhuZldtQXhzWWc0Ky9BVlF3PT0%3D--ccaefdeced9023aab6b824fcc0249010a2c6a476; path=/; HttpOnly
X-Request-Id: d569cc1e-3866-4773-a3d5-af421a6c2d21
X-Runtime: 0.124307
Content-Length: 206

Body

{
  "progress": {
    "id": 1,
    "account_id": 13,
    "canvas_user_id": null,
    "completion_percent": null,
    "workflow_state": "queued",
    "payload": {
    },
    "created_at": "2023/05/12 09:12:09 +0000",
    "updated_at": "2023/05/12 09:12:09 +0000"
  }
}

Updating a course

Endpoint

PUT https://www.my-catalog.edu/api/v1/courses/:id

Parameters

Name Description Type
course[title] Listing title String
course[description] Full listing description String
course[path] Path to the listing. Used in URLs String
course[teaser] A shorter description of the listing String
course[enrollment_open] Indicates if the listing is current accepting new students Boolean
course[enrollment_open_from] If specified, enrollment is open only from this date-time Datetime
course[enrollment_open_to] If specified, enrollment is open only to this date-time Datetime
course[visibility] Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
course[enrollment_cap] A limit for the total number of enrollments Integer
course[enrollment_fee] Enrollment fee Decimal
course[allowed_payment_types] Allowed payment methods Array
course[days_to_complete] The number of days a student has to complete the requirements Integer
course[account_id] The id of the account to associate the listing to. Can be an id of any subcatalog of the catalog making the API request. Defaults to the catalog making the API request. Integer
course[list_order] Order in which the listing is shown in the catalog Integer
course[waitlist] Waitlist enabled (defaults to false) Boolean
course[waitlist_cap] Wait List Limit for the total number of wait listed enrollments Integer
course[listing_image] URL or file upload for the image to be shown with this listing. String
course[tag_names] List of tags applied to this listing Array
course[show_free_banner] Show the 'FREE' mark on the card of the listing if free Boolean
course[canvas_course_id] Id of the related canvas course Integer
course[credits] Credit value of the course Decimal
sku Listing SKU for a course String

Request

Route

PUT https://www.my-catalog.edu/api/v1/courses/4

Headers

Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "course": {
    "title": "Course 1",
    "description": "This is a very important course.",
    "path": "course-1",
    "canvas_course_id": 10010010,
    "teaser": "This is an example teaser",
    "enrollment_open": true,
    "visibility": "listed",
    "enrollment_cap": 150,
    "waitlist": true,
    "waitlist_cap": 25,
    "enrollment_fee": 49.99,
    "days_to_complete": 45,
    "list_order": 123,
    "credits": 4,
    "sku": "abc1234",
    "tag_names": [
      "Tag",
      "Another Tag"
    ]
  }
}

Response

Status

204

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
X-CSRF-Token: KH4ma2Jeezq9B3X8pTfsB1vR4d/Q8JLmDUfEAa6aGACMs60TKkADLstpb8RJ5ZMBnOkQwzHcPkZC0Me7rTBuIg==
Cache-Control: no-cache
Set-Cookie: _gallery_session=eG1ZQURqTnNPbXF2U0t2NmszYnkvcjBVUmJNWkpQUzhUemo5K2JhaUJOSzNvams4TFZqNVpQM2U3S3NEbTZlVEZFU3RtaWZ6M1FteUZYQTdnQyt3TFlHLzRXNTExMmNlZUNrcS90STBuQWw5RmdlTGlnN3k5U2xJczErcWJ3OUxZYnZzRlZpb3U1djZEZyt4aHBjVFQ2Qnl0Q2gzOHNUSVpBYXFyYm5tK29NaTJhanhkR3BIV2Y5MUJzenloZXExLS12VkJTb2ZheUgvdjNHYjY4ZlNXZld3PT0%3D--a2bd0c64ec41d42f0fde96ca0e8372814b82cf00; path=/; HttpOnly
X-Request-Id: 325dbc86-2153-4749-9433-73dc98b0c38d
X-Runtime: 0.160649

Enrollments

Creating an enrollment

Endpoint

POST https://www.my-catalog.edu/api/v1/enrollments

Parameters

Name Description Type
create_order Create an order record for this enrollment, defaults to true Boolean
send_email Send an enrollment email to the user, defaults to true Boolean
enrollment[listing_id] required Id of the Listing Integer
enrollment[canvas_user_id] required Id of the Canvas user Integer

Request

Route

POST https://www.my-catalog.edu/api/v1/enrollments

Headers

Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "enrollment": {
    "listing_id": 39,
    "canvas_user_id": 1
  }
}

Response

Response Fields

Name Description Type
id Identifier for this enrollment Integer
user[id] Corresponding Canvas user id for this enrollment. Integer
listing[id] Identifier for the listing Integer
listing[title] The name of the listing String
listing[type] The type of listing (Course or Program) String
listing[canvas_course_id] Canvas course ID (nil for Program enrollments) String
enrolled_at The time of enrollment (UTC) Datetime
status Enrollment status (active, dropped or concluded) String

Status

201

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: kFRUPoH0rSsTTycY14/iwUIwrrP5BA1IOaxU1f61ek/5lPwinCQOjOMIW8J/ZhBllvWUOea3LTlOzLZvr+EMYw==
ETag: W/"5946e82190105457cf3d613e4bd25368"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=akZLcVVrU0NXYkxzWk45aGpSU1dRZDBnRllYUmp1UHRPWkthSnRSQk5lR3psajdQRmFBN0tOVEV2ZDNwOUhOQy9tdy90Z1c1azFjWVF3M2ExbUg1Z2VQOGs1dlBsOWg2QzRUYzVmSzZFWWN1N25jRTZhQnh5aWsrb0FZYTkrTVlRYllRZEdiL2RMdlkxQkl1ZElEU2l5MDBRaWs5OEZDTkFFUVA4Zklua1ZTR0d4QVljWUdDOUVsbHNWMHEwblN3LS0rTDRLRmR3MzBXNGRyZC9VazZubTdRPT0%3D--47b4abe028e69d2ab28fbfcdb43366dd9a52df6c; path=/; HttpOnly
X-Request-Id: 14148964-46ab-41fa-ac50-98d1a460c457
X-Runtime: 0.106913
Content-Length: 177

Body

{
  "enrollment": {
    "id": 6,
    "user": {
      "id": 1
    },
    "listing": {
      "id": 39,
      "title": "Course 37",
      "type": "Course",
      "canvas_course_id": 22
    },
    "enrolled_at": "2023/05/12 09:12:13 +0000",
    "status": "active"
  }
}

Deleting an enrollment

An additional request must be made to Canvas to delete the enrollment and remove it from the Catalog Student Dashboard

Endpoint

DELETE https://www.my-catalog.edu/api/v1/enrollments/:id

Request

Route

DELETE https://www.my-catalog.edu/api/v1/enrollments/5

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Content-Type: application/x-www-form-urlencoded
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this enrollment Integer
user[id] Corresponding Canvas user id for this enrollment. Integer
listing[id] Identifier for the listing Integer
listing[title] The name of the listing String
listing[type] The type of listing (Course or Program) String
listing[canvas_course_id] Canvas course ID (nil for Program enrollments) String
enrolled_at The time of enrollment (UTC) Datetime
status Enrollment status (active, dropped or concluded) String

Status

204

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
X-CSRF-Token: shey2rlHLFibUCWS38El+0x5DNlC+Z7mh3PmtqSzGPls5CW7YyJuiiMaPC5zjPneF1/3rmTgKNM9e5v6MdE7Ig==
Cache-Control: no-cache
Set-Cookie: _gallery_session=QmdmVWNYUkxKZFAyQXZuSEw1eGh1YnY0L05uMDBGVlBsZGtjazdQS05RdEdpcmlOZTZoNlJYdE5lWng3RmV5aUJiUFRLeU9jd0R5K1orV2lIZk40NlltWlJwSHNwSHk1RjhWV2xmQk9mekovQXNkU05FdXhsQkxpanlsN2JiYWc1K2Vqd2NnOTZIWFhVemVyRWo1QzN4QkpIOUJWRGd4ZjU2RzE5MWdlZ0U3VCtScWVFU1hwbHBHQWVYSi9CV1I4LS01MDg5VCswTEk2dkNSSTI0dkhaSlpnPT0%3D--357b93cafd0bf33efb5baa0a93f07e7d683ddaa1; path=/; HttpOnly
X-Request-Id: 216c1ba3-346f-4fd9-861d-e3c0547c9a49
X-Runtime: 0.097185

Getting a specific bulk enrollment

Endpoint

GET https://www.my-catalog.edu/api/v1/order_items/history/bulk_enrollments/:id

Parameters

Name Description
id Order id (Integer)

Getting a specific enrollment

Endpoint

GET https://www.my-catalog.edu/api/v1/enrollments/:id

Request

Route

GET https://www.my-catalog.edu/api/v1/enrollments/4

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this enrollment Integer
user[id] Corresponding Canvas user id for this enrollment. Integer
listing[id] Identifier for the listing Integer
listing[title] The name of the listing String
listing[type] The type of listing (Course or Program) String
listing[canvas_course_id] Canvas course ID (nil for Program enrollments) String
enrolled_at The time of enrollment (UTC) Datetime
status Enrollment status (active, dropped or concluded) String

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: uBa75B/mcOyANn7qWM9Be9umv0UFZb+X32y11GHumg2AaMDavpTBhsbP+JX7uPrHDPqL2QJi4GWklsHPoBodyg==
ETag: W/"081220cdc212fca977a4572f20a71b3d"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=SUpZVml6R0pFTVRndzNXaTRKb0xyM085aXFDTGhhSENGS3ZHclJUMGQzcFh5ZCt5cGVHWGdTeFJtbXdJRXZmYmdTREJ6c1R0emRqaE1FQXFsQTF1RHVZN05scVlOU3YzaDdwWndVWFZMMGE2am5vc3NaM0tobFZIUEhsTURMSmJzRy9rOFFhaFM5WG5KL1BETjJnOUg5bTRubzJhVFpVRkdaZlRtOG8xVGl6NXdqRXlZb2UreWZSWFB3dHUwZ0hCLS03WmV4NHY4TS96VHlSSjM3U2k4MThBPT0%3D--7ce4067729e21291ec0c60ab885f1a4ae0744c75; path=/; HttpOnly
X-Request-Id: e9deeb3f-3b7a-4491-9282-8d861bbb893a
X-Runtime: 0.101324
Content-Length: 177

Body

{
  "enrollment": {
    "id": 4,
    "user": {
      "id": 1
    },
    "listing": {
      "id": 37,
      "title": "Course 35",
      "type": "Course",
      "canvas_course_id": 20
    },
    "enrolled_at": "2023/05/12 09:12:12 +0000",
    "status": "active"
  }
}

Listing bulk enrollments

Endpoint

GET https://www.my-catalog.edu/api/v1/order_items/history/bulk_enrollments

Parameters

Name Description
from Only include bulk enrollments from this date (optional, DateTime)
to Only include bulk enrollments to this date (optional, DateTime)
canvas_user_ids Only include bulk enrollments for the specified canvas user ids (optional, Integer[])

Listing enrollments

Endpoint

GET https://www.my-catalog.edu/api/v1/enrollments

Parameters

Name Description
listing_id Only include enrollments for the specified listing (optional, Integer)

Request

Route

GET https://www.my-catalog.edu/api/v1/enrollments

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: RYhr4nVUU49fAIOhdRMuwaXemYXWmKS4O1AFwGfRqMsQJeulK37+vsiKWEBanKPXKbqoptXOl2KU+OUOIJCcWg==
ETag: W/"9ce32b6e02b13eac4ef0a93c3b4cd3ea"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=ek5IOXA0WWNqeTEvSmxSTG1vWGJuczJJZ1drMHRXeEZ5bXNYQStualhrcWhTamxNT3VKdEZOYmNDMmYxL3ZuNW1mcHJwaHd3a3htdnZkeWhPdUtBUm5ha1EvUHhZSWMrRjEreEpQWldkNFBxWjNpMS9tQy9mSC9sK3A4cy80Zjc0aFd1UTBTNUg2bDluZnhDSXYyN2plVnYvdC9wMlNMV0RObFZIL2FnTGk1YnNCL0hLMzJVbHRncW5OdzZCWFBRLS1wYmNRSGRIRnNSay92R0hLNVgwZEN3PT0%3D--c931d6695db95e0b3f0baee1e72911a30ebdc325; path=/; HttpOnly
X-Request-Id: c95331b5-bd79-4c6a-9320-b6e7b91d95af
X-Runtime: 0.091008
Content-Length: 180

Body

{
  "enrollments": [
    {
      "id": 7,
      "user": {
        "id": 2
      },
      "listing": {
        "id": 40,
        "title": "Course 38",
        "type": "Course",
        "canvas_course_id": 23
      },
      "enrolled_at": "2023/05/12 09:12:13 +0000",
      "status": "active"
    }
  ]
}

Orders

Getting a specific order

Endpoint

GET https://www.my-catalog.edu/api/v1/orders/:id

Request

Route

GET https://www.my-catalog.edu/api/v1/orders/2

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this order. Integer
full_id Full ID for this order, including prefix. String
catalog_id DEPRECATED: Use catalog['id'] instead. Integer
catalog[id] Identifier for the catalog the order is linked to Integer
catalog[name] Name of the catalog this order is linked to String
user[id] Canvas ID of the user who placed the order Integer
user[name] Name of the user who placed the order String
user[email] E-mail address of the user who placed the order String
listings Array of purchased listings (courses and programs). Fields below: Array
listing[id] Identifier for a listing purchased with this order Integer
listing[catalog_id] Catalog ID associated to this listing Integer
listing[canvas_course_id] Canvas course ID associated to this listing Integer|null
listing[title] The name of the listing String
listing[amount] Listing price at the time of purchase Decimal
listing[discounted_amount] Discounted price by promotions Decimal
promotions Array of promotions used. Fields below: Array
promotion[id] Identifier for a promotion used with this order Integer
promotion[listing_id] Identifier for the listing this promotion is used for Integer
promotion[code] Promo code used for this order String
promotion[amount] Discount amount Decimal
payments Array of payments. Fields below: Array
payment[reference_id] Identifier from the payment redirector String
payment[status] Status of the payment. Can be success, error, or pending. String
payment[amount] Amount of the payment Decimal
total Total cost charged to the user Decimal
currency Currency used for the transaction String
purchased_at Time the transaction was successfully completed. This field is nil for unsuccessful or unpaid orders. Datetime
created_at Time the order was initiated. Datetime

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: tCNbhk50TOUFVQoeCCs/b7guhcmw/qVkNARPX41OurZwRzlt1qP9mc62UispayPM5FW64ZoA9KsJllxIpW1jjg==
ETag: W/"3fe5257c0f1fa77bb354142c6a9656e6"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=NnU5cmJDNTIzQlBhMWZVWmZmSjdlbFF2b085b0xtMndxOEQ4MEZZLzhOSDh4K3Vlc1dZU0V5MnYrSnlwTjE2a2hoZnZYd2toVGtIOU5CT1lTQnd4UXBDRFVjK2FUSTBONm5kaWxpMElJSm1URlpRYXFKMTFQNTY2TlhsNkV1cFVBWXFCYTg1NXpLR2w2STlsZEVHMG8yUTA5WUp0bU9lZjY3dUc1S3RwRjRMWFp6NW5OOFY0NGZDT0VOYjJISW9ELS1PTXU3amhZbFgrdmR4Y25DVzBDOWtnPT0%3D--3c0797fd8b8f75cb64383457acb517bfdd8036bb; path=/; HttpOnly
X-Request-Id: b33e850f-522e-4356-866b-8216372221d2
X-Runtime: 0.097709
Content-Length: 540

Body

{
  "order": {
    "id": 2,
    "full_id": "2",
    "catalog_id": 4,
    "catalog": {
      "id": 4,
      "name": "Domain Account 4"
    },
    "user": {
      "id": 1,
      "name": "Saul Goodman",
      "email": "bettercall@saul.com"
    },
    "listings": [
      {
        "id": 3,
        "canvas_course_id": 3,
        "title": "Course 3",
        "amount": "100.0",
        "discounted_amount": "90.0",
        "catalog_id": 4
      }
    ],
    "promotions": [
      {
        "id": 2,
        "listing_id": 3,
        "code": "PROMO2",
        "amount": "-10.0"
      }
    ],
    "payments": [
      {
        "reference_id": "123",
        "status": "success",
        "amount": "90.0"
      }
    ],
    "total": "90.0",
    "currency": "USD",
    "purchased_at": "2023/05/12 09:12:08 +0000",
    "created_at": "2023/05/12 09:12:08 +0000"
  }
}

Listing orders

Endpoint

GET https://www.my-catalog.edu/api/v1/orders

Parameters

Name Description
from Earliest date/time to return (optional, String). Suggested format YYYY-MM-DDTHH:MM:SSZ, e.g. 2018-01-01T00:00:00Z. System time zone is UTC.
to Latest date/time to return (optional, String). See 'from' above for format.
canvas_user_id Return only orders for the specified Canvas user ID (optional, String|Array)
completed When set, only return orders that were completed successfully (optional)

Request

Route

GET https://www.my-catalog.edu/api/v1/orders

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: evDkb5GVxzpCaO1HYwNFDWcTGjijjVQ9/eJIuTdoOaAZwXMVWvwFnrHqyJSztjAwHnQquBFWNjVw1qHP7Dnf+A==
ETag: W/"53c4e359de7da19d4cad509ac2330a72"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=L010M2xFVUZQb2M4NGpmYTRpM0VOMDdjdDBINFRtRHloS1JZQVVSRHdVbjZPaS9RbmxDOFF5RngxeEJHOWEzeGF3d3VZTnc5MEFBcUJmMXB4MFU2c2tKb2o3NkZEbHJkd0lrckdsL0g2bnpSVERLNXFRVkhaSUFiYVc0Sm9sendLSXB1blRod1FjVlJDVFRkWWcwWEdzRG5vMlFVQjJRK2VabGpXV1ZXREZPWnFPb1NzOHZKWC9CbTBUNkc5NGo4LS12UzVZT0IvYmFTb1loV3R6WFNkWk9BPT0%3D--48ccb0cfd96d8008d5d7de699e00c953e8652797; path=/; HttpOnly
X-Request-Id: 144c68d7-a4fc-45f0-aa17-bc9e34a5e71d
X-Runtime: 0.124286
Content-Length: 543

Body

{
  "orders": [
    {
      "id": 1,
      "full_id": "1",
      "catalog_id": 3,
      "catalog": {
        "id": 3,
        "name": "Domain Account 3"
      },
      "user": {
        "id": 1,
        "name": "Saul Goodman",
        "email": "bettercall@saul.com"
      },
      "listings": [
        {
          "id": 2,
          "canvas_course_id": 2,
          "title": "Course 2",
          "amount": "100.0",
          "discounted_amount": "90.0",
          "catalog_id": 3
        }
      ],
      "promotions": [
        {
          "id": 1,
          "listing_id": 2,
          "code": "PROMO1",
          "amount": "-10.0"
        }
      ],
      "payments": [
        {
          "reference_id": "123",
          "status": "success",
          "amount": "90.0"
        }
      ],
      "total": "90.0",
      "currency": "USD",
      "purchased_at": "2023/05/12 09:12:08 +0000",
      "created_at": "2023/05/12 09:12:07 +0000"
    }
  ]
}

Programs

Creating a program

Endpoint

POST https://www.my-catalog.edu/api/v1/programs

Parameters

Name Description Type
program[title] required Listing title String
program[description] required Full listing description String
program[path] required Path to the listing. Used in URLs String
program[teaser] required A shorter description of the listing String
program[enrollment_open] Indicates if the listing is current accepting new students Boolean
program[enrollment_open_from] If specified, enrollment is open only from this date-time Datetime
program[enrollment_open_to] If specified, enrollment is open only to this date-time Datetime
program[visibility] Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
program[enrollment_cap] A limit for the total number of enrollments Integer
program[enrollment_fee] Enrollment fee Decimal
program[allowed_payment_types] Allowed payment methods Array
program[days_to_complete] The number of days a student has to complete the requirements Integer
program[account_id] The id of the account to associate the listing to. Can be an id of any subcatalog of the catalog making the API request. Defaults to the catalog making the API request. Integer
program[list_order] Order in which the listing is shown in the catalog Integer
program[waitlist] Waitlist enabled (defaults to false) Boolean
program[waitlist_cap] Wait List Limit for the total number of wait listed enrollments Integer
program[listing_image] URL or file upload for the image to be shown with this listing. String
program[tag_names] List of tags applied to this listing Array
program[show_free_banner] Show the 'FREE' mark on the card of the listing if free Boolean
program[requirement_ids] Ordered array of listing IDs that represent requirements for completing the program Array
program[sequential] Indicates if students are required to complete requirements in order Boolean

Request

Route

POST https://www.my-catalog.edu/api/v1/programs

Headers

Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "program": {
    "title": "Program 1",
    "description": "This is a very awesome program.",
    "path": "program-1",
    "teaser": "This is an example teaser",
    "enrollment_open": true,
    "visibility": "listed",
    "enrollment_cap": 150,
    "waitlist": true,
    "waitlist_cap": 12,
    "enrollment_fee": 49.99,
    "days_to_complete": 45,
    "list_order": 123,
    "requirement_ids": [

    ],
    "sequential": true,
    "tag_names": [
      "Tag",
      "Another Tag"
    ]
  }
}

Response

Response Fields

Name Description Type
id Identifier for this listing. Integer
visibility Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
enrollment_open Open for enrollment Boolean
enrollment_open_from If specified, enrollment is open only from this date-time Datetime
enrollment_open_to If specified, enrollment is open only to this date-time Datetime
enrollment_cap A limit for the total number of enrollments Integer
waitlist Waitlist enabled Boolean
waitlist_cap Wait List Limit for the total number of wait listed enrollments Integer
title Title of the listing String
enrollment_fee Enrollment fee Decimal
currency The three digit currency code associated to the enrollment fee String
listing_path Path to the listing. Used in URLs String
listing_url The URL of the listing String
short_description A short description for this listing String
list_order Order in which the listing is listed in the catalog Integer
tag_names List of tags applied to this listing Array
detail_code Payment detail code for a course (only if enabled with :payment_detail_code_enabled feature flag) String
show_free_banner Show the 'FREE' mark on the card of the listing if free Boolean
catalog[id] Id for the catalog that owns this listing Integer
catalog[name] Name for the catalog that owns this listing String
created_at The creation date for the listing. Datetime
updated_at The last time the listing was updated. Datetime
sequential Indicates if students are required to complete requirements in order Boolean
requirements A nested array of the programs requirements. This includes courses and subprograms which can be distinguished by the type key. Array
credits Cumulative credit value of the program's requirements Decimal

Status

201

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Location: https://www.my-catalog.edu/api/v1/programs/12
Content-Type: application/json; charset=utf-8
X-CSRF-Token: 5qQb3DlZCFV3gW+O3sUwivWq+GLXyevQfx5dMcrnLmaFIYiWs4PYoyXHQfk8HaM0wj3zEFmf9m3/qnYI59eHgA==
ETag: W/"30ec30d32deb6adad314934222dff4bb"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=UUlYSVpsSnQweFZwTGZ6ZG82NDhyQVlhVzl6VitKWkRMNlRjQlp5d3NJcklTNTRpbENLbG4xN2ZXNUtDaGJ2bUdxZEpQOHovSnllZVZ6MDN2M2lDTHNVd0JqM2tuR3dBSDBXWFFIaDI4UUVndFd5cmx3YXRFZDhsQUgrakk2aXNvM0RhQk1oRE9yaU9Qa1h4MFNLZE1RdXh4NDQvcStQWUcvdUdmYzVQeE1wYmZnUW1xK04zZjV4bmhZYXZiWitZLS04Z0MwN1JkTWh6Q3l0RzBkWkxQZ3FBPT0%3D--e7326264116575da3d892c975611853623371ee7; path=/; HttpOnly
X-Request-Id: 7ff0bdd3-3688-4793-a5d0-63d239c3e451
X-Runtime: 0.156199
Content-Length: 807

Body

{
  "program": {
    "id": 12,
    "visibility": "listed",
    "enrollment_open": true,
    "enrollment_open_from": null,
    "enrollment_open_to": null,
    "enrollment_cap": 150,
    "description": "This is a very awesome program.",
    "enrollment_fee": "49.99",
    "created_at": "2023/05/12 09:12:10 +0000",
    "credits": null,
    "measurement": "credit",
    "updated_at": "2023/05/12 09:12:10 +0000",
    "short_description": "This is an example teaser",
    "listing_path": "program-1",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 20,
      "name": "Domain Account 21"
    },
    "type": "Program",
    "title": "Program 1",
    "list_order": 123,
    "waitlist": true,
    "waitlist_cap": 12,
    "sku": null,
    "show_free_banner": true,
    "image_alt_text": null,
    "allowed_payment_types": [
      "standard"
    ],
    "tag_names": [
      "Tag",
      "Another Tag"
    ],
    "listing_url": "http://www.my-catalog.edu/programs/program-1",
    "sequential": true,
    "requirements": [

    ]
  }
}

Deleting a specific program

Endpoint

DELETE https://www.my-catalog.edu/api/v1/programs/:id

Request

Route

DELETE https://www.my-catalog.edu/api/v1/programs/26

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Content-Type: application/x-www-form-urlencoded
Cookie: 

Response

Status

204

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
X-CSRF-Token: l7zIOvkVcy7F/jC9Y7OI6KiJHIThgkjcKHrthdO8w6oaM38NzTYCMNcoDrf0mN4A0eg1jgStRqligwm/R2uRNg==
Cache-Control: no-cache
Set-Cookie: _gallery_session=QjlaRFVxS0szMGZJbWs2UDhxRGFONDNVM3lnblRLcFBKeVhNcEJMNkt6WExkTG5BUGRySDZObllrejFrbldhSC9hRlRSMjN5VEMzbFozQko1ZUlQd1cyRlU5UGJFb0lJQlF5ekQwQTMyQngrOUZNMWhTK2FVWGFjWmtFSTRFczVqVy9yUmNmZUJ0eTNqZHRQeW03YVVjRVlHWDhXekZUZjNLaXpDallES1VaSGt3TWlSNDRWT0dNb3BJZHV3SUlPLS1GQWE4MGxURy9CRUFFTjhKdGJvOUlnPT0%3D--f9358031ba22d8617c41bdfbe5ffe20f7af7fa23; path=/; HttpOnly
X-Request-Id: 2d0b7c78-7a65-4062-b197-fa4d667ac7f7
X-Runtime: 0.112355

Getting a specific program

Endpoint

GET https://www.my-catalog.edu/api/v1/programs/:id

Request

Route

GET https://www.my-catalog.edu/api/v1/programs/14

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this listing. Integer
visibility Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
enrollment_open Open for enrollment Boolean
enrollment_open_from If specified, enrollment is open only from this date-time Datetime
enrollment_open_to If specified, enrollment is open only to this date-time Datetime
enrollment_cap A limit for the total number of enrollments Integer
waitlist Waitlist enabled Boolean
waitlist_cap Wait List Limit for the total number of wait listed enrollments Integer
title Title of the listing String
enrollment_fee Enrollment fee Decimal
currency The three digit currency code associated to the enrollment fee String
listing_path Path to the listing. Used in URLs String
listing_url The URL of the listing String
short_description A short description for this listing String
list_order Order in which the listing is listed in the catalog Integer
tag_names List of tags applied to this listing Array
detail_code Payment detail code for a course (only if enabled with :payment_detail_code_enabled feature flag) String
show_free_banner Show the 'FREE' mark on the card of the listing if free Boolean
catalog[id] Id for the catalog that owns this listing Integer
catalog[name] Name for the catalog that owns this listing String
created_at The creation date for the listing. Datetime
updated_at The last time the listing was updated. Datetime
sequential Indicates if students are required to complete requirements in order Boolean
requirements A nested array of the programs requirements. This includes courses and subprograms which can be distinguished by the type key. Array
credits Cumulative credit value of the program's requirements Decimal

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: K5FjIp681kZKeB4HFE3alfNwLoxCh/3/lpiETKfM+pXKifEKV8Igr1LoAnEZQ9gDuet1Rp1NEdvchxrgYU064g==
ETag: W/"04808a09e002d4bccaa2cf457d7c9763"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=bU16MnBrTGhFMnVNRkZyQWNKQmR4RUVlOTJVTkJhMzV4T05rRENaL1dtT2JIcmZYU2RJb1M5RDBkREVWcEdMZkkxLzJwQzY5MjlVejloYllnZk1WYUIxQTJRVjgwOUw2TVBhRnpaaUEyeFJlb3ZkWEYxUVk3b3RMYlI5Wno0WE1FZDUvQVdZWW94aldiNGdVMnFMU2hld1lmNlBESW94cE0rVjkzemJyaDhneXpYS2ZpRENPeS9kdDRDOG5iSUpPLS1KZmdHQ0Y3K3YrZXcxb2RtOUdEbjZBPT0%3D--21b94f7d90240731439078c424f41df9ef309499; path=/; HttpOnly
X-Request-Id: 660b9e42-a076-45e7-a4a1-0e2661c20787
X-Runtime: 0.143011
Content-Length: 4548

Body

{
  "program": {
    "id": 14,
    "visibility": "listed",
    "enrollment_open": true,
    "enrollment_open_from": null,
    "enrollment_open_to": null,
    "enrollment_cap": null,
    "description": "description_12",
    "enrollment_fee": "0.0",
    "created_at": "2023/05/12 09:12:10 +0000",
    "credits": 9.0,
    "measurement": "credit",
    "updated_at": "2023/05/12 09:12:10 +0000",
    "short_description": "teaser_12",
    "listing_path": "program-path-12",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 22,
      "name": "Domain Account 23"
    },
    "type": "Program",
    "title": "Program 12",
    "list_order": null,
    "waitlist": false,
    "waitlist_cap": null,
    "sku": null,
    "show_free_banner": true,
    "image_alt_text": null,
    "allowed_payment_types": [
      "standard"
    ],
    "tag_names": [
      "Tag",
      "Another Tag"
    ],
    "listing_url": "http://www.my-catalog.edu/programs/program-path-12",
    "sequential": true,
    "requirements": [
      {
        "id": 15,
        "visibility": "listed",
        "enrollment_open": true,
        "enrollment_open_from": null,
        "enrollment_open_to": null,
        "enrollment_cap": null,
        "description": "description_13",
        "enrollment_fee": "0.0",
        "created_at": "2023/05/12 09:12:10 +0000",
        "credits": 3.0,
        "measurement": "credit",
        "updated_at": "2023/05/12 09:12:10 +0000",
        "short_description": "teaser_13",
        "listing_path": "program-path-13",
        "listing_image": null,
        "currency": "USD",
        "catalog": {
          "id": 22,
          "name": "Domain Account 23"
        },
        "type": "Program",
        "title": "Program 13",
        "list_order": null,
        "waitlist": false,
        "waitlist_cap": null,
        "sku": null,
        "show_free_banner": true,
        "image_alt_text": null,
        "allowed_payment_types": [
          "standard"
        ],
        "tag_names": [

        ],
        "listing_url": "http://www.my-catalog.edu/programs/program-path-13",
        "sequential": true,
        "requirements": [
          {
            "id": 17,
            "visibility": "listed",
            "enrollment_open": true,
            "enrollment_open_from": null,
            "enrollment_open_to": null,
            "enrollment_cap": null,
            "description": "description_15",
            "enrollment_fee": "0.0",
            "created_at": "2023/05/12 09:12:10 +0000",
            "credits": 3.0,
            "measurement": "credit",
            "updated_at": "2023/05/12 09:12:10 +0000",
            "short_description": "teaser_15",
            "listing_path": "course-path-15",
            "listing_image": null,
            "currency": "USD",
            "catalog": {
              "id": 22,
              "name": "Domain Account 23"
            },
            "type": "Course",
            "title": "Course 15",
            "list_order": null,
            "waitlist": false,
            "waitlist_cap": null,
            "sku": "sku_11",
            "show_free_banner": true,
            "image_alt_text": null,
            "allowed_payment_types": [
              "standard"
            ],
            "tag_names": [

            ],
            "listing_url": "http://www.my-catalog.edu/courses/course-path-15",
            "canvas_course": {
              "id": 11
            }
          }
        ]
      },
      {
        "id": 16,
        "visibility": "listed",
        "enrollment_open": true,
        "enrollment_open_from": null,
        "enrollment_open_to": null,
        "enrollment_cap": null,
        "description": "description_14",
        "enrollment_fee": "0.0",
        "created_at": "2023/05/12 09:12:10 +0000",
        "credits": 6.0,
        "measurement": "credit",
        "updated_at": "2023/05/12 09:12:10 +0000",
        "short_description": "teaser_14",
        "listing_path": "program-path-14",
        "listing_image": null,
        "currency": "USD",
        "catalog": {
          "id": 22,
          "name": "Domain Account 23"
        },
        "type": "Program",
        "title": "Program 14",
        "list_order": null,
        "waitlist": false,
        "waitlist_cap": null,
        "sku": null,
        "show_free_banner": true,
        "image_alt_text": null,
        "allowed_payment_types": [
          "standard"
        ],
        "tag_names": [

        ],
        "listing_url": "http://www.my-catalog.edu/programs/program-path-14",
        "sequential": true,
        "requirements": [
          {
            "id": 18,
            "visibility": "listed",
            "enrollment_open": true,
            "enrollment_open_from": null,
            "enrollment_open_to": null,
            "enrollment_cap": null,
            "description": "description_16",
            "enrollment_fee": "0.0",
            "created_at": "2023/05/12 09:12:10 +0000",
            "credits": 3.0,
            "measurement": "credit",
            "updated_at": "2023/05/12 09:12:10 +0000",
            "short_description": "teaser_16",
            "listing_path": "course-path-16",
            "listing_image": null,
            "currency": "USD",
            "catalog": {
              "id": 22,
              "name": "Domain Account 23"
            },
            "type": "Course",
            "title": "Course 16",
            "list_order": null,
            "waitlist": false,
            "waitlist_cap": null,
            "sku": "sku_12",
            "show_free_banner": true,
            "image_alt_text": null,
            "allowed_payment_types": [
              "standard"
            ],
            "tag_names": [

            ],
            "listing_url": "http://www.my-catalog.edu/courses/course-path-16",
            "canvas_course": {
              "id": 12
            }
          },
          {
            "id": 19,
            "visibility": "listed",
            "enrollment_open": true,
            "enrollment_open_from": null,
            "enrollment_open_to": null,
            "enrollment_cap": null,
            "description": "description_17",
            "enrollment_fee": "0.0",
            "created_at": "2023/05/12 09:12:10 +0000",
            "credits": 3.0,
            "measurement": "credit",
            "updated_at": "2023/05/12 09:12:10 +0000",
            "short_description": "teaser_17",
            "listing_path": "course-path-17",
            "listing_image": null,
            "currency": "USD",
            "catalog": {
              "id": 22,
              "name": "Domain Account 23"
            },
            "type": "Course",
            "title": "Course 17",
            "list_order": null,
            "waitlist": false,
            "waitlist_cap": null,
            "sku": "sku_13",
            "show_free_banner": true,
            "image_alt_text": null,
            "allowed_payment_types": [
              "standard"
            ],
            "tag_names": [

            ],
            "listing_url": "http://www.my-catalog.edu/courses/course-path-17",
            "canvas_course": {
              "id": 13
            }
          }
        ]
      }
    ]
  }
}

Listing programs

Endpoint

GET https://www.my-catalog.edu/api/v1/programs

Request

Route

GET https://www.my-catalog.edu/api/v1/programs

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 3
Content-Type: application/json; charset=utf-8
X-CSRF-Token: ZCZKPUK6io/n8DIkqpK5Y+v0c4wBZ5OLTvsNBr7o5mm8LYQDzhkBSMjM5mnGCZKFzi4ehhEJg5fMTIBzv023AA==
ETag: W/"73336be4d25489f4108d0de191d8a8c6"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=b3IzTW9lTFdkMitWYnF5NitiZ0RPNjFyTDZYRmZWb3J3UnNyOFhSTnJDSFJibjEwQmdGbVFJSVJUWXJyWXpFTGFxNWdyTkg4ZkR3M3hRNWNFYzBQTnFSd2I4TGY3eFFtMzQ3OW1GS2FKbkFFTGxVNEZjSkd6WTMyUDdMSThUaGFaWWR4NkNWeW9nZ3dkQUZ0SVh0TCtHL0hha2NkSXYvUmRiM1ppYWtNWWZXdXdPY215K1FibGtSV3FZUk83cnVRLS0zT09PNVZiOThnd21oeEowVUZEMnJBPT0%3D--ddf465d896da5eb6e9e1aa7a75d56f9e8b163b7a; path=/; HttpOnly
X-Request-Id: 92e74b17-6f4a-4ffd-86bd-b9752cbf04b6
X-Runtime: 0.174413
Content-Length: 8311

Body

{
  "programs": [
    {
      "id": 20,
      "visibility": "listed",
      "enrollment_open": true,
      "enrollment_open_from": null,
      "enrollment_open_to": null,
      "enrollment_cap": null,
      "description": "description_18",
      "enrollment_fee": "0.0",
      "created_at": "2023/05/12 09:12:11 +0000",
      "credits": 9.0,
      "measurement": "credit",
      "updated_at": "2023/05/12 09:12:11 +0000",
      "short_description": "teaser_18",
      "listing_path": "program-path-18",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 23,
        "name": "Domain Account 24"
      },
      "type": "Program",
      "title": "Program 18",
      "list_order": null,
      "waitlist": false,
      "waitlist_cap": null,
      "sku": null,
      "show_free_banner": true,
      "image_alt_text": null,
      "allowed_payment_types": [
        "standard"
      ],
      "tag_names": [
        "Tag",
        "Another Tag"
      ],
      "listing_url": "http://www.my-catalog.edu/programs/program-path-18",
      "sequential": true,
      "requirements": [
        {
          "id": 21,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_19",
          "enrollment_fee": "0.0",
          "created_at": "2023/05/12 09:12:11 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2023/05/12 09:12:11 +0000",
          "short_description": "teaser_19",
          "listing_path": "program-path-19",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 23,
            "name": "Domain Account 24"
          },
          "type": "Program",
          "title": "Program 19",
          "list_order": null,
          "waitlist": false,
          "waitlist_cap": null,
          "sku": null,
          "show_free_banner": true,
          "image_alt_text": null,
          "allowed_payment_types": [
            "standard"
          ],
          "tag_names": [

          ],
          "listing_url": "http://www.my-catalog.edu/programs/program-path-19",
          "sequential": true,
          "requirements": [
            {
              "id": 23,
              "visibility": "listed",
              "enrollment_open": true,
              "enrollment_open_from": null,
              "enrollment_open_to": null,
              "enrollment_cap": null,
              "description": "description_21",
              "enrollment_fee": "0.0",
              "created_at": "2023/05/12 09:12:11 +0000",
              "credits": 3.0,
              "measurement": "credit",
              "updated_at": "2023/05/12 09:12:11 +0000",
              "short_description": "teaser_21",
              "listing_path": "course-path-21",
              "listing_image": null,
              "currency": "USD",
              "catalog": {
                "id": 23,
                "name": "Domain Account 24"
              },
              "type": "Course",
              "title": "Course 21",
              "list_order": null,
              "waitlist": false,
              "waitlist_cap": null,
              "sku": "sku_14",
              "show_free_banner": true,
              "image_alt_text": null,
              "allowed_payment_types": [
                "standard"
              ],
              "tag_names": [

              ],
              "listing_url": "http://www.my-catalog.edu/courses/course-path-21",
              "canvas_course": {
                "id": 14
              }
            }
          ]
        },
        {
          "id": 22,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_20",
          "enrollment_fee": "0.0",
          "created_at": "2023/05/12 09:12:11 +0000",
          "credits": 6.0,
          "measurement": "credit",
          "updated_at": "2023/05/12 09:12:11 +0000",
          "short_description": "teaser_20",
          "listing_path": "program-path-20",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 23,
            "name": "Domain Account 24"
          },
          "type": "Program",
          "title": "Program 20",
          "list_order": null,
          "waitlist": false,
          "waitlist_cap": null,
          "sku": null,
          "show_free_banner": true,
          "image_alt_text": null,
          "allowed_payment_types": [
            "standard"
          ],
          "tag_names": [

          ],
          "listing_url": "http://www.my-catalog.edu/programs/program-path-20",
          "sequential": true,
          "requirements": [
            {
              "id": 24,
              "visibility": "listed",
              "enrollment_open": true,
              "enrollment_open_from": null,
              "enrollment_open_to": null,
              "enrollment_cap": null,
              "description": "description_22",
              "enrollment_fee": "0.0",
              "created_at": "2023/05/12 09:12:11 +0000",
              "credits": 3.0,
              "measurement": "credit",
              "updated_at": "2023/05/12 09:12:11 +0000",
              "short_description": "teaser_22",
              "listing_path": "course-path-22",
              "listing_image": null,
              "currency": "USD",
              "catalog": {
                "id": 23,
                "name": "Domain Account 24"
              },
              "type": "Course",
              "title": "Course 22",
              "list_order": null,
              "waitlist": false,
              "waitlist_cap": null,
              "sku": "sku_15",
              "show_free_banner": true,
              "image_alt_text": null,
              "allowed_payment_types": [
                "standard"
              ],
              "tag_names": [

              ],
              "listing_url": "http://www.my-catalog.edu/courses/course-path-22",
              "canvas_course": {
                "id": 15
              }
            },
            {
              "id": 25,
              "visibility": "listed",
              "enrollment_open": true,
              "enrollment_open_from": null,
              "enrollment_open_to": null,
              "enrollment_cap": null,
              "description": "description_23",
              "enrollment_fee": "0.0",
              "created_at": "2023/05/12 09:12:11 +0000",
              "credits": 3.0,
              "measurement": "credit",
              "updated_at": "2023/05/12 09:12:11 +0000",
              "short_description": "teaser_23",
              "listing_path": "course-path-23",
              "listing_image": null,
              "currency": "USD",
              "catalog": {
                "id": 23,
                "name": "Domain Account 24"
              },
              "type": "Course",
              "title": "Course 23",
              "list_order": null,
              "waitlist": false,
              "waitlist_cap": null,
              "sku": "sku_16",
              "show_free_banner": true,
              "image_alt_text": null,
              "allowed_payment_types": [
                "standard"
              ],
              "tag_names": [

              ],
              "listing_url": "http://www.my-catalog.edu/courses/course-path-23",
              "canvas_course": {
                "id": 16
              }
            }
          ]
        }
      ]
    },
    {
      "id": 21,
      "visibility": "listed",
      "enrollment_open": true,
      "enrollment_open_from": null,
      "enrollment_open_to": null,
      "enrollment_cap": null,
      "description": "description_19",
      "enrollment_fee": "0.0",
      "created_at": "2023/05/12 09:12:11 +0000",
      "credits": 3.0,
      "measurement": "credit",
      "updated_at": "2023/05/12 09:12:11 +0000",
      "short_description": "teaser_19",
      "listing_path": "program-path-19",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 23,
        "name": "Domain Account 24"
      },
      "type": "Program",
      "title": "Program 19",
      "list_order": null,
      "waitlist": false,
      "waitlist_cap": null,
      "sku": null,
      "show_free_banner": true,
      "image_alt_text": null,
      "allowed_payment_types": [
        "standard"
      ],
      "tag_names": [

      ],
      "listing_url": "http://www.my-catalog.edu/programs/program-path-19",
      "sequential": true,
      "requirements": [
        {
          "id": 23,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_21",
          "enrollment_fee": "0.0",
          "created_at": "2023/05/12 09:12:11 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2023/05/12 09:12:11 +0000",
          "short_description": "teaser_21",
          "listing_path": "course-path-21",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 23,
            "name": "Domain Account 24"
          },
          "type": "Course",
          "title": "Course 21",
          "list_order": null,
          "waitlist": false,
          "waitlist_cap": null,
          "sku": "sku_14",
          "show_free_banner": true,
          "image_alt_text": null,
          "allowed_payment_types": [
            "standard"
          ],
          "tag_names": [

          ],
          "listing_url": "http://www.my-catalog.edu/courses/course-path-21",
          "canvas_course": {
            "id": 14
          }
        }
      ]
    },
    {
      "id": 22,
      "visibility": "listed",
      "enrollment_open": true,
      "enrollment_open_from": null,
      "enrollment_open_to": null,
      "enrollment_cap": null,
      "description": "description_20",
      "enrollment_fee": "0.0",
      "created_at": "2023/05/12 09:12:11 +0000",
      "credits": 6.0,
      "measurement": "credit",
      "updated_at": "2023/05/12 09:12:11 +0000",
      "short_description": "teaser_20",
      "listing_path": "program-path-20",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 23,
        "name": "Domain Account 24"
      },
      "type": "Program",
      "title": "Program 20",
      "list_order": null,
      "waitlist": false,
      "waitlist_cap": null,
      "sku": null,
      "show_free_banner": true,
      "image_alt_text": null,
      "allowed_payment_types": [
        "standard"
      ],
      "tag_names": [

      ],
      "listing_url": "http://www.my-catalog.edu/programs/program-path-20",
      "sequential": true,
      "requirements": [
        {
          "id": 24,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_22",
          "enrollment_fee": "0.0",
          "created_at": "2023/05/12 09:12:11 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2023/05/12 09:12:11 +0000",
          "short_description": "teaser_22",
          "listing_path": "course-path-22",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 23,
            "name": "Domain Account 24"
          },
          "type": "Course",
          "title": "Course 22",
          "list_order": null,
          "waitlist": false,
          "waitlist_cap": null,
          "sku": "sku_15",
          "show_free_banner": true,
          "image_alt_text": null,
          "allowed_payment_types": [
            "standard"
          ],
          "tag_names": [

          ],
          "listing_url": "http://www.my-catalog.edu/courses/course-path-22",
          "canvas_course": {
            "id": 15
          }
        },
        {
          "id": 25,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_23",
          "enrollment_fee": "0.0",
          "created_at": "2023/05/12 09:12:11 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2023/05/12 09:12:11 +0000",
          "short_description": "teaser_23",
          "listing_path": "course-path-23",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 23,
            "name": "Domain Account 24"
          },
          "type": "Course",
          "title": "Course 23",
          "list_order": null,
          "waitlist": false,
          "waitlist_cap": null,
          "sku": "sku_16",
          "show_free_banner": true,
          "image_alt_text": null,
          "allowed_payment_types": [
            "standard"
          ],
          "tag_names": [

          ],
          "listing_url": "http://www.my-catalog.edu/courses/course-path-23",
          "canvas_course": {
            "id": 16
          }
        }
      ]
    }
  ]
}

Updating a program

Endpoint

PUT https://www.my-catalog.edu/api/v1/programs/:id

Parameters

Name Description Type
program[title] Listing title String
program[description] Full listing description String
program[path] Path to the listing. Used in URLs String
program[teaser] A shorter description of the listing String
program[enrollment_open] Indicates if the listing is current accepting new students Boolean
program[enrollment_open_from] If specified, enrollment is open only from this date-time Datetime
program[enrollment_open_to] If specified, enrollment is open only to this date-time Datetime
program[visibility] Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
program[enrollment_cap] A limit for the total number of enrollments Integer
program[enrollment_fee] Enrollment fee Decimal
program[allowed_payment_types] Allowed payment methods Array
program[days_to_complete] The number of days a student has to complete the requirements Integer
program[account_id] The id of the account to associate the listing to. Can be an id of any subcatalog of the catalog making the API request. Defaults to the catalog making the API request. Integer
program[list_order] Order in which the listing is shown in the catalog Integer
program[waitlist] Waitlist enabled (defaults to false) Boolean
program[waitlist_cap] Wait List Limit for the total number of wait listed enrollments Integer
program[listing_image] URL or file upload for the image to be shown with this listing. String
program[tag_names] List of tags applied to this listing Array
program[show_free_banner] Show the 'FREE' mark on the card of the listing if free Boolean
program[requirement_ids] Ordered array of listing IDs that represent requirements for completing the program Array
program[sequential] Indicates if students are required to complete requirements in order Boolean

Request

Route

PUT https://www.my-catalog.edu/api/v1/programs/13

Headers

Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "program": {
    "title": "Program 1",
    "description": "This is a very awesome program.",
    "path": "program-1",
    "teaser": "This is an example teaser",
    "enrollment_open": true,
    "visibility": "listed",
    "enrollment_cap": 150,
    "waitlist": true,
    "waitlist_cap": 12,
    "enrollment_fee": 49.99,
    "days_to_complete": 45,
    "list_order": 123,
    "requirement_ids": [

    ],
    "sequential": true,
    "tag_names": [
      "Tag",
      "Another Tag"
    ]
  }
}

Response

Status

204

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
X-CSRF-Token: vt/vm7xykt1Ozo9k4xKnOXQPZDY0FX6j/dp/PlGnVLhrnHHYJBx1h34yZupj/pdTcKneezRLCdek2i/wsObkCA==
Cache-Control: no-cache
Set-Cookie: _gallery_session=eDFEdTJsbDg5a05YVFREMk41MVIwZWoxdjhvbkEydTE2S2JBZFF4R0k3V2xORDVXNFRDVng4VHVUOCtuaUpVd0JEQXBScitYODdtamN1TDVpa2FVd3J2QkJkT2piYW1YNXp2L2Frakx3R3Y0S0UweE9Xek9KS094K0pFNHh0RVdMSHVCVmt2aHVuTlh5enJ6ZGgrZUJmU0MzYm5rTFcvYWs2MFFwVHcvR2FUeGNpTlFBdUR0Z1dpTnlqWjVyQnNzLS1TYVE3UmVQNU9LK3MrTmhJYWhXUFdBPT0%3D--b5250792c7a64716b1f4ab8ffc203c2aa3842021; path=/; HttpOnly
X-Request-Id: e9493b26-3e53-4931-b1e8-96a41dc77f3e
X-Runtime: 0.121404

Progresses

Getting a specific progress

Endpoint

GET https://www.my-catalog.edu/api/v1/progresses/:id

Request

Route

GET https://www.my-catalog.edu/api/v1/progresses/2

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Progress ID Integer
account_id Catalog Account ID Integer
canvas_user_id The Canvas User ID of the user who initiated the job Integer
completion_percent The completion percent of the job Integer
workflow_state The status of the progress String
payload Any data or errors returned by the job Array
created_at The creation date for the progress job Datetime
updated_at The last time the progress job was updated Datetime

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: /DW/HeYK7PzY02Eu0eA/JbuVv6eSUxCup6nFahINojdydgfWn62suVGKQ+1CZo2E/dSU3pkAPJc5NPMbEmNQeA==
ETag: W/"4ae6f44377d0f9680864bdec35eb4032"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=dFYrZWc1Sk9jK0xwT0JMclJ3b2tqTjZxTTJFMUVPZGFNei9QL3BVYUdlckt6NjFLRzN3b3pPa2pLWDAwYlNsV1VTUGY4VkVxK3AybjBTYS9MT0daN1pLYmYwL2xrekptVHN4TElSNUJpTnlKVHB6cjhTeHQ2ekphNld0d3huR25jUVJIWVp3N3JvNWZLcVBEbkMyVmw2VC9kcnNhdnlvcEVoNmJpd2tFTEQvNkJYeGsydGRwb2lrdjRQSTUzR2t1LS12NDRJQWVGbHhRbUdzRkZZNndIc29BPT0%3D--f917ffd558b3bc853b15e81332ba40c59c1a9b49; path=/; HttpOnly
X-Request-Id: 32aeec74-0627-4783-bc1a-1f4722c8754d
X-Runtime: 0.108425
Content-Length: 206

Body

{
  "progress": {
    "id": 2,
    "account_id": 14,
    "canvas_user_id": null,
    "completion_percent": null,
    "workflow_state": "queued",
    "payload": {
    },
    "created_at": "2023/05/12 09:12:09 +0000",
    "updated_at": "2023/05/12 09:12:09 +0000"
  }
}

User registrations

Getting a specific user registration

Endpoint

GET https://www.my-catalog.edu/api/v1/user_registrations/:id

Parameters

Name Description
id Canvas user ID

Request

Route

GET https://www.my-catalog.edu/api/v1/user_registrations/3

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
canvas_user_id Canvas user ID Integer
name Full name String
email E-mail address String
custom_fields Custom field values, e.g. { 'phone': '(999) 123-4567' } Object
created_at Date/time registration was recorded Datetime
updated_at Date/time last updated Datetime
catalog[id] Id for the catalog this user registered for Integer
catalog[name] Name for the catalog this user registered for String

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: aXlDMigZB/wjpPB1I7VHj06LiNDATox9VsnYEH2BmGOXgr3sVLcUdPmX4yH527Zt2P+9p3tIbktOkM7c32ItfA==
ETag: W/"e445789753fbb8172d3dd5888aa2df10"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=WHpKSlF0TWdWZmo4K21nS0VualdmbldxR2FOOCtDUDJOU01SMCtUOW5jZlRoQ3NEUEZRY1lyZUFFVy9GYzVRTDBVVm8zeWU5MFFoTXplb0VoM2dCek5Vc1ZldDhFMFJsMEhFMHhNRkozU0pWM2wwOHd1azVyYXVIRjR0VlFxQkRQVXE2aGM3QldjMlFEakxiK0hyRWFnNTU2aUJYenFoNzVmaWl2Zlo2L2Z3S3NkNlRZdmMxayt6VXVnMXZvbWVELS1NbEJ2NFV2UkZHamdaMit2KzZYL1lnPT0%3D--61e450dbf489106162863cb035fda588175ed88e; path=/; HttpOnly
X-Request-Id: 31484595-ca1d-46a1-9c19-cc663c50f06b
X-Runtime: 0.103202
Content-Length: 291

Body

{
  "user_registration": {
    "canvas_user_id": 3,
    "catalog": {
      "id": 7,
      "name": "Domain Account 7"
    },
    "name": "User 3",
    "email": "user3@example.com",
    "custom_fields": {
      "favorite_color": "#BADA55",
      "code_of_conduct": "1",
      "age": "19"
    },
    "created_at": "2023/05/12 09:12:08 +0000",
    "updated_at": "2023/05/12 09:12:08 +0000"
  }
}

Listing user registrations

Endpoint

GET https://www.my-catalog.edu/api/v1/user_registrations

Parameters

Name Description
from Earliest date/time to return (optional, String). Suggested format YYYY-MM-DDTHH:MM:SSZ, e.g. 2018-01-01T00:00:00Z. System time zone is UTC.
to Latest date/time to return (optional, String). See 'from' above for format.

Request

Route

GET https://www.my-catalog.edu/api/v1/user_registrations

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: tJph1EH3UxzZXIfYZH4W7YpGo7eF+YbUEPn90XqAPZ44hYmS++6Z1QMtRx3yrP9g+089U+WY2O8y/qBk+CDRUQ==
ETag: W/"e460b86c0e6f409661f41da7a41d6cbb"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=TG5xNzZWSGdaYWMzbGNxS2FGaGkvb2xlRHRWamVPZ0lVUGZFTTJSNVdlSDBWN2NiZ3dVNVIxVzNOKytSKzREUGpQckNMMmRXbHR1ZkdQL1ZDR0JFc2xZendIVkNqaCt0TDZveEJxZWhjNXpTZytFK0dNajNYMUJDNzdMVnQxRVRmR1hSR0ErUENDVFV1dkJvekVYSUQyTDhZTnJsN0FVLzUyY1pOZ1JvdERXbFdvbU1MRk81REdObzNDQUp6TnJSLS0vNkUvbFVHcUMvZUVLeDZyS2Q1UEhnPT0%3D--477c926bba331aa8c8fd71324eeab3ae0608caa0; path=/; HttpOnly
X-Request-Id: a6cabdd1-1162-4a8d-b0d6-d1b7afde442a
X-Runtime: 0.097871
Content-Length: 294

Body

{
  "user_registrations": [
    {
      "canvas_user_id": 1,
      "catalog": {
        "id": 5,
        "name": "Domain Account 5"
      },
      "name": "User 1",
      "email": "user1@example.com",
      "custom_fields": {
        "favorite_color": "#BADA55",
        "code_of_conduct": "1",
        "age": "19"
      },
      "created_at": "2023/05/12 09:12:08 +0000",
      "updated_at": "2023/05/12 09:12:08 +0000"
    }
  ]
}

Registering a user

Endpoint

POST https://www.my-catalog.edu/api/v1/user_registrations

Parameters

Name Description
name Full name
email E-mail address (will also serve as login)
catalog_id ID of subcatalog to associate with user (optional)
custom_fields Hash of custom field values, e.g. { 'phone': '867-5309' } (optional)

Request

Route

POST https://www.my-catalog.edu/api/v1/user_registrations

Headers

Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "user_registration": {
    "name": "Barack Obama",
    "email": "barack@obama.com",
    "custom_fields": {
      "phone": "(999) 123-4567"
    }
  }
}

Response

Response Fields

Name Description Type
canvas_user_id Canvas user ID Integer
name Full name String
email E-mail address String
custom_fields Custom field values, e.g. { 'phone': '(999) 123-4567' } Object
created_at Date/time registration was recorded Datetime
updated_at Date/time last updated Datetime
catalog[id] Id for the catalog this user registered for Integer
catalog[name] Name for the catalog this user registered for String

Status

201

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: 6hHOVx5Dqf/QVCi9iUKqpHvRTn9ydi3qbdLoqOFRMODIb4dDBmFGbOmQulhXLUH8f//3im9nDUhRsiSPMTY4nw==
ETag: W/"ceecf9eca934e66547eca0985349294f"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=bVM0UTNJRG5LNDFqVlM4aDMrN1ZlK3dNT28wcTBTZHlmcVA1MWp0QXBGbXNBZCtFSHZJNkxwT2tyVFJMRnBoOHlFbjhWMjBQWmw4bVdjcFpJRno0TXg0djlNSzFSY1gzQzFNWk9RY0k5U01tMEdBclZZaHo3Zi90OU5XQjRtT2RFb3l2M1lUNTR1MmxSUktEYWlxUzkvbml5SEJvNTVVelVGV1JSd2ZqdGt2ME5uU2Q1MEpVQXpVbmYvNFBzdlNBLS1SeWJHVWl2OEQ0cjJFRUV3OVpEQVdRPT0%3D--4249f36a4e94300279db299f57f573500a7a7245; path=/; HttpOnly
X-Request-Id: ec100f06-3adf-4db3-b117-d7c24f20f2d0
X-Runtime: 0.136067
Content-Length: 240

Body

{
  "user_registration": {
    "canvas_user_id": 1234,
    "catalog": {
      "id": 6,
      "name": "Domain Account 6"
    },
    "name": "Barack Obama",
    "email": "barack@obama.com",
    "custom_fields": {
    },
    "created_at": "2023/05/12 09:12:08 +0000",
    "updated_at": "2023/05/12 09:12:08 +0000"
  }
}

Waitlist applicants

Delete applicants

Endpoint

DELETE https://www.my-catalog.edu/api/v1/applicants

Parameters

Name Description
listing_id required applicants for the specified listing (Integer)
canvas_user_id delete for the specific canvas user id (optional, Integer)

Request

Route

DELETE https://www.my-catalog.edu/api/v1/applicants

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Content-Type: application/x-www-form-urlencoded
Cookie: 

Body

listing_id=11

Response

Status

204

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
X-CSRF-Token: Y20reUjtOPFUuzgXGpKFCNNb1w4l7szuj0ifL0yM+qBYxbafjxPwbNHJZSUHTlG+9SmUNJIk2YKc7T+6u620Fg==
Cache-Control: no-cache
Set-Cookie: _gallery_session=aVV4dmhaRXR0eGg4allwbENHL211M2owSnBvaVMvTFBycmRqTlBmelZOVWg3UE5mekNoZTV5eStrYk5ubWhZTWplQWlDNi8rcmtUeGl0Z2hCRnVZdTJJcVgzaXViNXBhT2RySVJDMjhiRWdpUlJjQUpTbXRQUXJZUTY2UmU0c1lIMVF4c3A5Njljc0VKNER6MzRkeHJUbk1QUURJWkJFbThPRXA3RStBelJMOERmZTdweUl0YmRBV1NEWWRaSDVELS16aTQ1UCtiYzg3NEs1Y08zT25ZV1ZRPT0%3D--012bd11d9e6089805716feea558ac6bceafba8cc; path=/; HttpOnly
X-Request-Id: d482769d-44e3-4bf8-af21-f1101c31028b
X-Runtime: 0.088964

Getting a specific applicant record

Endpoint

GET https://www.my-catalog.edu/api/v1/applicants/:id

Request

Route

GET https://www.my-catalog.edu/api/v1/applicants/2

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this applicant Integer
listing[id] Identifier for listing Integer
listing[title] Listing title String
user[id] User ID Integer
user[name] Full name String
user[email] E-mail address String
status Status (waitlist, accepted, expired, or error) String
notified_of_opening_at Time user was notified of opening Datetime
created_at The creation date for the applicant Datetime
updated_at The last time the applicant was updated Datetime

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: JO/GArI4fniktTCLYerNrNJAf0V7jnEKy2VgMoYQJY2e2FyvQwsTfqL3Lkb3TVVk/RxSHnVmDOfIuwQaiZ3zGg==
ETag: W/"3d28ab76e22f0365c45dc1974acfe9b2"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=N0tLL1REWTQ4VjNDNzlCZEVuU09kRi96WGhVMUVHdzNQVS9iNlhXYmprdTc0V0IrOGdWUTN3eDNJclJadnhseHMyRjZmNVZkTVJub0dsTzBWVlEwRkZNcEVVdzczN25QU29qYzh4U2pjaXZEc2tVQVBiajMrRkgwOFFEcURHcmY4R2VmdkxrT1ZUdEY3YWJ1Qnpnc25hL3JScTl3RGdEZHZJVHZ0K0lEbzNwV0R2YVNjRWkvRzhGRWtvR3JOWitMLS03WWx1SGw1c3BsaHc5Z0NoTDc4cmFnPT0%3D--7ab6da4a8f1d7644eabb9e338857fb7a7ef67109; path=/; HttpOnly
X-Request-Id: cab3c01b-d9e4-4ca0-89f4-f2280f2c03a6
X-Runtime: 0.095380
Content-Length: 254

Body

{
  "applicant": {
    "id": 2,
    "user": {
      "id": 2,
      "name": "Applicant",
      "email": "plz@letmein.com"
    },
    "listing": {
      "id": 10,
      "title": "Course 9"
    },
    "notified_of_opening_at": null,
    "status": "waitlist",
    "created_at": "2023/05/12 09:12:10 +0000",
    "updated_at": "2023/05/12 09:12:10 +0000"
  }
}

Listing applicants

Endpoint

GET https://www.my-catalog.edu/api/v1/applicants

Parameters

Name Description
listing_id Only include applicants for the specified listing (optional, Integer)
status Only include applicants for the specified status (optional, String)

Request

Route

GET https://www.my-catalog.edu/api/v1/applicants

Headers

Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: MYgmoanN5c+7YG4Q8IHBPxcmgQtJiirc+qEGLqwrOWtauACsB5QO9K95XRUtE5yP5ATgPKambEGFWjsMEbqLSw==
ETag: W/"a5438190273f37a700428590b6764b14"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=NlN2Q2RwVC9CRmlqYmxaWDdhS3kzR2gxRlI1bDdaR1UvdnhVL3RTcEE5Nk9CZHRMejJMbUFPRzV3WlpML09NMWp3bXJmY0ZKbXFzc0VkeHczeXBqMmN6K1hWQzFPbXpETlJhbDM0TUJRS1Erc3lXOFh6UTV6NU5OTjJtNXZUVERqeGE0OGFGNDRFQWpRQm1RaEdwYjZqaW8vL1F1dVdOVm5ZQVJvOENhcDdwSG1aeTNBdS9YOEZlOEZ3Z0ZaOG9ZLS1VbU9XSE5MTmVzS0dsamRTNWR1ODJ3PT0%3D--52177e82454c8fcf88f2fda2eb02512f88a157aa; path=/; HttpOnly
X-Request-Id: a93d6da7-9c9f-4fce-9ebd-2c444558af2d
X-Runtime: 0.098904
Content-Length: 256

Body

{
  "applicants": [
    {
      "id": 1,
      "user": {
        "id": 1,
        "name": "Applicant",
        "email": "plz@letmein.com"
      },
      "listing": {
        "id": 9,
        "title": "Course 8"
      },
      "notified_of_opening_at": null,
      "status": "waitlist",
      "created_at": "2023/05/12 09:12:10 +0000",
      "updated_at": "2023/05/12 09:12:10 +0000"
    }
  ]
}