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"'

Analytics

The POST request parameters should be sent as JSON in the request body.
If the request is unfiltered, an empty JSON object should be sent as the filter.

Getting enrollments analytics

Endpoint

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

Parameters

Name Description Type
account_ids List of account ids Array
product_ids List of product ids Array
product_statuses List of product statuses (OPEN, CLOSED, and/or DELETED) Array
student_ids List of student ids(catalog user id) Array
student_canvas_user_ids List of student ids(canvas user id) Array
enrollment_date_from Enrollment date from Datetime
enrollment_date_to Enrollment date to Datetime
enrollment_statuses List of enrollment statuses (ACTIVE, COMPLETED, DROPPED and/or CONCLUDED) Array
completion_date_from Completion date from Datetime
completion_date_to Completion date to Datetime

Request

Route

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

Headers

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

Body

{
  "account_ids": [
    1,
    2,
    3
  ],
  "product_ids": [
    1,
    2,
    3
  ],
  "product_statuses": [
    "OPEN",
    "CLOSED",
    "DELETED"
  ],
  "student_ids": [
    1,
    2,
    3
  ],
  "student_canvas_user_ids": [
    1,
    2,
    3
  ],
  "enrollment_date_from": "2023-06-05T14:46:59.944581+02:00",
  "enrollment_date_to": "2023-06-06T14:46:59.944581+02:00",
  "enrollment_statuses": [
    "ACTIVE",
    "COMPLETED",
    "DROPPED",
    "CONCLUDED"
  ],
  "completion_date_from": "2023-06-05T14:46:59.944581+02:00",
  "completion_date_to": "2023-06-06T14:46:59.944581+02:00"
}

Response

Response Fields

Name Description Type
id Enrollment id Integer
account_id Account id Integer
account_name Account name String
product[name] Product name String
product[id] Product id Integer
product[url] Product url (null if product is deleted) String
product[sku] Product sku String
product_status Product status (OPEN, CLOSED, or DELETED) String
canvas_course_id Canvas course id Integer
student[canvas_user_id] Student Canvas user id Integer
student[name] Student name String
student[email] Student email String
student[canvas_user_id_string] Canvas user id in string format String
created_at Creation date Datetime
completed_at Completion date Datetime
enrollment_status Enrollment status (ACTIVE, COMPLETED, DROPPED or CONCLUDED) String
certificate_attainable Product has a certificate Boolean
certificate_offered Certificate offered/earned Boolean
certificate_url Certificate url 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
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: BzxtaSnGUf0UhLQFSrspslQUhf3/W2IfjNMhON4U3gDI14mDVW0i3W+b6w2aUne5Hsr9dl7q0Yh2ZHyC48VNVg==
ETag: W/"06af654158821a78e8ecc139518be344"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=bmNKdE9TTzE3VDdyQWU4eUtCajd6ck84am9BV3JOak5LTHRnNjhqcnFZVzhuSCs2TmxsdEx2RThRaWM5aDNFK2FjcFU1THFPTi9zWW5MOEdzSVRNOHc3VjYzSmJqUmdSVDRPbE5BclB2TGdNbUs4UllTSkMwT05wSng2SFN4dlpabXNpa0UyUmxYN1UyNDYrUE9OK0pkamZIZU4wWWdGaE5NZkFCUDRKS0VkaThDUGJOeEs1SVRDREljbktXVnU1LS1BbDFUS2E5NkFxL2FSN1dmL0JKR01RPT0%3D--ab96c0278e4e036839ab942f75f5bf5f7734f497; path=/; HttpOnly
X-Request-Id: 77d7b10a-3439-48ed-9467-fa30a2427e99
X-Runtime: 0.028595
Content-Length: 596

Body

{
  "enrollments": [
    {
      "id": 25,
      "account_id": 3,
      "account_name": "Sub-Account 1",
      "product": {
        "name": "Course 1",
        "id": 5,
        "url": "https://www.my-catalog.edu/admin/products/1/edit",
        "sku": "sku"
      },
      "product_status": "OPEN",
      "canvas_course_id": 11,
      "student": {
        "canvas_user_id": 1,
        "name": "User 15",
        "email": "user15@instructure.com",
        "canvas_user_id_string": "1"
      },
      "created_at": "2023-06-05T14:46:59.944581+02:00",
      "completed_at": "2023-06-29T12:13:27+02:00",
      "enrollment_status": "COMPLETED",
      "certificate_attainable": true,
      "certificate_offered": true,
      "certificate_url": "https://www.my-catalog.edu/admin/certificates/1.pdf?user_id=1"
    }
  ]
}

Getting orders analytics

Endpoint

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

Parameters

Name Description Type
account_ids List of account ids Array
product_ids List of product ids Array
product_statuses List of product statuses (OPEN, CLOSED, and/or DELETED) Array
student_ids List of student ids(catalog user id) Array
student_canvas_user_ids List of student ids(canvas user id) Array
purchaser_ids List of purchaser ids(catalog user id) Array
purchaser_canvas_user_ids List of purchaser ids(canvas user id) Array
bulk_purchases_only Bulk purchases only Boolean
purchase_date_from Purchase date from Datetime
purchase_date_to Purchase date to Datetime
order_fee List of order fee types (FREE and/or PAID) Array
listing_price_min Listing price minimum Decimal
listing_price_max Listing price maximum Decimal
promo_codes List of promotion code states (APPLIED and/or NOT_APPLIED) Array
revenue_min Revenue minimum Decimal
revenue_max Revenue maximum Decimal

Request

Route

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

Headers

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

Body

{
  "account_ids": [
    1,
    2,
    3
  ],
  "product_ids": [
    1,
    2,
    3
  ],
  "product_statuses": [
    "OPEN",
    "CLOSED",
    "DELETED"
  ],
  "student_ids": [
    1,
    2,
    3
  ],
  "student_canvas_user_ids": [
    1,
    2,
    3
  ],
  "purchaser_ids": [
    1,
    2,
    3
  ],
  "purchaser_canvas_user_ids": [
    1,
    2,
    3
  ],
  "bulk_purchases_only": true,
  "purchase_date_from": "2023-06-05T14:46:59.944581+02:00",
  "purchase_date_to": "2023-06-06T14:46:59.944581+02:00",
  "order_fee": 10.0,
  "listing_price_min": 5.0,
  "listing_price_max": 100.6,
  "promo_codes": [
    "APPLIED",
    "NOT_APPLIED"
  ],
  "revenue_min": 5.0,
  "revenue_max": 1000.1
}

Response

Response Fields

Name Description Type
account_id Account id Integer
account_name Account name String
product[name] Product name String
product[id] Product id Integer
product[url] Product url (null if product is deleted) String
product[sku] Product sku String
product_status Product status (OPEN, CLOSED, or DELETED) String
canvas_course_id Canvas course id Integer
purchaser[id] Purchaser Catalog user id Integer
purchaser[canvas_user_id] Purchaser Canvas user id Integer
purchaser[name] Purchaser name String
purchaser[email] Purchaser email String
purchaser[canvas_user_id_string] Purchaser Canvas user id in string format String
purchased_at Purchase date Datetime
order_id Order id Integer
order_item_id Order item id Integer
reference_id Reference id String
list_price Listing price Decimal
currency Currency String
promo_codes List of promotion codes Array
discount Discount Decimal
revenue Revenue Decimal
bulk_purchase Bulk purchase Boolean
seat_count Seat count Integer
bulk_enrollments List of bulk enrolled students Array
bulk_enrollments[id] Bulk enrolled Catalog user id Integer
bulk_enrollments[canvas_user_id] Bulk enrolled Canvas user id Integer
bulk_enrollments[name] Bulk enrolled student name String
bulk_enrollments[email] Bulk enrolled student email String
bulk_enrollments[canvas_user_id_string] Bulk enrolled Canvas user id in string format String
last_modification_date Last modification date of revenue Datetime
revenue_change_history Revenue change history list Array
revenue_change_history[modification_date] Modification date of revenue update Datetime
revenue_change_history[new_value] New revenue value Decimal
revenue_change_history[new_value_currency] New revenue value currency String
revenue_change_history[old_value] Old revenue value Decimal
revenue_change_history[old_value_currency] Old revenue value currency String
revenue_change_history[reason] Reason of revenue update String
revenue_change_history[user_name] Name of the user who updated the revenue String
revenue_change_history[user_profile_link] Link to the user profile 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
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: BpoU0199wyun0X9NmYUCPqSaVQNuIUp3yD0zZOVsmgpBJmE4AmyU+eVNzjdFr9edzGDKX08QyT0fyFJJKU6pDA==
ETag: W/"2bc151db8614f69f334f1698f64f13bf"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=dSswaU5RVVIvU1B1UHZpenRnbVFPNCt3Z09jTjl1RlpaVU1HQVJCTjdEdUZYYjJjZCt3b25ES2lCNWg2T2h1N2J2UHRRejhsLzU4czdlc1lQMmJGRDRXczZ2RGdlUnhNdGFCblU4OEhnVmVoRldDY040S2hMa21OM1dmUmlQenN0OVJQRVZkaUtCU0t1ZzFwR1huM2lPaFVuVWZaMWo0N0VDT3RYWGlIVjYxZ2M0Mks1TnVMMHlmVkNpcFEyMFN0LS1ZY2w5QjVaUlREQXlKOTZQRG9tSEtBPT0%3D--6482ae7fff78e3ab54214f18966eafc37d4dfa99; path=/; HttpOnly
X-Request-Id: 2a1693ee-b9db-4339-a010-f83b4a70c6f4
X-Runtime: 0.057928
Content-Length: 1470

Body

{
  "orders": [
    {
      "account_id": 3,
      "account_name": "Sub-Account 1",
      "product": {
        "name": "Course 1",
        "id": 5,
        "url": "https://www.my-catalog.edu/admin/products/1/edit",
        "sku": "sku"
      },
      "product_status": "OPEN",
      "canvas_course_id": 11,
      "purchaser": {
        "id": 1,
        "canvas_user_id": 1,
        "name": "Purchaser 1",
        "email": "purchaser1@instructure.com",
        "canvas_user_id_string": "1"
      },
      "purchased_at": "2023-07-02T23:30:59.052239+02:00",
      "order_id": 81,
      "order_item_id": 123,
      "reference_id": "PR-81-82",
      "list_price": 5.0,
      "currency": "USD",
      "promo_codes": [
        "PROMO1",
        "PROMO2"
      ],
      "discount": 10.0,
      "revenue": 5.0,
      "bulk_purchase": true,
      "seat_count": 3,
      "bulk_enrollments": [
        {
          "id": 141,
          "canvas_user_id": 74,
          "name": "User 17",
          "email": "user17@instructure.com",
          "canvas_user_id_string": "74"
        },
        {
          "id": 138,
          "canvas_user_id": 73,
          "name": "User 16",
          "email": "user16@instructure.com",
          "canvas_user_id_string": "73"
        }
      ],
      "last_modification_date": "2023-07-09T23:30:59.052239+02:00",
      "revenue_change_history": [
        {
          "modification_date": "2023-07-09T23:30:59.052239+02:00",
          "new_value": 5.0,
          "new_value_currency": "USD",
          "old_value": 2.0,
          "old_value_currency": "USD",
          "reason": "This is very important",
          "user_name": "user19@instructure.com",
          "user_profile_link": "https://www.my-catalog.edu/accounts/2/users/1"
        },
        {
          "modification_date": "2023-07-08T23:30:59.052239+02:00",
          "new_value": 2.0,
          "new_value_currency": "USD",
          "old_value": 11.0,
          "old_value_currency": "USD",
          "reason": "This is important",
          "user_name": "user20@instructure.com",
          "user_profile_link": "https://www.my-catalog.edu/accounts/2/users/2"
        }
      ]
    }
  ]
}

Getting products analytics

Endpoint

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

Parameters

Name Description Type
account_ids List of account ids Array
product_ids List of product ids Array
product_statuses List of product statuses (OPEN, CLOSED, and/or DELETED) Array
creation_date_from Creation date from Datetime
creation_date_to Creation date to Datetime
enrollment_count_min Enrollment count minimum Integer
enrollment_count_max Enrollment count maximum Integer
completion_count_min Completion count minimum Integer
completion_count_max Completion count maximum Integer
dropped_count_min Dropped count minimum Integer
dropped_count_max Dropped count maximum Integer
listing_price_min Listing price minimum Decimal
listing_price_max Listing price maximum Decimal
promo_codes List of promotion code states (APPLIED and/or NOT_APPLIED) Array
revenue_min Revenue minimum Decimal
revenue_max Revenue maximum Decimal
certificate_offered Certificate offered for the product Boolean

Request

Route

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

Headers

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

Body

{
  "account_ids": [
    1,
    2,
    3
  ],
  "product_ids": [
    1,
    2,
    3
  ],
  "product_statuses": [
    "OPEN",
    "CLOSED",
    "DELETED"
  ],
  "creation_date_from": "2023-06-05T14:46:59.944581+02:00",
  "creation_date_to": "2023-06-06T14:46:59.944581+02:00",
  "enrollment_count_min": 0,
  "enrollment_count_max": 5,
  "completion_count_min": 0,
  "completion_count_max": 5,
  "dropped_count_min": 0,
  "dropped_count_max": 5,
  "listing_price_min": 10.1,
  "listing_price_max": 1000.5,
  "promo_codes": [
    "APPLIED",
    "NOT_APPLIED"
  ],
  "revenue_min": 10.1,
  "revenue_max": 500.5,
  "certificate_offered": true
}

Response

Response Fields

Name Description Type
account_id Account id Integer
account_name Account name String
product[name] Product name String
product[id] Product id Integer
product[url] Product url (null if product is deleted) String
product[sku] Product sku String
product_status Product status (OPEN, CLOSED, or DELETED) String
created_at Product creation date Datetime
canvas_course_id Canvas course id Integer
enrollment_count Enrollment count Integer
dropped_count Dropped count Integer
completion_count Completion count Integer
currency Currency String
list_price Listing price Decimal
promo_codes List of promotion codes Array
discount Discount Decimal
revenue Revenue Decimal
points Points (null if account measurement is not point) Decimal
ceus CEUs (null if account measurement is not CEU) Decimal
credits Credits (null if account measurement is not credit) Decimal
certificate_offered Certificate offered for this product 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: fcjLDAbBWQLN5hRyWVN5sh6VdAKL9dScql7ai1uUTKf6N2HvT3uFACBp6WL+iRnGpeB0vHtpcoAqDu4NmrU4uw==
ETag: W/"5a2f0129ae43f07ed8a378bdee3c6555"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=c2xYOFJiODJORnpPYUp5eFdIb1Q4WTlZY0VITkpUcXFXaDVFWVdIQ0RwYjl3NVNFczNzZThjb0k2djQwblAzaEJiUTM5cEVDUHByNi9mUHJSaWRNbmYwNUZaV3ZBOGJTRmhmSHhOaWpSNzR4RmVldFhZaWM1MXhnQXlJam1rNGxBWW5TSU9iSVNYcmJnQ3BuTWg5TU8vbzBuRTFRV0t4SEVnczJmUEJmRUczb004OXVQVExFendrSXU5OVo5NjJRLS1mZkNBTXVKeC9idFVkTS9VQ2hidzdRPT0%3D--00699091726912e53eb41a4075219e7283b8580a; path=/; HttpOnly
X-Request-Id: a62ecf48-0fa1-4b59-85dc-c132faca74e8
X-Runtime: 0.027747
Content-Length: 463

Body

{
  "products": [
    {
      "account_id": 3,
      "account_name": "Sub-Account 1",
      "product": {
        "name": "Course 1",
        "id": 5,
        "url": "https://www.my-catalog.edu/admin/products/1/edit",
        "sku": "sku"
      },
      "product_status": "OPEN",
      "created_at": "2023-06-05T14:46:59.944581+02:00",
      "canvas_course_id": 11,
      "enrollment_count": 7,
      "dropped_count": 3,
      "completion_count": 2,
      "currency": "USD",
      "list_price": 10.0,
      "promo_codes": [
        "PROMO1",
        "PROMO2"
      ],
      "discount": 10.0,
      "revenue": 60.0,
      "credits": 5.0,
      "certificate_offered": true
    }
  ]
}

Getting users analytics

Endpoint

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

Parameters

Name Description Type
account_ids List of account ids Array
student_ids List of student ids(catalog user id) Array
student_canvas_user_ids List of student ids(canvas user id) Array
enrollment_count_min Enrollment count minimum Integer
enrollment_count_max Enrollment count maximum Integer
last_enrollment_date_from Last enrollment date from Datetime
last_enrollment_date_to Last enrollment date to Datetime
registration_date_from Registration date from Datetime
registration_date_to Registration date to Datetime
registered_through List of registration sources (CANVAS and/or CATALOG) Array

Request

Route

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

Headers

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

Body

{
  "account_ids": [
    1,
    2,
    3
  ],
  "student_ids": [
    1,
    2,
    3
  ],
  "student_canvas_user_ids": [
    1,
    2,
    3
  ],
  "enrollment_count_min": 0,
  "enrollment_count_max": 5,
  "last_enrollment_date_from": "2023-06-05T14:46:59.944581+02:00",
  "last_enrollment_date_to": "2023-06-06T14:46:59.944581+02:00",
  "registration_date_from": "2023-06-05T14:46:59.944581+02:00",
  "registration_date_to": "2023-06-06T14:46:59.944581+02:00",
  "registered_through": [
    "CANVAS",
    "CATALOG"
  ]
}

Response

Response Fields

Name Description Type
id Catalog user id Integer
canvas_user_id Canvas user id Integer
name User name String
email User email String
account_id Account id Integer
account_name Account name String
registered_through Registration source (CANVAS or CATALOG) String
registered_at Registration date Datetime
enrollment_count Enrollment count Integer
last_enrolled_at Last Enrollment date Datetime
custom_fields List of custom fields (consist of key and value) Array

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: Oxk9q2E+B8BGmyiw4iasxfx3h4ta9V/nBmbYJXQJEFYxCDPTkyc7wm8ZQ68nvNtwe2XjHX91eqx2Zo3gXPMuew==
ETag: W/"3f46c5f82398422e33e636e29c143dfd"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=UVVkVEJDbFlVNnRKK21IaUVVV2JUMG1uVWE4UkJoWmN1MnFZeDc0SUpoaG5rV0JUYWV3QzBhZ29oUU9KQ0pSbGRzNDFJblhNTHBVaGZ0WDA5WSsyd051WDEzelRBeUduT2liQWhOYlFpb1B5T20yUVVPbmdrTDJ3cVlwdGlGYnJhQ211VitGNEFPZGU5Wmx4NkZZM2tOQ3E3QnRZblpONjhOUEU1T3dNZm9hbFJWNTJBRVJqMU9wODU4enRYZ0Q4LS1kMWs4Q2tQTCtpMjFoajJEUEl6S1BRPT0%3D--c03fd6e7668e47a1823e4d36c4ecbcb4cba6c1f9; path=/; HttpOnly
X-Request-Id: a2771f0e-ead9-45d4-a7ff-46aa621121ad
X-Runtime: 0.027134
Content-Length: 386

Body

{
  "users": [
    {
      "id": 150,
      "canvas_user_id": 77,
      "name": "User 19",
      "email": "user19@instructure.com",
      "account_id": 3,
      "account_name": "Sub-Account 1",
      "registered_through": "CATALOG",
      "registered_at": "2023-07-03T15:03:57.597+02:00",
      "enrollment_count": 2,
      "last_enrolled_at": "2023-07-06T17:30:50.991764+02:00",
      "custom_fields": [
        {
          "key": "text udf",
          "value": "awesome udf"
        },
        {
          "key": "checkbox udf",
          "value": "1"
        }
      ]
    }
  ]
}

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/24

Headers

Version: HTTP/1.0
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: HqmtZ7nG/XfnCVe2yaNGAKD7O/3RWsvblLqeL9H7Sh8bxO0DgowAVHd9TRKwhgAMpzCxvwPduDI+GWHvmp5i2A==
ETag: W/"1b2e7f13fd9edeb4efc0ce39bef5b922"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=U214OG5pa2NMRVZMRGxkTWxVTDgyaGp0Uy91eTkrdWlkT25MUG9XQlVCTkdNU2xiWUp0Y2tDdndHbkxrZ0RRT0ZMekhSeUxaQlpJTTFyMElaRkRZK2I3am5GQW15VElETTU0djQ1dVgzQTBqUjZ1YkVJNW12aitUaDBNb09mZXZ3SFJ2QmV4UmdBTGljbGh5T0cwWC93OE1rSWtwNVBxMENSdjlBUVdtVVhMUmpISmk4TUlWTWtZSHplMkJva3dCLS1PdXBORWhUWUlydU5xVWRpeHZ1ckxBPT0%3D--6a7be87cab92681f1def438527cece3798479448; path=/; HttpOnly
X-Request-Id: 48139431-59e6-4bdd-9800-28464165520f
X-Runtime: 0.051117
Content-Length: 1977

Body

{
  "account": {
    "id": 24,
    "name": "Domain Account 28",
    "parent": null,
    "created_at": "2024/04/12 14:13:09 +0000",
    "updated_at": "2024/04/12 14:13:09 +0000",
    "canvas_domain": "www.canvas-domain-28.com",
    "canvas_id": 28,
    "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",
      "shopping_cart_enabled": true,
      "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": "",
      "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,
      "new_storefront": false,
      "tags_permission_default_value": true,
      "cross_listing_permission_default_value": false,
      "inherit_storefront_theme": false,
      "canvas_authentication_provider_id": "CANVAS_FIRST"
    },
    "user_defined_fields": [

    ],
    "logo": "https://test-bucket.s3.amazonaws.com/test/logos/daef5d0b919ec2388f98a0e7aada347c0893c376.jpeg",
    "locale": "en",
    "url": "http://www.my-catalog.edu",
    "measurement": "credit",
    "storefront_theme_id": null
  }
}

Listing catalogs

Endpoint

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

Request

Route

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

Headers

Version: HTTP/1.0
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: e/G1CVhisUPf6xruYLrPrTHgWVzO3qfPBTWkZzNoGNBMAm+IXUfZRACuVk9vxhPO2/LpFUNxkZuqNFlanhAMvg==
ETag: W/"e872dcf482446fabdfdc1d0c616d8880"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=TDZscCtJb20wR2VSR3RoT2xlaTV2WnAzMk5pbG1rOW0xZHZ5K0xia25qa0cwMit2azVJRjRTejdQQnY5emM4b3RMVHJYTm9hMmo0NnZ4ZE1pUzh6Y2gwemJPTUI2dU5TaDlRSWV3N3lGaGNKa3cydDRXenhrTmdqekVxbFY0T1hqNDhwa2d1cGxSRVFDTlZ1S3RINW5nWk4vWEpTa2haRngyaW9zeFJPckNMQjVSeU50WStSd3NPMlZOQVlRVlhMLS1hU1ZiK0ZxbVo5SGxPTmFKRUhYUHRRPT0%3D--23d1716886111aa101cd9b4ebb9239f165df39f3; path=/; HttpOnly
X-Request-Id: acb6ee75-c583-416a-8535-7c3b44db36e5
X-Runtime: 0.031368
Content-Length: 2635

Body

{
  "catalogs": [
    {
      "id": 23,
      "name": "Domain Account 23",
      "parent": null,
      "created_at": "2024/04/12 14:13:09 +0000",
      "updated_at": "2024/04/12 14:13:09 +0000",
      "canvas_domain": "www.canvas-domain-23.com",
      "canvas_id": 23,
      "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",
        "shopping_cart_enabled": true,
        "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": "",
        "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,
        "new_storefront": false,
        "tags_permission_default_value": true,
        "cross_listing_permission_default_value": false,
        "inherit_storefront_theme": false,
        "canvas_authentication_provider_id": "CANVAS_FIRST"
      },
      "user_defined_fields": [
        {
          "list_order": 0,
          "name": "favorite_color",
          "label": "Favorite Color",
          "field_type": "text",
          "required": false,
          "required_message": "Favorite Color is required",
          "metadata": {
          }
        },
        {
          "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.",
          "metadata": {
          }
        },
        {
          "list_order": 2,
          "name": "age",
          "label": "Age",
          "field_type": "text",
          "required": true,
          "required_message": "You must provide an Age.",
          "metadata": {
          }
        },
        {
          "list_order": 3,
          "name": "yes_no",
          "label": "Yes or No",
          "field_type": "select",
          "required": false,
          "required_message": "Yes or No is required",
          "metadata": {
            "options": [
              "Yes",
              "No"
            ]
          }
        }
      ],
      "logo": "https://test-bucket.s3.amazonaws.com/test/logos/b4be6e3036189507a2720be53b8ab1625a82d061.jpeg",
      "locale": "en",
      "url": "http://www.my-catalog.edu",
      "measurement": "credit",
      "storefront_theme_id": null
    }
  ]
}

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

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

Body

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

Response

Response Fields

Name Description Type
certificate[id] Certificate ID Integer
certificate[listing_id] Corresponding listing ID Integer
certificate[name] Certificate name String
certificate[active] Whether the certificate is enabled String
certificate[template] HTML template used to generate issued certificates String
certificate[pdf_settings] An object containing extra params for PDF generation Object
certificate[created_at] The creation date of the certificate Datetime
certificate[updated_at] The last time the certificate was updated Datetime
certificate[days_to_expire] Number of days for which issued certificates remain valide Integer
certificate[expires_at] A fixed datetime when issued certificates expire Datetime

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: 1izAdCm9QYM3kjisQEfoEc8TGv+jM7M8okyoaZGFOA0jxNh30xnL2TykvXtBtS+6E6c/3lHmDXM1Dtb6LHs5TA==
ETag: W/"d7abb670f8834cf74d630d493a6cd43d"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=K2VnUWl4MytEL3hwMmh4dTdyOHpWZkxTV3diUWlMYWRab3hmNlZhRUxSVy9Bdi81N3BBZTNxMklOSDAvdGJYd1BlQ3dNMGlKY1JJUzQrY2ZMZUhteHdWQlRTVWdoSm5IbURhZmRKQkJoZzFyL2FEZkNSd3lPMWQ1REpmTURqcFFTbU9zOGpBRWVBUFBqU2pGTCtDK2djVjd1N3RvdW5vQXJOa2cxaldFMEVoVzJFMEJ3VW81UWdEdGNhTWUwdGFrLS14MW1kNkRpN0tyNWVYaFovSHVkanN3PT0%3D--52838d76f82b0e2dbcb2b70fcb7464d8fcf5dac3; path=/; HttpOnly
X-Request-Id: 4e47a7e8-03b7-467c-a2e7-002c0b709217
X-Runtime: 0.333072
Content-Length: 298

Body

{
  "certificate": {
    "id": 4,
    "listing_id": 36,
    "name": "API Name",
    "active": true,
    "template": "<H1>This is a template</h1>",
    "pdf_settings": {
      "orientation": "Landscape"
    },
    "created_at": "2024/04/12 14:13:11 +0000",
    "updated_at": "2024/04/12 14:13:11 +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

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

Body

{
  "certificate": {
    "listing_id": 33
  },
  "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: s1gC1QivDOaKomCS6bbWrKLMIi6u9smsC2uP2CHrC+vd8UzYCYXPwX3t4KTKbLJGjyVb9qqgliTC7qBJh+j5zw==
Cache-Control: no-cache
Set-Cookie: _gallery_session=Y1RpdDdzNTRWZHFrODZFMDkrZUNETGNUZjJXWC90Tk5vSDgvTFA0c1hMaXJWLzNNQS9UZm5JT29NTW1jeTZGZlJxanZDUlZvcFR3Q1JLRXRrMWRCSjBhNVUrRWlIOEl3SVFMWHBMZUhDZkphNXlkK2MwbVg0MW9rbUNSRXhXcSsrS2RXdUhIK2pLaEZYU1ArRU1BMjRXNHF0cTdmK0IvYTBSQnhLZHFsbTdFeDlodTR4WlBDVzBZOHFaQnpzYjd4LS1DNUhGQ25NOEhlQmhncUo5MjRsVTVRPT0%3D--336e64b4d95feab2e62d67dc0bf8b87ffb309449; path=/; HttpOnly
X-Request-Id: 1d94f365-8ec9-4642-b229-71d9b8274003
X-Runtime: 0.042293

Getting a listing Certificate

Endpoint

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

Parameters

Name Description Type
certificate[listing_id] required Id of the Listing Integer

Request

Route

GET https://www.my-catalog.edu/api/v1/certificates?certificate[listing_id]=34

Headers

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

Query Parameters

certificate={"listing_id"=>"34"}

Response

Response Fields

Name Description Type
certificate[id] Certificate ID Integer
certificate[listing_id] Corresponding listing ID Integer
certificate[name] Certificate name String
certificate[active] Whether the certificate is enabled String
certificate[template] HTML template used to generate issued certificates String
certificate[pdf_settings] An object containing extra params for PDF generation Object
certificate[created_at] The creation date of the certificate Datetime
certificate[updated_at] The last time the certificate was updated Datetime
certificate[days_to_expire] Number of days for which issued certificates remain valide Integer
certificate[expires_at] A fixed datetime when issued certificates expire 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: KLWPN5HofmyXQlFobOtyLQleZfLMSmr5nxNfuMimWiefaRbwd3d4LImdPabVnGcv4em1AC+PegZ1XGZJDaHpGQ==
ETag: W/"4b1583b878a595dcfa0c692114278737"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=TEVucmlkeDVVclpsWTVWQS9kZXhqWm1Gck44R3dDYnRkSjh1Z2hzUmRuelpzMjk2UGczcEpCTGZKVHZGRExIWSs0Y3ZsWHMrWnRYWkFyVDhUQ0tldDN6cFpNK0pXK1lVUGpRa1hDSVQxWE9IckxUaEV1ZHpGVFFJNHMvL1gzVEtIemNPMFV5ZEJRTHRMSHJJMEhuTEtwOEkrYk1tZStNWmg3dGpidmRWYStGYWNsaHhaOFkxb1dMSEtvdklaVFZpLS16Q2hoemJLUkNZeW5MN2RZNmdrb2RRPT0%3D--e06b9c49426b8c64b20098a7fedfd99474893970; path=/; HttpOnly
X-Request-Id: 8ab90870-cee0-4295-9747-3deae616eeb2
X-Runtime: 0.032335
Content-Length: 268

Body

{
  "certificate": {
    "id": 2,
    "listing_id": 34,
    "name": "Certificate of Training",
    "active": true,
    "template": "Congrats, {{student_name}}!",
    "pdf_settings": {
    },
    "created_at": "2024/04/12 14:13:10 +0000",
    "updated_at": "2024/04/12 14:13:10 +0000",
    "days_to_expire": null,
    "expires_at": null
  }
}

Request

Route

GET https://www.my-catalog.edu/api/v1/certificates?certificate[listing_id]=34

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: _gallery_session=TEVucmlkeDVVclpsWTVWQS9kZXhqWm1Gck44R3dDYnRkSjh1Z2hzUmRuelpzMjk2UGczcEpCTGZKVHZGRExIWSs0Y3ZsWHMrWnRYWkFyVDhUQ0tldDN6cFpNK0pXK1lVUGpRa1hDSVQxWE9IckxUaEV1ZHpGVFFJNHMvL1gzVEtIemNPMFV5ZEJRTHRMSHJJMEhuTEtwOEkrYk1tZStNWmg3dGpidmRWYStGYWNsaHhaOFkxb1dMSEtvdklaVFZpLS16Q2hoemJLUkNZeW5MN2RZNmdrb2RRPT0%3D--e06b9c49426b8c64b20098a7fedfd99474893970

Query Parameters

certificate={"listing_id"=>"34"}

Response

Response Fields

Name Description Type
certificate[id] Certificate ID Integer
certificate[listing_id] Corresponding listing ID Integer
certificate[name] Certificate name String
certificate[active] Whether the certificate is enabled String
certificate[template] HTML template used to generate issued certificates String
certificate[pdf_settings] An object containing extra params for PDF generation Object
certificate[created_at] The creation date of the certificate Datetime
certificate[updated_at] The last time the certificate was updated Datetime
certificate[days_to_expire] Number of days for which issued certificates remain valide Integer
certificate[expires_at] A fixed datetime when issued certificates expire 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: iNRvffa+jY2QdfyZRy7o2vffJdfu9K9p2B5JEuYeU5o/CPa6ECGLzY6qkFf+Wf3YH2j1JQ0xv5YyUXDjIxngpA==
ETag: W/"4b1583b878a595dcfa0c692114278737"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=NTA2UnhabFl1ODNrcHpBaWVSeW9hNXQxZ1YvUUhoN0c3SW5xZFozcjg1bUFGa2ZnTXZLcFVCY1RTN1RpcHV0bGh3S3hRZE9KUndsbHRJZ2k3czhlZ3JuN2VGVllyenFPZDZjWjZ3MWFaNUdlM3pUYW9PQ0IwNWFBcmFoNXkrT2NrSXFlM0dTdXM2akN0eUdDWE44YTBLeWlnTzlNMExFQlJ6UnFzKzJIdHpEdmhTemw2azhzQVFTUlNPOWRwMWZqLS1Ba2JTamhQSXBWUFc4K0xLTFl0NnFBPT0%3D--3a83b8132d4f0b9ebf5b9cd572ab5d9807f3bcbd; path=/; HttpOnly
X-Request-Id: 6b7929f8-e3b2-4ae1-aaa7-364334a59d03
X-Runtime: 0.028444
Content-Length: 268

Body

{
  "certificate": {
    "id": 2,
    "listing_id": 34,
    "name": "Certificate of Training",
    "active": true,
    "template": "Congrats, {{student_name}}!",
    "pdf_settings": {
    },
    "created_at": "2024/04/12 14:13:10 +0000",
    "updated_at": "2024/04/12 14:13:10 +0000",
    "days_to_expire": null,
    "expires_at": null
  }
}

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

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

Body

{
  "certificate": {
    "listing_id": 35,
    "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: /++G/V4V+fj8rN/Xd6uo3iQMonOJmqHxYrme6MZOVOBiLqlZTnHPVRARTnjCA2/qSsY+kUCepC617WgXHtcSCw==
ETag: W/"c229152761f09ec60d040a69e201e690"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=NVlDNEVJSm1QT0ExTDFCSlJaYmNLd0ZrWkFsOTRLSlNvckVHUzczSVlXdFBJdTBJOXVhT0szcDV4QXBsYldxcFh3NE1hSmxTSE9jbXVYVjAvNExKdzBsdzN0eGd2eWJVbDZjYSt1UDNVTGZ5OEVwRHVrRUdLZm1LcW1qOWxXUjRyRWRsOUVpcTJmNktub1dJamVDVjVlMkx4MjgrM3B4VmlqM2pIWjZsdmFjRWJGdWpTSDlrZGVJOSsyTHVXSkdELS1xN3grUkhYUm5OVDVxMkpjdGNNeW9nPT0%3D--3d38a8985c7bc0bf2de69193f1434f7ca8026979; path=/; HttpOnly
X-Request-Id: 686c241f-5f1f-4978-a240-5de650cddeac
X-Runtime: 0.033612
Content-Length: 87

Body

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

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

Version: HTTP/1.0
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: 6lckRx/YT6ol6rcItd0+KiUF3YSDPV3usopUVJPHomAkNTl9NY1Zic6WCtosAOrCyJDY8pvctt1xXxk692dASw==
ETag: W/"93cb80707cae7a0fd3d9dc500096531d"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=VVB0S3BWaXRNNy9DbC85SFJTRjhlRStWWlRIYVMwS1Qxb1NwN0VPU0lvNndoRFN1eExkUDc4MkxXQVdzR0taOThJa0lDclNnaW9JRGVKZytqYlZpSHBtK1JuNGw5VlB5Z2ladDQvOXYzOEZaT0dKMm80RTRIRklWNVc2UVE4aXJ0NE5KM0NQWmtHcFNVUUZIK0wyczE2c1c1T0o2WVVJZjdtM05jMEtxOVhrV3l4bDV5WlFRTk9zZ29VNko1bkxULS12S1cyYkYvZXJ2cUV2TkcrQjMrUjJBPT0%3D--c244dd6daf8eeaa33494e539f267183d3a8525b7; path=/; HttpOnly
X-Request-Id: 4fc7c2d5-1598-485c-8178-a75251d47628
X-Runtime: 0.053910
Content-Length: 262

Body

{
  "completed_certificates": [
    {
      "canvas_course_id": 21,
      "catalog_title": "Course 35",
      "canvas_course_name": "Course 35",
      "certificate_url": "https://www.domain-49.com/certificates/certificate-numero-1-5.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[associated_account_ids] Other account ids where this product should be listed Array
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

Version: HTTP/1.0
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
associated_account_ids Other account ids where this product should be listed Array
start_date When the Canvas course starts if specified Datetime
end_date When the Canvas course ends if specified Datetime
canvas_section_id The Canvas course's section's id Integer
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/27
Content-Type: application/json; charset=utf-8
X-CSRF-Token: sfWqBkyhBmhYEoU6lDGHtBvhoTdNUdr21YLt00nm3ziVrqLeVPBj6oBu3tlLE6RhfgUxlv5MRPIGTRF8c0mU1Q==
ETag: W/"1cb441c72d92ada7d813fc07f02ce7b4"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=ZUFQZHZUZTdtNGIwbGRhdm54V29vZURLelc4MGhyS0gxZVAwaEZhbmhXUVg2VWxOeUxiRE5JSmZEWFJhVVpDN0E2THVlaUV3VFNYZE0ycXF3YVd1MFE2OUNJTHpQRGYzNzU3bElsakRkMjA0UXN3bGJtVEozdG5mWkpTeXFBdjBXRU1ldGtZQkpuaUxtWGxpaDVxNzNIa3RKdHo4ZC9iRFprOURYMHMwYW1IeFlWaENSN1pUV2ErTGpVMUFoQ3lXLS10M1NGS3lmRXpJUDYzVzNSaEhPMVdnPT0%3D--ef0867044e1eee023aadc095b6417d7bee1c493c; path=/; HttpOnly
X-Request-Id: 34881c17-b381-4996-8d33-c97dd2e072b5
X-Runtime: 0.065948
Content-Length: 889

Body

{
  "course": {
    "id": 27,
    "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": "2024/04/12 14:13:10 +0000",
    "credits": 4.0,
    "measurement": "credit",
    "updated_at": "2024/04/12 14:13:10 +0000",
    "short_description": "This is an example teaser",
    "listing_path": "course-1",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 28,
      "name": "Domain Account 33"
    },
    "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",
    "start_date": null,
    "end_date": null,
    "canvas_section_id": null,
    "associated_account_ids": [

    ],
    "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/25

Headers

Version: HTTP/1.0
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: uqY+KmW7eNAWsT7taJZBxAKUgozyfpF4TpAJj/pmQIJ5tz5QBz856twqQ4DQGpLBM8BuZozaOEApSJAbOpHnQQ==
Cache-Control: no-cache
Set-Cookie: _gallery_session=a05MbVVxUE1QQzNHcjlBeWRmaTB1N0FDczlwdllWU09xbk1td055UElneWVJSUN1RVdSekVvWDVJMStVMXRoSVl0MS9va2dpeFRVQ2FUSUVISmRSME8xdW5BRHVTZSs1bVJ0aktwMmVGYWtSaU9qWVowMjhOL2I3YnRXUllaR0gyRm5NYSs3N1BBN3BQckJMamo1MGtkeXFCa3B0SmFlSEFURlZGNjhSMEU2YlZWOXFQdG4xdmlKdFhlek1XKzV2LS0wcldsSTcwSDYyN0wrOEI3WVR6c2hRPT0%3D--b21b8b1ff1b2f0b3dbda892103726b1627e315a9; path=/; HttpOnly
X-Request-Id: a7c030f1-75ba-4ed0-9076-caff72e7cb89
X-Runtime: 0.041526

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/28

Headers

Version: HTTP/1.0
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
associated_account_ids Other account ids where this product should be listed Array
start_date When the Canvas course starts if specified Datetime
end_date When the Canvas course ends if specified Datetime
canvas_section_id The Canvas course's section's id Integer
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: saB45TlvxUPcgFjXOOliGCjgr5OcBwUqDeqDxgjbqYf+rAJW73gLNg6Z14fdISWwV6HSPUcaCT+ZIUm3KgoCXA==
ETag: W/"935c4ed23b8084051fa87e3ed9eaa575"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=d3hGZUF1VUZvczA3QlZHcFZjQWs3WUVKQTJlS09uZGJoUXJVaEVvOGZidTgrQThUVmF5Z1A2ZmhXdUtpMWZSMHBCRG5GZkJ3UjhleDVvM2d4dmRQVDFmdjMwVWlVdDNucy9VMG9EbUNXcm8yMTBZWUdDTTlIbWlNRkhoRVdNbG54dmVndjQwLzJPOEZOdXdBM3NDaDBKaTBjMUUrZkxUNG9kNTl3cFdhUDN2eWZrVTdUbzMxb0Z0YUF1RkN2UDdELS1aVEJBUHVHTHM2YmVYT0VscEN6cHJBPT0%3D--bd4c14d16b6aac2a64fc436c94a4fc437c130bed; path=/; HttpOnly
X-Request-Id: d51f42de-fec9-48d8-bfc6-5c6b00e70ea6
X-Runtime: 0.033289
Content-Length: 910

Body

{
  "course": {
    "id": 28,
    "visibility": "listed",
    "enrollment_open": true,
    "enrollment_open_from": null,
    "enrollment_open_to": null,
    "enrollment_cap": null,
    "description": "description_26",
    "enrollment_fee": "0.0",
    "created_at": "2024/04/12 14:13:10 +0000",
    "credits": 3.0,
    "measurement": "credit",
    "updated_at": "2024/04/12 14:13:10 +0000",
    "short_description": "teaser_26",
    "listing_path": "course-path-26",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 29,
      "name": "Domain Account 34"
    },
    "type": "Course",
    "title": "Course 26",
    "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": [
      "Another Tag",
      "Tag"
    ],
    "listing_url": "http://www.my-catalog.edu/courses/course-path-26",
    "start_date": "2024/04/05 14:13:10 +0000",
    "end_date": "2024/04/19 14:13:10 +0000",
    "canvas_section_id": null,
    "associated_account_ids": [

    ],
    "canvas_course": {
      "id": 16
    }
  }
}

Listing courses

Endpoint

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

Request

Route

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

Headers

Version: HTTP/1.0
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: 6JszAybW6Eks4MK+g6Sy9KOOfjyEj2n9h/yoL1q2FQJbO9s/zTr2bw7cEPTsVSljj+gqYOU16fcQH34nX1ydxA==
ETag: W/"e29cd9d8d736a3a0e93b504c90c3c891"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=RnNkajNXa1R2VHBISlN1NzcxS3dzZHd5TFZaemxoWjlQVWVCa2RWMW5aaGxHMkk2c1hNMnlZV0ozOU13UGUzOGRPZmtUTlVaZ0VDTzB0NDd2RlJoMkFnQzVkVDc2OGVoVmtOL2pZVjgyOUV1NkMvK2JJTXhzcTFST1B6eUVYU0ozdk5qNnUzblNOMDA2a0pLS2MvN3JRUmtPR0JtUmNhNHYzYjk2eWV6TjZ2a3V5REFBTkhDR0VOTFVRWTRRWkNULS1ockFMbFpzcEtFV0R4RGJCTm1XNzd3PT0%3D--cbe2af4a1936d19a2c6e6557d1ea1486d429c1ff; path=/; HttpOnly
X-Request-Id: b9625694-57eb-4a8f-a96b-ed4a27479830
X-Runtime: 0.036390
Content-Length: 913

Body

{
  "courses": [
    {
      "id": 26,
      "visibility": "listed",
      "enrollment_open": true,
      "enrollment_open_from": null,
      "enrollment_open_to": null,
      "enrollment_cap": null,
      "description": "description_25",
      "enrollment_fee": "0.0",
      "created_at": "2024/04/12 14:13:10 +0000",
      "credits": 3.0,
      "measurement": "credit",
      "updated_at": "2024/04/12 14:13:10 +0000",
      "short_description": "teaser_25",
      "listing_path": "course-path-25",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 27,
        "name": "Domain Account 32"
      },
      "type": "Course",
      "title": "Course 25",
      "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": [
        "Another Tag",
        "Tag"
      ],
      "listing_url": "http://www.my-catalog.edu/courses/course-path-25",
      "start_date": "2024/04/05 14:13:10 +0000",
      "end_date": "2024/04/19 14:13:10 +0000",
      "canvas_section_id": null,
      "associated_account_ids": [

      ],
      "canvas_course": {
        "id": 15
      }
    }
  ]
}

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

Version: HTTP/1.0
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: MPAshB2s7KM5dDCqpQO4sG+uycz+fXkOO3W44OJh0pYI51FIz5norEBpKJzPHiORtyWSvqCSQbhpUO0N2FzNsA==
ETag: W/"0dd5e308ba97cbe4970e256ae5968f9f"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=a3M5c3Y1ZUFIQmcxM0M4bUR3MVB4NVdrSEtrb0xIdFJ5KzlxMzc3eXNIcUNXSldkcXFsTWRzRzBpb1dPVmo2d3huclVIOE9hODRkaTFJODI5TTdzWks4RGc4dytkS1VrZ2hoUDkrODZLaERQcFlZZUJ6T1lLcTVMTUFaWC9LN20wNWlGSGlrTGF0MFZPUUY2dDBhODdLWC9XZWd5bWJKemNiWjJ3eWNEQ2pyMzlLOUxVWU1yQ2wrNnVIVXdva0ppLS1LYkxXWmJTNHU2cjVuRWI5aUVaVkN3PT0%3D--dc760ff9da9c2c011a8cb6480a797c4952a2c846; path=/; HttpOnly
X-Request-Id: c95e07e3-f91c-415d-8b69-65ed0e190b60
X-Runtime: 0.034446
Content-Length: 206

Body

{
  "progress": {
    "id": 2,
    "account_id": 25,
    "canvas_user_id": null,
    "completion_percent": null,
    "workflow_state": "queued",
    "payload": {
    },
    "created_at": "2024/04/12 14:13:10 +0000",
    "updated_at": "2024/04/12 14:13:10 +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[associated_account_ids] Other account ids where this product should be listed Array
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/29

Headers

Version: HTTP/1.0
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: vz6ZJB6aX9GocTqu6rlkRSNbEs6EyJNWY/C3Iqxudly6fgb+9dFBCaJK88uSqrDAcQ0Wx1mqNWa4CyXORtEHZg==
Cache-Control: no-cache
Set-Cookie: _gallery_session=elRmUnd4UE5ENTJYdFJPVEp3aFFIRytDc29jWnFCSnVreHlWZE1PSVJhMFBScU10N0dlQXpHblRLcjJMcXN0VHMzYzRFMGY2Q1ZaMkd6Znk3eU1XZ3BiZ2dNQzlrNUVML2l5eUFDc3dZbTREMkFsSEI1WDB4alA2VEdnK05wNmJXZ2drd1J6VG02OW9pdVBjcUVNQWhtQy9QYVNLU1hTMjVidCtVdGFvQWdEVVhKMTNqanozVjJuRW05TjRvUVYyLS1jZWk2eHdWYzRyUDlNRW5udTc3YnpBPT0%3D--7089217d57ea4845b767c20b0729ffc12bc049d4; path=/; HttpOnly
X-Request-Id: 25dbc870-b6dd-448e-b1d9-f75b1aeb7fc5
X-Runtime: 0.063264

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

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

Body

{
  "enrollment": {
    "listing_id": 3,
    "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: v7PwfZZtAkKcNow5pfWRpjQ8UVaV9zcwKHLXa7ZKwl98Gxwrt/JH+RnU7bagKkBF5I0Hldys8EFB4clcRi9QMw==
ETag: W/"f439452d1ba3bf78b939b2d045245318"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=R2V4dzRnOFRicXo5aVM0RmVVejNFeHRMbjQ5UXdqNTBCSXYrOVh2UkdqbXYyR0VCZVQxK0pMWW9FdmorcWtNcXhndG5INmt0SEhZSExqd21GTk83akxRUVR2REs5NFQ0NzVXZWJSZEtxVHFHNUI0emMvUFBZVVl6Z2tlb3hPbWswLzh5MTJkNkJ6Kys2aE1LdmNhVUNzV0Y3YnBaSHhrd0luVEkyZ2ZXSHFWeHRKcW4xckYzWWhNSndaSHJoSy9PLS13d0Z4OHVWODV0d3VlQ21ma0NTR29RPT0%3D--df951ac5f448ec6db71eabdc3538fae2b014946d; path=/; HttpOnly
X-Request-Id: 7b490487-ea86-4f61-8b77-03826a2ba241
X-Runtime: 0.047536
Content-Length: 174

Body

{
  "enrollment": {
    "id": 3,
    "user": {
      "id": 1
    },
    "listing": {
      "id": 3,
      "title": "Course 3",
      "type": "Course",
      "canvas_course_id": 3
    },
    "enrolled_at": "2024/04/12 14:13:08 +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/1

Headers

Version: HTTP/1.0
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: XF/wP2JKwLjrfWuM9yZD7Hew9Zj8+jkK9u/NKhGH5p07lNOcOOLAg/OQ0i2fShGVvVzmIP5qFGfvTfypJXic0A==
Cache-Control: no-cache
Set-Cookie: _gallery_session=UExDZWZ6clFZSU9KYXZmMnZYaHdlT09mVWdYMnllQk9ENGdQc0hWQkRINU1rZkNERVhsTEpzTzRXOVFpZGlEN2VvZWdOZ2UrMXZhcDdaWmIzcFZETTJyTmJrS3F3MTM2clZhb3RwWUdhczZxeXN1S1ZNTXJmMWdkM2xueEhzL3MyVGw5UC94eFN2R2E2eHhyalpQSXEyMCtoVngwLzdyT1QrUkZDUDF3ejk4ZUtsSnExTmh3ZmJQQ0VXTTg2RCtFLS1iTlJ1TUkwYnFucm1vaG9GNkQwcElnPT0%3D--063de8f9988352898465641f74288faed04231e7; path=/; HttpOnly
X-Request-Id: 588adbca-047f-47dc-bff2-90af215852ff
X-Runtime: 0.033439

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

Version: HTTP/1.0
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: MxCuZs/XcfeeUAAWjTwTHSYB6lUsbIzA8m6wxAORx7dDLZI5YI8mi7yDsVap8eccaOSBCdbs6/xEGgQMlSviQQ==
ETag: W/"a70706247add670cb6628f026187fdfb"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=NzhQblJod3lJc3M5OGlPdDZPL281MmhOcDhJWVBoanJ6S1paang1YzlBbWs4bnhRRFBBdmVKeS9YeEtkWnZoaG16SmNJek5hWE9Qczd1Uk5qZkxuNitkTDNuOW5lRkFQOVd5SlNnZXZOZ3kwRHZUbE1LVFFRbmxrSGU2SHordGhTcE9RaFBlNGZFaWJtbW9sNlRYTk4vd2hISE1PcGFiSmFOUjlIQVhuRGhjVk5IK1duN09tZHdqZWZLbFMvOU5WLS1FL2ZFZWIxK25VNFZsdkxFdzBCMzd3PT0%3D--2fbf5204658f91851a7795f931d911c179879b04; path=/; HttpOnly
X-Request-Id: 60a35db2-1afa-4b10-9e87-9fc79612b596
X-Runtime: 0.034089
Content-Length: 174

Body

{
  "enrollment": {
    "id": 4,
    "user": {
      "id": 1
    },
    "listing": {
      "id": 4,
      "title": "Course 4",
      "type": "Course",
      "canvas_course_id": 4
    },
    "enrolled_at": "2024/04/12 14:13:08 +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

Version: HTTP/1.0
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: b2jVE8C/IVUy+2jm8pIHXXWG8Cx4d6m58LQ0AK3TqRk8P6xjh8NQamLGFCE9zxYjLk4VAgjr35J2yvHJWTcpNA==
ETag: W/"be28a84d39933e7715b99ad1f06a9261"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=V2g3ZmR0bmtXblZTZnBlWGVjZmpSSG82emxJVWZxV0NkUGoySWdwYWZyWDVDYUhVM3NYSFF5VGwxMzlPbisyWnB5Ym1oVythdko5a1RyS0dPeDd6ZDVzc0psZkVFdXJiWTZNenAvMnhaQkxjcHBIVkVsSFJRc3lZVEhUd0QzbnRtK0svb3dVUEpDRm40dFdYK3RUcmcvMEdxcXQ2V0ZGV3l1ODY3OU5zL3JNTWQ4NFFWaDZFOUt5Z1JSTnNXZmZ0LS0wZ0NIbHFIQXJMOVlPSkRHSzJGYnNnPT0%3D--bde9b570b62a34ac3598afe01fbf21485d3c1ae2; path=/; HttpOnly
X-Request-Id: b11757b7-8561-4ee7-aad3-ca75eb52acc6
X-Runtime: 0.032669
Content-Length: 177

Body

{
  "enrollments": [
    {
      "id": 2,
      "user": {
        "id": 1
      },
      "listing": {
        "id": 2,
        "title": "Course 2",
        "type": "Course",
        "canvas_course_id": 2
      },
      "enrolled_at": "2024/04/12 14:13:08 +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/3

Headers

Version: HTTP/1.0
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: oNGLdslyWWVOnrZQ/m37P1I4s4FrsrWekBw7rlKyXnQGk1nXzv78pFA/JIdCyq9D7CaiUBNTMmp7T9BDof7GmQ==
ETag: W/"79575ec43f2f38d603266a6cc7b86932"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=SVBRVnBqQ251Q1FTbG1sWU5oMDh2ckt6bnd2ZXhjdWJqNG4zSUVaVUVwME8xQ0gzQjFSdmV6SHY1Wkpka0tOeld2aXhJM1JGNlg3blU3a09BdUh0WW1QT0hwMTE0QTYxdjF3Rm95MGN1VWh4ci9jbVRXdzJJQ0dzUHJVTTJRb2M3aEgzRDZseVRXQUk1RnB0WVFUUUNZME5hVTUwdks1VGs1ZzlGQ011STdUVEhLSWlvUDdRWW9JajVwOWh2dTB1LS15VnNtOWdKcmtuQkNmc0M0ZlBrSmh3PT0%3D--20340df1e588d1de1314985d01843543731715b3; path=/; HttpOnly
X-Request-Id: 16b71f31-6f12-4b8c-b61d-e5d040c73da4
X-Runtime: 0.036114
Content-Length: 548

Body

{
  "order": {
    "id": 3,
    "full_id": "3",
    "catalog_id": 47,
    "catalog": {
      "id": 47,
      "name": "Domain Account 52"
    },
    "user": {
      "id": 1,
      "name": "Saul Goodman",
      "email": "bettercall@saul.com"
    },
    "listings": [
      {
        "id": 39,
        "canvas_course_id": 23,
        "title": "Course 37",
        "amount": "100.0",
        "discounted_amount": "90.0",
        "catalog_id": 47
      }
    ],
    "promotions": [
      {
        "id": 2,
        "listing_id": 39,
        "code": "PROMO2",
        "amount": "-10.0"
      }
    ],
    "payments": [
      {
        "reference_id": "123",
        "status": "success",
        "amount": "90.0"
      }
    ],
    "total": "90.0",
    "currency": "USD",
    "purchased_at": "2024/04/12 14:13:11 +0000",
    "created_at": "2024/04/12 14:13:11 +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

Version: HTTP/1.0
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: zSm4gURpRQyqv6w2DWbxDUJvvhWQbat17wFmhCU7B4X1ga4NwKp9v1v7ICJ0errispNPqH5eoQknvR1ySFQ8dw==
ETag: W/"42c9fabe7bee2bf7f6df8aaf5e1201c9"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=R214SVJSNVBqTUNXUzNxVlFDdzVsTHBGa21nQk8rNFBjNHhQVVZRaklwK0dGVHUyczZXV1dTdDhLeTJ6OCt3ZmFvTStHZEV3S1dEQ0NxWUVyOGR0UlRVWU56QWxZN0VKNkI2ZWx1ejB4RVZZWTZhYUhFKzRPV1oxUjdzd3JtbkUzdUk3c2YyTG1ubW9JUHdUeElBNDVBQ00yMFVUSE9nWXhabE5CblZkT2t6MkhiWkNBWTQvTk5FZ3JSNWt0SXFBLS1pQ05tdXd6OENPOUx3T0NJcW12ekxnPT0%3D--c8d33a67d5aa73c726037e707a9a1c9ad972200f; path=/; HttpOnly
X-Request-Id: 5aa33a1d-8ae8-41eb-a2f1-4b8ed0849f26
X-Runtime: 0.038311
Content-Length: 551

Body

{
  "orders": [
    {
      "id": 2,
      "full_id": "2",
      "catalog_id": 46,
      "catalog": {
        "id": 46,
        "name": "Domain Account 51"
      },
      "user": {
        "id": 1,
        "name": "Saul Goodman",
        "email": "bettercall@saul.com"
      },
      "listings": [
        {
          "id": 38,
          "canvas_course_id": 22,
          "title": "Course 36",
          "amount": "100.0",
          "discounted_amount": "90.0",
          "catalog_id": 46
        }
      ],
      "promotions": [
        {
          "id": 1,
          "listing_id": 38,
          "code": "PROMO1",
          "amount": "-10.0"
        }
      ],
      "payments": [
        {
          "reference_id": "123",
          "status": "success",
          "amount": "90.0"
        }
      ],
      "total": "90.0",
      "currency": "USD",
      "purchased_at": "2024/04/12 14:13:11 +0000",
      "created_at": "2024/04/12 14:13:11 +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[associated_account_ids] Other account ids where this product should be listed Array
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

Version: HTTP/1.0
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
associated_account_ids Other account ids where this product should be listed Array
start_date When the Canvas course starts if specified Datetime
end_date When the Canvas course ends if specified Datetime
canvas_section_id The Canvas course's section's id Integer
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/18
Content-Type: application/json; charset=utf-8
X-CSRF-Token: Nu+6BW7cg52x3YgjCe9bLjGqANTtYJAoI+z92qCpgN8mdrDoP+n2VxyzkTKHQJS2p7xpSW1re1pMR2R21trTSA==
ETag: W/"c237b316cbc42ea0985965600ca358f0"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=T1ZETFp1U3ZCcFl5WUVxRjMzZlZGVnNXdHVTR2VOZzE4U0Y5Q1lONUdYMkRjejc4SlVJek4xcmw1Z0w0K2FlTDVrckJuTTZiRDk5THBKNkNiMFp0UnhsRm13UktqbUxnQTlmVGdIWTNjR2I4enU0TmRVMm1DaHBRUEpTQWxDSmZ0V1RaT2hmd2V1WFNWRGNrNWVYMUNrOVFRQ0lYeXM1UTAyb3E5dXRPdXFITTgvSmpMSXRPOXIrMFZpOFNVb0IzLS11bzhZOHNwaytKeC9MblpjRkpUaWhnPT0%3D--22773df4687486cc0c1e53488c37983a69a4f26c; path=/; HttpOnly
X-Request-Id: da37672c-2519-48b9-9af7-4dca811cc1c0
X-Runtime: 0.058915
Content-Length: 894

Body

{
  "program": {
    "id": 18,
    "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": "2024/04/12 14:13:09 +0000",
    "credits": null,
    "measurement": "credit",
    "updated_at": "2024/04/12 14:13:09 +0000",
    "short_description": "This is an example teaser",
    "listing_path": "program-1",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 17,
      "name": "Domain Account 17"
    },
    "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",
    "start_date": null,
    "end_date": null,
    "canvas_section_id": null,
    "associated_account_ids": [

    ],
    "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/19

Headers

Version: HTTP/1.0
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: vgVLZz+KXVGcvxvtUqkbgWppBdj1u5C7xZoQnYYEtcCdDo1zrw/UbNlP5f+7IpI1YSplctR9GYkPp8v+mORjxg==
Cache-Control: no-cache
Set-Cookie: _gallery_session=RndKa1VENmJ3MXVVNFljd2k5NmFlN093ODJPVGQ1bEFHQ3E2RUk2U0dPblRvUjZEMEw5WlFuNDBzdXpnd2s4SHpSTGpGWlhKY3pJdS9HRWZhRkN3YkZnZUpCYlJEZ0ZIM21UOTM3dzBEanAvSDJPbVUrV1ArUGk3bUdwZkNpSlQ4MzBNYkxvbDlOSGFkU28vR0RFdnJ5cHFrUFQwRmtBQ0FKZGE2SFl1Z3FiUVpWanBDNDhEVkxHaFZGdEpyWHVuLS12TnBMY3R5OFBveHJES1VRMWE4MnZnPT0%3D--9259ac4dab44bc6432478596a4c8b33d2190a0d3; path=/; HttpOnly
X-Request-Id: 0f0ec176-765a-4e4c-91fd-397bf126407b
X-Runtime: 0.068719

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/11

Headers

Version: HTTP/1.0
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
associated_account_ids Other account ids where this product should be listed Array
start_date When the Canvas course starts if specified Datetime
end_date When the Canvas course ends if specified Datetime
canvas_section_id The Canvas course's section's id Integer
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: Isqldg+YLbzAmIx8KhWYDUnW+0qTup1qkxeGbG/45bDibiG6oq0tArAD8w8Gfd2kyjD8irZOiSe1ysFXFBPvAg==
ETag: W/"f269fc61e4d54eea8c364e5422d9ca79"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=TkhLUVhWVWJiaE1wcDgrL05pY1p4ekorMjhiVUdmSHN0ek9LVEFvcFd2ZVZYdDRqeWI4YW45Q24rNkp1czI4ZkZRUmNNaUxZYzh2OGRXSnVHYWNmWlZ2Rm4rRmJRZDNQcUdQOHMwcUpWSXJHRTM3eEVSZjJuYXkrOWxPRDY0bmFIdjlVamJrSzR0aElHTXlnQkRsTkd0bS9ucERTZVRxNmdlczJWZUFCa0k1STZkTVZta1hyQUQ5YlM4dngwckV0LS1GWmFrMHNDU2FzNFdzR2lHVmNibnRnPT0%3D--21628f04c09a34d37180fd66015a02c24d674739; path=/; HttpOnly
X-Request-Id: 17922605-96da-4395-bc00-acab263fd64b
X-Runtime: 0.076068
Content-Length: 5273

Body

{
  "program": {
    "id": 11,
    "visibility": "listed",
    "enrollment_open": true,
    "enrollment_open_from": null,
    "enrollment_open_to": null,
    "enrollment_cap": null,
    "description": "description_11",
    "enrollment_fee": "0.0",
    "created_at": "2024/04/12 14:13:09 +0000",
    "credits": 9.0,
    "measurement": "credit",
    "updated_at": "2024/04/12 14:13:09 +0000",
    "short_description": "teaser_11",
    "listing_path": "program-path-11",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 15,
      "name": "Domain Account 15"
    },
    "type": "Program",
    "title": "Program 11",
    "list_order": null,
    "waitlist": false,
    "waitlist_cap": null,
    "sku": null,
    "show_free_banner": true,
    "image_alt_text": null,
    "allowed_payment_types": [
      "standard"
    ],
    "tag_names": [
      "Another Tag",
      "Tag"
    ],
    "listing_url": "http://www.my-catalog.edu/programs/program-path-11",
    "start_date": "2024/04/05 14:13:09 +0000",
    "end_date": null,
    "canvas_section_id": null,
    "associated_account_ids": [

    ],
    "sequential": true,
    "requirements": [
      {
        "id": 12,
        "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": "2024/04/12 14:13:09 +0000",
        "credits": 3.0,
        "measurement": "credit",
        "updated_at": "2024/04/12 14:13:09 +0000",
        "short_description": "teaser_12",
        "listing_path": "program-path-12",
        "listing_image": null,
        "currency": "USD",
        "catalog": {
          "id": 15,
          "name": "Domain Account 15"
        },
        "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": [

        ],
        "listing_url": "http://www.my-catalog.edu/programs/program-path-12",
        "start_date": "2024/04/05 14:13:09 +0000",
        "end_date": null,
        "canvas_section_id": null,
        "associated_account_ids": [

        ],
        "sequential": true,
        "requirements": [
          {
            "id": 14,
            "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": "2024/04/12 14:13:09 +0000",
            "credits": 3.0,
            "measurement": "credit",
            "updated_at": "2024/04/12 14:13:09 +0000",
            "short_description": "teaser_14",
            "listing_path": "course-path-14",
            "listing_image": null,
            "currency": "USD",
            "catalog": {
              "id": 15,
              "name": "Domain Account 15"
            },
            "type": "Course",
            "title": "Course 14",
            "list_order": null,
            "waitlist": false,
            "waitlist_cap": null,
            "sku": "sku_8",
            "show_free_banner": true,
            "image_alt_text": null,
            "allowed_payment_types": [
              "standard"
            ],
            "tag_names": [

            ],
            "listing_url": "http://www.my-catalog.edu/courses/course-path-14",
            "start_date": "2024/04/05 14:13:09 +0000",
            "end_date": "2024/04/19 14:13:09 +0000",
            "canvas_section_id": null,
            "associated_account_ids": [

            ],
            "canvas_course": {
              "id": 8
            }
          }
        ]
      },
      {
        "id": 13,
        "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": "2024/04/12 14:13:09 +0000",
        "credits": 6.0,
        "measurement": "credit",
        "updated_at": "2024/04/12 14:13:09 +0000",
        "short_description": "teaser_13",
        "listing_path": "program-path-13",
        "listing_image": null,
        "currency": "USD",
        "catalog": {
          "id": 15,
          "name": "Domain Account 15"
        },
        "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",
        "start_date": "2024/04/05 14:13:09 +0000",
        "end_date": null,
        "canvas_section_id": null,
        "associated_account_ids": [

        ],
        "sequential": true,
        "requirements": [
          {
            "id": 15,
            "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": "2024/04/12 14:13:09 +0000",
            "credits": 3.0,
            "measurement": "credit",
            "updated_at": "2024/04/12 14:13:09 +0000",
            "short_description": "teaser_15",
            "listing_path": "course-path-15",
            "listing_image": null,
            "currency": "USD",
            "catalog": {
              "id": 15,
              "name": "Domain Account 15"
            },
            "type": "Course",
            "title": "Course 15",
            "list_order": null,
            "waitlist": false,
            "waitlist_cap": null,
            "sku": "sku_9",
            "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",
            "start_date": "2024/04/05 14:13:09 +0000",
            "end_date": "2024/04/19 14:13:09 +0000",
            "canvas_section_id": null,
            "associated_account_ids": [

            ],
            "canvas_course": {
              "id": 9
            }
          },
          {
            "id": 16,
            "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": "2024/04/12 14:13:09 +0000",
            "credits": 3.0,
            "measurement": "credit",
            "updated_at": "2024/04/12 14:13:09 +0000",
            "short_description": "teaser_16",
            "listing_path": "course-path-16",
            "listing_image": null,
            "currency": "USD",
            "catalog": {
              "id": 15,
              "name": "Domain Account 15"
            },
            "type": "Course",
            "title": "Course 16",
            "list_order": null,
            "waitlist": false,
            "waitlist_cap": null,
            "sku": "sku_10",
            "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",
            "start_date": "2024/04/05 14:13:09 +0000",
            "end_date": "2024/04/19 14:13:09 +0000",
            "canvas_section_id": null,
            "associated_account_ids": [

            ],
            "canvas_course": {
              "id": 10
            }
          }
        ]
      }
    ]
  }
}

Listing programs

Endpoint

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

Request

Route

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

Headers

Version: HTTP/1.0
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: dsbzofGcTNSMD8RsYfbjTcL+T0vHQRbGxf76+YbmH2ObCOil58aWGyNOq22ENT22WMu/ZFQAIvY5Q1CLBJliHw==
ETag: W/"6d18f02af836b4cdf05535a9e42e9a26"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=elFLRDlENzJtWGlROGE3SjJRSE9MKzA3VUNERTFvd2wweGdVVGpNdjlFRXhTMW1Vc0x0S0xLMDQvQnFMN09nemFTem82M1dmWEwyNkRoRFgyejZpUUFsaGFmWUdRZklTblMrNGQ0aWtFQzk4N0Rab0V0S3gvc0V4NGhtUVVnRGZsVk1kb3FJSGt3b3N6SmVsdTE3blpZanllc0dwdGdHMVVDUzRkUkZSRUpWVyt0TC9KNW9UQnRYNUtWdUZrdTJuLS1vNjdCcUdvZ2JRcEhISjM1NXFqQUZ3PT0%3D--b2eaf6ffd012318ab666795dfd9465b9b369a3b1; path=/; HttpOnly
X-Request-Id: 0f0af99d-a39b-47b1-b64f-25c64fa27eaa
X-Runtime: 0.098667
Content-Length: 9593

Body

{
  "programs": [
    {
      "id": 5,
      "visibility": "listed",
      "enrollment_open": true,
      "enrollment_open_from": null,
      "enrollment_open_to": null,
      "enrollment_cap": null,
      "description": "description_5",
      "enrollment_fee": "0.0",
      "created_at": "2024/04/12 14:13:08 +0000",
      "credits": 9.0,
      "measurement": "credit",
      "updated_at": "2024/04/12 14:13:08 +0000",
      "short_description": "teaser_5",
      "listing_path": "program-path-5",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 14,
        "name": "Domain Account 14"
      },
      "type": "Program",
      "title": "Program 5",
      "list_order": null,
      "waitlist": false,
      "waitlist_cap": null,
      "sku": null,
      "show_free_banner": true,
      "image_alt_text": null,
      "allowed_payment_types": [
        "standard"
      ],
      "tag_names": [
        "Another Tag",
        "Tag"
      ],
      "listing_url": "http://www.my-catalog.edu/programs/program-path-5",
      "start_date": "2024/04/05 14:13:08 +0000",
      "end_date": null,
      "canvas_section_id": null,
      "associated_account_ids": [

      ],
      "sequential": true,
      "requirements": [
        {
          "id": 6,
          "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": "2024/04/12 14:13:08 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2024/04/12 14:13:08 +0000",
          "short_description": "teaser_6",
          "listing_path": "program-path-6",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 14,
            "name": "Domain Account 14"
          },
          "type": "Program",
          "title": "Program 6",
          "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-6",
          "start_date": "2024/04/05 14:13:08 +0000",
          "end_date": null,
          "canvas_section_id": null,
          "associated_account_ids": [

          ],
          "sequential": true,
          "requirements": [
            {
              "id": 8,
              "visibility": "listed",
              "enrollment_open": true,
              "enrollment_open_from": null,
              "enrollment_open_to": null,
              "enrollment_cap": null,
              "description": "description_8",
              "enrollment_fee": "0.0",
              "created_at": "2024/04/12 14:13:08 +0000",
              "credits": 3.0,
              "measurement": "credit",
              "updated_at": "2024/04/12 14:13:08 +0000",
              "short_description": "teaser_8",
              "listing_path": "course-path-8",
              "listing_image": null,
              "currency": "USD",
              "catalog": {
                "id": 14,
                "name": "Domain Account 14"
              },
              "type": "Course",
              "title": "Course 8",
              "list_order": null,
              "waitlist": false,
              "waitlist_cap": null,
              "sku": "sku_5",
              "show_free_banner": true,
              "image_alt_text": null,
              "allowed_payment_types": [
                "standard"
              ],
              "tag_names": [

              ],
              "listing_url": "http://www.my-catalog.edu/courses/course-path-8",
              "start_date": "2024/04/05 14:13:08 +0000",
              "end_date": "2024/04/19 14:13:08 +0000",
              "canvas_section_id": null,
              "associated_account_ids": [

              ],
              "canvas_course": {
                "id": 5
              }
            }
          ]
        },
        {
          "id": 7,
          "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": "2024/04/12 14:13:08 +0000",
          "credits": 6.0,
          "measurement": "credit",
          "updated_at": "2024/04/12 14:13:08 +0000",
          "short_description": "teaser_7",
          "listing_path": "program-path-7",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 14,
            "name": "Domain Account 14"
          },
          "type": "Program",
          "title": "Program 7",
          "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-7",
          "start_date": "2024/04/05 14:13:08 +0000",
          "end_date": null,
          "canvas_section_id": null,
          "associated_account_ids": [

          ],
          "sequential": true,
          "requirements": [
            {
              "id": 9,
              "visibility": "listed",
              "enrollment_open": true,
              "enrollment_open_from": null,
              "enrollment_open_to": null,
              "enrollment_cap": null,
              "description": "description_9",
              "enrollment_fee": "0.0",
              "created_at": "2024/04/12 14:13:08 +0000",
              "credits": 3.0,
              "measurement": "credit",
              "updated_at": "2024/04/12 14:13:08 +0000",
              "short_description": "teaser_9",
              "listing_path": "course-path-9",
              "listing_image": null,
              "currency": "USD",
              "catalog": {
                "id": 14,
                "name": "Domain Account 14"
              },
              "type": "Course",
              "title": "Course 9",
              "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": [

              ],
              "listing_url": "http://www.my-catalog.edu/courses/course-path-9",
              "start_date": "2024/04/05 14:13:08 +0000",
              "end_date": "2024/04/19 14:13:08 +0000",
              "canvas_section_id": null,
              "associated_account_ids": [

              ],
              "canvas_course": {
                "id": 6
              }
            },
            {
              "id": 10,
              "visibility": "listed",
              "enrollment_open": true,
              "enrollment_open_from": null,
              "enrollment_open_to": null,
              "enrollment_cap": null,
              "description": "description_10",
              "enrollment_fee": "0.0",
              "created_at": "2024/04/12 14:13:08 +0000",
              "credits": 3.0,
              "measurement": "credit",
              "updated_at": "2024/04/12 14:13:08 +0000",
              "short_description": "teaser_10",
              "listing_path": "course-path-10",
              "listing_image": null,
              "currency": "USD",
              "catalog": {
                "id": 14,
                "name": "Domain Account 14"
              },
              "type": "Course",
              "title": "Course 10",
              "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": [

              ],
              "listing_url": "http://www.my-catalog.edu/courses/course-path-10",
              "start_date": "2024/04/05 14:13:08 +0000",
              "end_date": "2024/04/19 14:13:08 +0000",
              "canvas_section_id": null,
              "associated_account_ids": [

              ],
              "canvas_course": {
                "id": 7
              }
            }
          ]
        }
      ]
    },
    {
      "id": 6,
      "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": "2024/04/12 14:13:08 +0000",
      "credits": 3.0,
      "measurement": "credit",
      "updated_at": "2024/04/12 14:13:08 +0000",
      "short_description": "teaser_6",
      "listing_path": "program-path-6",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 14,
        "name": "Domain Account 14"
      },
      "type": "Program",
      "title": "Program 6",
      "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-6",
      "start_date": "2024/04/05 14:13:08 +0000",
      "end_date": null,
      "canvas_section_id": null,
      "associated_account_ids": [

      ],
      "sequential": true,
      "requirements": [
        {
          "id": 8,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_8",
          "enrollment_fee": "0.0",
          "created_at": "2024/04/12 14:13:08 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2024/04/12 14:13:08 +0000",
          "short_description": "teaser_8",
          "listing_path": "course-path-8",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 14,
            "name": "Domain Account 14"
          },
          "type": "Course",
          "title": "Course 8",
          "list_order": null,
          "waitlist": false,
          "waitlist_cap": null,
          "sku": "sku_5",
          "show_free_banner": true,
          "image_alt_text": null,
          "allowed_payment_types": [
            "standard"
          ],
          "tag_names": [

          ],
          "listing_url": "http://www.my-catalog.edu/courses/course-path-8",
          "start_date": "2024/04/05 14:13:08 +0000",
          "end_date": "2024/04/19 14:13:08 +0000",
          "canvas_section_id": null,
          "associated_account_ids": [

          ],
          "canvas_course": {
            "id": 5
          }
        }
      ]
    },
    {
      "id": 7,
      "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": "2024/04/12 14:13:08 +0000",
      "credits": 6.0,
      "measurement": "credit",
      "updated_at": "2024/04/12 14:13:08 +0000",
      "short_description": "teaser_7",
      "listing_path": "program-path-7",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 14,
        "name": "Domain Account 14"
      },
      "type": "Program",
      "title": "Program 7",
      "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-7",
      "start_date": "2024/04/05 14:13:08 +0000",
      "end_date": null,
      "canvas_section_id": null,
      "associated_account_ids": [

      ],
      "sequential": true,
      "requirements": [
        {
          "id": 9,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_9",
          "enrollment_fee": "0.0",
          "created_at": "2024/04/12 14:13:08 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2024/04/12 14:13:08 +0000",
          "short_description": "teaser_9",
          "listing_path": "course-path-9",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 14,
            "name": "Domain Account 14"
          },
          "type": "Course",
          "title": "Course 9",
          "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": [

          ],
          "listing_url": "http://www.my-catalog.edu/courses/course-path-9",
          "start_date": "2024/04/05 14:13:08 +0000",
          "end_date": "2024/04/19 14:13:08 +0000",
          "canvas_section_id": null,
          "associated_account_ids": [

          ],
          "canvas_course": {
            "id": 6
          }
        },
        {
          "id": 10,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_10",
          "enrollment_fee": "0.0",
          "created_at": "2024/04/12 14:13:08 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2024/04/12 14:13:08 +0000",
          "short_description": "teaser_10",
          "listing_path": "course-path-10",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 14,
            "name": "Domain Account 14"
          },
          "type": "Course",
          "title": "Course 10",
          "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": [

          ],
          "listing_url": "http://www.my-catalog.edu/courses/course-path-10",
          "start_date": "2024/04/05 14:13:08 +0000",
          "end_date": "2024/04/19 14:13:08 +0000",
          "canvas_section_id": null,
          "associated_account_ids": [

          ],
          "canvas_course": {
            "id": 7
          }
        }
      ]
    }
  ]
}

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[associated_account_ids] Other account ids where this product should be listed Array
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/17

Headers

Version: HTTP/1.0
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: bo99Mq3j5r3MnM4YpBtbevZcew3IV8CKbKcP21mqljeEbfZApTYynzwRw9rkCA00sPCJj4AfFeosPqDT0h4tPQ==
Cache-Control: no-cache
Set-Cookie: _gallery_session=M2IwNHFmMCs4M3pOL3NxQWRXVDdHdisvaVJDaloxM2hCZTFGUXA4QVBLL1U3clhWR3dXQk5VcDZHOTdpZ3lQa3ZzNjlqN3d1RmRYbVQxblRLQlhzcHhPNnphdjZ5K3RpNTVlNjRJSVc4eTJUS0hEdmFCeEE4akhGV1Y0V09DaGx1RnBoRFk1NXN1eXdWRVJlRXQvaXBYMEU3UDBwdElXdHBNZ2o0WkFwT2VXUnJVM3hxa2Z1d2RISzlscmkwWWp5LS1vUUQ1dC9KbzNPUTJGemtSeDRsWERnPT0%3D--18a3f78b046a8d7dfa12f57e32f4db990f37ce4c; path=/; HttpOnly
X-Request-Id: 36bd6824-2960-4ce9-afee-ce0b12092a85
X-Runtime: 0.065924

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/1

Headers

Version: HTTP/1.0
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: 7JBYHJusLRfoxnObTIUX+GkbNKouPA7pqg0kZ53BAiMu12XfusOqgrpZlCyRllGLnEBn091Q/tIruW0xYhBx6A==
ETag: W/"6a2e2cd7c8a2d8cd0379ade52dfffb7a"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=NTRMOUNTaXVueEMyNFFkUmM1VExtSFQzTWZqYTZCb3VUeEtxbXB3YVhjSVNIWjlTZHRQc2x3NzBQM0E0elVhTnFYYnBUcTdyakkzVEk4OWJZYUdIUkhPdEJsUk5zNThDYmFBbGIwaXFlMXBiei81MnJrTkdRQXRvUHFTaUp0bDlNQW90ZWJML0s2OG5PNm5HTmh5M3dQdEgvZHZxL2JsTzVZb3ovZ2xwaTM3elNDT1lNNkZLZ2FycTJHNEMrcnlHLS1KY3NZT0lrcVZpNk4rS0hqakVUYzVBPT0%3D--9a054a06a5e365eed3805a3f14e2bf46346d3f81; path=/; HttpOnly
X-Request-Id: 1cf520c2-6efd-40e3-b39c-547a8fc60a15
X-Runtime: 0.058882
Content-Length: 206

Body

{
  "progress": {
    "id": 1,
    "account_id": 13,
    "canvas_user_id": null,
    "completion_percent": null,
    "workflow_state": "queued",
    "payload": {
    },
    "created_at": "2024/04/12 14:13:08 +0000",
    "updated_at": "2024/04/12 14:13:08 +0000"
  }
}

Tags

The request parameters should be sent as JSON in the request body.

Creating a Tag

Endpoint

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

Parameters

Name Description Type
name required Tag name (minimum 1 and maximum 255 characters) String
product_ids List of product ids associate to this tag Array

Request

Route

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

Headers

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

Body

{
  "name": "Tag 1",
  "product_ids": [
    1,
    2,
    3
  ]
}

Response

Response Fields

Name Description Type
id Tag id Integer
account_id Account id Integer
name Tag name String
created_at Tag created at Datetime
updated_at Tag updated at Datetime
assigned_listings Products associate to this tag Array
assigned_listings[id] Product id Integer
assigned_listings[title] Product title String
assigned_listings[type] Product type (COURSE or PROGRAM) String
assigned_listings[canvas_course_id] Product Canvas course id Integer
assigned_categories Returns empty list to indicate there are no associated categories to the newly created tag Array

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: 6FW33LLrSaIjEb23CItx+puVMMiIfLdPUR414Ok3EEzHb4R+0Hp+ZjsrhNlffZ3EnGNsR6VAW1v460leLvNH5A==
ETag: W/"d28527bc8045c810926178688d89dc7d"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=OW50QnBhWEFCd29mTkZRRysxRGdjVldPRmxMcFRtQWtnbjB4bEh6RDlCSmZQQnpub2EwU3lUSjMxeWhpNmdBM2FQOFo3YnlJbTZyZ3YzNFRGOXcxektHREFHOTFLSkppVFcybXpvazNxSUc3eHJZUExBNm5JSWxqR2djaEtjZWRqR0dnS0tpWDE0bUF5b1oveW5VQTB3ZzdmbXNJaWxha3RhWXNnTWttcHpNY1BHdVZFYVlhSFFXYTc0bUdNY3hTLS13ZWp3bjF6b2x3SzMrSm42NFh5TllBPT0%3D--67d1d2ec2dc4c211848e454940259fdb8fa72d0f; path=/; HttpOnly
X-Request-Id: f2871f0b-f69d-4651-beb1-1079b845ec47
X-Runtime: 0.026448
Content-Length: 348

Body

{
  "id": 17,
  "account_id": 1,
  "name": "Tag 1",
  "assigned_listings": [
    {
      "id": 1,
      "title": "Course 1",
      "type": "COURSE",
      "canvas_course_id": 2
    },
    {
      "id": 2,
      "title": "Course 2",
      "type": "COURSE",
      "canvas_course_id": 3
    },
    {
      "id": 3,
      "title": "Program 1",
      "type": "PROGRAM"
    }
  ],
  "assigned_categories": [

  ],
  "created_at": "2023-08-07T09:45:45.535989Z",
  "updated_at": "2023-08-07T09:45:45.535989Z"
}

Deleting a specific Tag

Endpoint

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

Request

Route

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

Headers

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

Response

Response Fields

Name Description Type
id Tag id Integer
account_id Account id Integer
name Tag name String
created_at Tag created at Datetime
updated_at Tag updated at Datetime
assigned_listings Returns empty list to indicate associated products to this tag are deleted Array
assigned_categories Returns empty list to indicate associated categories to this tag are deleted Array
is_deleted Returns true to indicate tag is deleted 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: RIH2W7syOKJjWZkYW1neYokN1aCAy2IpNweDfGzm/RHwYfi4cdtx9UN7hAfXXKcjuaTwQIzn2w68PKiNqRsCHQ==
ETag: W/"a0e5af0d45b6e0872c23161a4d8512b1"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=Vyt2dGxXZWRKRjBMTUNvRmNJMWhyNkgxTUZJYStTekRpNTBUQlNTZVJDQkI5b1B4cWdsUVVPVnZvSzFuUVIyQktTRVRLcm9UMHJ6c1hnK0xmdlFUY29icmhVTkJEbkhKVkw0WTZLdzZYV28zUlgvQU0xeHpiM1lid1hiMmtMNlFaVlJLUDJUbys5Smd4eVhqTFMvQkFSMCtQYlplS2FRUXlvazhiYk15M1ltRVplM05tQTVPZ0V6NmpncWVBNDg1LS0yRGszQ3oyVFduMlpvRDRMY1BCczRnPT0%3D--3c2a9abf3e220c73d29f11327bf2e78e6ad48b12; path=/; HttpOnly
X-Request-Id: 85edb7a8-ae3d-408a-8820-676235274df2
X-Runtime: 0.026821
Content-Length: 191

Body

{
  "id": 17,
  "account_id": 1,
  "name": "Tag 1",
  "assigned_listings": [

  ],
  "assigned_categories": [

  ],
  "created_at": "2023-08-07T09:45:45.535989Z",
  "updated_at": "2023-08-07T09:45:45.535989Z",
  "is_deleted": true
}

Getting a specific Tag

Endpoint

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

Request

Route

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

Headers

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

Response

Response Fields

Name Description Type
id Tag id Integer
account_id Account id Integer
name Tag name String
created_at Tag created at Datetime
updated_at Tag updated at Datetime
assigned_listings Products associate to this tag Array
assigned_listings[id] Product id Integer
assigned_listings[title] Product title String
assigned_listings[type] Product type (COURSE or PROGRAM) String
assigned_listings[canvas_course_id] Product Canvas course id Integer
assigned_categories Categories associate to this tag Array
assigned_categories[id] Category id Integer
assigned_categories[account_id] Account id Integer
assigned_categories[tag_id] Tag id Integer
assigned_categories[created_at] Category created at Datetime
assigned_categories[updated_at] Category updated at 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: GGGu9zohLthjVdi9LWxbTR3g2Sk064k3yiWaFCmhlW1LFQd09roKsbeKQFenNc4nrNFhu0vlbxA/v1euvEGhSg==
ETag: W/"46df2efb1d18f8a035330ee476adc2c6"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=dDkzVXJycWJTcUFxc3MvUjBrOExVdVdHWW1SQ2lHOVFseEtac2NNUFZIQlZuZjhUSnBnRitzSlFOSUVWay9XSTVSQkhwbFJlcDl3aWFqZkxEcG5wakZtK1EyMGpWcld0WVBmUVAvZXdwbVRkVXhaam8zL215M3FiM0Rid3F3azRCYlpWK2ttMnVOTTZZL1BmdVRmRzlEaVRmOTM1eTBGVG50aUZzclBSRElaTjQ3S2tCemVrMlNBZHhoNURXdkFKLS1BcUJ2TzFrb1lTTHdnbXZYKzZMRmh3PT0%3D--930206d7717299b723a41afa3650ff48639fb493; path=/; HttpOnly
X-Request-Id: 9a5369fe-9f8e-4103-9a79-a03b138c0571
X-Runtime: 0.029792
Content-Length: 359

Body

{
  "id": 17,
  "account_id": 1,
  "name": "Tag 1",
  "assigned_listings": [
    {
      "id": 3,
      "title": "Course 1",
      "type": "COURSE",
      "canvas_course_id": 4
    }
  ],
  "assigned_categories": [
    {
      "id": 12,
      "account_id": 5,
      "tag_id": 17,
      "created_at": "2023-08-22T06:33:38.991906Z",
      "updated_at": "2023-08-24T06:33:38.991906Z"
    }
  ],
  "created_at": "2023-08-07T09:45:45.535989Z",
  "updated_at": "2023-08-07T09:45:45.535989Z"
}

Listing Tags

Endpoint

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

Parameters

Name Description Type
product_ids List of product ids (maximum 20 ids) Array
name Search value which will be searched in tag name and associated products names String
has_category Tag has category or not Boolean
updated_at_from Updated at from Datetime
updated_at_to Updated at to Datetime
created_at_from Created at from Datetime
created_at_to Created at to Datetime

Request

Route

GET https://www.my-catalog.edu/api/v1/tags?product_ids=1%2C2%2C3&name=tag+1&has_category=true&updated_at_from=2023-08-06T14%3A46%3A59.944581%2B02%3A00&updated_at_to=2023-08-10T14%3A46%3A59.944581-05%3A00&created_at_from=2023-08-05T14%3A46%3A59.944581%2B02%3A00&created_at_to=2023-08-09T14%3A46%3A59.944581-05%3A00

Headers

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

Query Parameters

product_ids=1,2,3
name=tag 1
has_category=true
updated_at_from=2023-08-06T14:46:59.944581+02:00
updated_at_to=2023-08-10T14:46:59.944581-05:00
created_at_from=2023-08-05T14:46:59.944581+02:00
created_at_to=2023-08-09T14:46:59.944581-05:00

Response

Response Fields

Name Description Type
id Tag id Integer
account_id Account id Integer
name Tag name String
created_at Tag created at Datetime
updated_at Tag updated at Datetime
assigned_listings Products associate to this tag Array
assigned_listings[id] Product id Integer
assigned_listings[title] Product title String
assigned_listings[type] Product type (COURSE or PROGRAM) String
assigned_listings[canvas_course_id] Product Canvas course id Integer
assigned_categories Categories associate to this tag Array
assigned_categories[id] Category id Integer
assigned_categories[account_id] Account id Integer
assigned_categories[tag_id] Tag id Integer
assigned_categories[created_at] Category created at Datetime
assigned_categories[updated_at] Category updated at 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
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: qMsnKqmQD7lyJyyugiWN/CznKE8Ui2NNtZAabCHJbBpxULLw5E1z3y3yTwa90aZzHNe249Z8k1cRZwF3q9bMXQ==
ETag: W/"ceb355099dc5b01206a5bc1e2504aa2c"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=QVc5M2RQVTQxSklzaUVHVFFmSWdJNjZLWkdGQkM3ZjBINFRCeGdrSHpzbEdDbzhhYmY3Yy9iL1hQUy9aK2R0bG5CT3pjWERiQzdibm5sKzFMZmhLamdtdjZJV3JBSlZuUjNTZGZERjliQjRjNFE0SjJpa1FNSTNJZ1dyYVh4TDMrSXFsOW95QVBJazF3dy9IZUY5Z0RWcmJ4STcvSUlleGswMTJEcGFLR3Q4TFV1YzlEZEZrVWpCTGVyY1ZFVTF3LS1iTFlydWlPQzdTREkwMzhUR0VHSG5nPT0%3D--f2ba058880b3b7a212fc8cc9280b1221e642249d; path=/; HttpOnly
X-Request-Id: 1b76b631-cff6-4ba2-b00f-1743850c45d9
X-Runtime: 0.041244
Content-Length: 370

Body

{
  "tags": [
    {
      "id": 17,
      "account_id": 1,
      "name": "Tag 1",
      "assigned_listings": [
        {
          "id": 3,
          "title": "Course 1",
          "type": "COURSE",
          "canvas_course_id": 4
        }
      ],
      "assigned_categories": [
        {
          "id": 12,
          "account_id": 5,
          "tag_id": 17,
          "created_at": "2023-08-22T06:33:38.991906Z",
          "updated_at": "2023-08-24T06:33:38.991906Z"
        }
      ],
      "created_at": "2023-08-07T09:45:45.535989Z",
      "updated_at": "2023-08-07T09:45:45.535989Z"
    }
  ]
}

Updating a specific Tag

Endpoint

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

Parameters

Name Description Type
name required New tag name (minimum 1 and maximum 255 characters) String

Request

Route

PUT https://www.my-catalog.edu/api/v1/tags/17

Headers

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

Body

{
  "name": "New tag name"
}

Response

Response Fields

Name Description Type
id Tag id Integer
account_id Account id Integer
name Tag name String
created_at Tag created at Datetime
updated_at Tag updated at Datetime
assigned_listings Products associate to this tag Array
assigned_listings[id] Product id Integer
assigned_listings[title] Product title String
assigned_listings[type] Product type (COURSE or PROGRAM) String
assigned_listings[canvas_course_id] Product Canvas course id Integer
assigned_categories Categories associate to this tag Array
assigned_categories[id] Category id Integer
assigned_categories[account_id] Account id Integer
assigned_categories[tag_id] Tag id Integer
assigned_categories[created_at] Category created at Datetime
assigned_categories[updated_at] Category updated at 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: jp9bPoIXonFHrcmVfVtw+3RVQ835nuuWrWaqZeVauEl2qnldnSbhCJWnU/fdCnoDOzua/agoAcfqEuYV53eqKg==
ETag: W/"210c32da8fec70d48d2d1db7264894c1"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=TGRuZEZ1L3oxSXJnUGtkQ0RUSDgrUGtJYmVEWmRvOVUwZGpqWldRNzIwc3VRcjM5YlE4eE5BQlVZT3ZCaGR0QnpaZ2VWRURrL2tVMWdUb2JqaVBTL2w5eEpGZG9Ha2Z3OWtTdEE3bnNqQ2V5dmozeFBCVEpqR0dxM2x5N01uajJsMWUyMVVxbzB5ajRJbEh2N2htVkhjbnBBTW9kRTdRVGVHdm13M1VnNU1zd0NjZXVZRW1lRU9iZ2lReGZMdHY0LS1NYVRyVjE4MTlUVDZ1eGxacTc2cWFnPT0%3D--976dff6611d94af98c1ce277b5c825d899fac2e3; path=/; HttpOnly
X-Request-Id: 8f9fa241-b142-4bce-84e4-b66a57e53b4f
X-Runtime: 0.027750
Content-Length: 366

Body

{
  "id": 17,
  "account_id": 1,
  "name": "New tag name",
  "assigned_listings": [
    {
      "id": 3,
      "title": "Course 1",
      "type": "COURSE",
      "canvas_course_id": 4
    }
  ],
  "assigned_categories": [
    {
      "id": 12,
      "account_id": 5,
      "tag_id": 17,
      "created_at": "2023-08-22T06:33:38.991906Z",
      "updated_at": "2023-08-24T06:33:38.991906Z"
    }
  ],
  "created_at": "2023-08-07T09:45:45.535989Z",
  "updated_at": "2023-08-07T09:45:45.535989Z"
}

User registrations

Getting a specific user registration

DEPRECATED: use users resource instead. It has all data from the current API endpoint.

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/1

Headers

Version: HTTP/1.0
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: 9j5go+BVPigQxXi7otP7fBplU2DCKUWNXKyD/sgebeFQktmPug3/GbOoI00nPOrnWfClPObK/y6Bm2eDHwCgjw==
ETag: W/"5af882080ab40f89f66270c6a1b97f4f"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=WG9UTUp6S0NZWC9pOWFWV1VCY2NNUW1uU3FEVTZxR2R6QU1DMUErekxXaDViemcydStNOXowa2tQRkI1emhtS3JDbWtTWDEzTTFkNFNWZ0V5WmZ5Vm1LU29rMHFONXZ4OUZNM3J3Yk5JdXdEbjlDL2dNSnRtYWNGbkJ1SVg5Ym1HRm5QVTZTLy81bS95NGhuUDJHZGdOV2drM2pRR0grNUsyc1NqaTlsdGtCYnF4amtKV0VlZFEvNGhOMHZHeW5CLS1wMWd5MnBzTEJGL2N4QUtrNWR6QmRBPT0%3D--3cf01def33700c8b8c0b591c1a30ed5e686d7509; path=/; HttpOnly
X-Request-Id: d3130c49-962c-4188-aaba-1428eecf16cf
X-Runtime: 0.037681
Content-Length: 293

Body

{
  "user_registration": {
    "canvas_user_id": 1,
    "catalog": {
      "id": 10,
      "name": "Domain Account 10"
    },
    "name": "User 1",
    "email": "user1@example.com",
    "custom_fields": {
      "favorite_color": "#BADA55",
      "code_of_conduct": "1",
      "age": "19"
    },
    "created_at": "2024/04/12 14:13:08 +0000",
    "updated_at": "2024/04/12 14:13: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

Version: HTTP/1.0
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: yD436B33++qhrwCJbnjwzNR8BJT8MdtXZaycZq9R168cn5He6PcBvsJN7dCszv/0OE/Huq/WxbTqqhFuEc6hyw==
ETag: W/"ef1887c62cc48a0e0121c9c4894ba4e8"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=eTBOMkFzTTNOSjJ2RDQzNzhia0lyYWVQNmd5S1hTM2M2VmozVk1xZ0F0YlkzNVJra1RJamFhZmZjSTBrc0VjTFZBd2pPLyt6NzdMRFdmMmpKT3hqQldXVyszc2FLKzErRUFnQVowbkpFWVZxSk44N29jMW5acGI4N0ZYZXdyekt6cTFrdzhkTTM3TGpJSTRIWTVzeFlLYlR1TFJjVzlwenVLOUg4MUpjMjIzd1UvY1FTY2tmY0tsVGJSb01RVUhvLS13anJiaXV4UXppOUxUUk9TRlJ0TVF3PT0%3D--ddde9d186162e0d2d568a1c43dd78cb678dedd72; path=/; HttpOnly
X-Request-Id: 5bcfff4e-0088-4b96-984e-090f0ce93a9f
X-Runtime: 0.029346
Content-Length: 296

Body

{
  "user_registrations": [
    {
      "canvas_user_id": 3,
      "catalog": {
        "id": 12,
        "name": "Domain Account 12"
      },
      "name": "User 3",
      "email": "user3@example.com",
      "custom_fields": {
        "favorite_color": "#BADA55",
        "code_of_conduct": "1",
        "age": "19"
      },
      "created_at": "2024/04/12 14:13:08 +0000",
      "updated_at": "2024/04/12 14:13: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

Version: HTTP/1.0
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: uS13OCt0YhBJnkZ31mPKUkttqpij4/4T6qYAjapLR0CmHsJpRDX5QjRVVw1ezC0R27JSzy9P1t4EzGnS/zxY+Q==
ETag: W/"a912ef065ab123427184c8e4ddcd69ca"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=cVA0S25XSmxWNEpJN01sQnhPY25GRjhaMWc4UzdWeUdnMmc1OFhGbUdrMHlXTzhRdkVDQ1dpYkRwd1ZQcjU5MzA1bjNTTm5Pdi9KSE1WY2lGaHBOZFowemFpc1pJekoxTG9ubENyMHVjMG5tdnJyU0VXTWFUZHpUcW1YV2ZlcGtZazNIVExQdHhmV0FQZThHRFdwN2NFUnpMM3dUTThvMlprT3IyRERTTjZSREVqTkxkajRvenl5REZGNStGS1c2LS1MYkYxV2VKMllvTmozQzVrTTZlUXdnPT0%3D--644814f0f3b178e7713e460f3ed474c4186ccbb4; path=/; HttpOnly
X-Request-Id: 14098540-5233-4a61-b2a8-8615a528de7b
X-Runtime: 0.114362
Content-Length: 242

Body

{
  "user_registration": {
    "canvas_user_id": 1234,
    "catalog": {
      "id": 11,
      "name": "Domain Account 11"
    },
    "name": "Barack Obama",
    "email": "barack@obama.com",
    "custom_fields": {
    },
    "created_at": "2024/04/12 14:13:08 +0000",
    "updated_at": "2024/04/12 14:13:08 +0000"
  }
}

Users

Deleting a specific user with dependencies

This endpoint will delete requested existing Catalog user if the user is in the root catalog or one of sub-catalog of the root catalog that api key is generated.
When only_orders_and_enrollments parameter is TRUE, it will delete only user dependencies that are orders, enrollments, payments, bulk invitations that he created, and applicants (wait list) for that user.
When only_orders_and_enrollments is FALSE or not specified, it will delete user dependencies including user itself and its related account admins.

Endpoint

DELETE https://www.my-catalog.edu/api/v1/users/:id?only_orders_and_enrollments=:only_orders_and_enrollments

Parameters

Name Description Type
id required Catalog user id Integer
only_orders_and_enrollments Delete only orders and enrollments (user dependencies) except user and related account admins OR delete user dependencies including user and related account admins Boolean

Request

Route

DELETE https://www.my-catalog.edu/api/v1/users/1?only_orders_and_enrollments=true

Headers

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

Query Parameters

only_orders_and_enrollments=true

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
ETag: W/"ecbd8a0c9ccb07f73d936ef4d2299de9"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=M2hjYzllSUViOWVqeHZkdG83N3dvSFV6UHgwNy8wak55dmh4NDdNa01jSjJLWkdTckpIQVFxZE5Gbk9ld0pNalN4VzEwNGQ5TmprVXlQNUlYMExwM25qNHkvdXdPMWtLaHBQaXV2aUMxWmY0alMwYUFkbVEvMlFLWk9QNUlldHJTU216MURaSkpibVhna2FPVzIrRmVnNVd3b2hQK2E5QnR4dElPRjBWOFdwRzdRYjF6Y1ZpQjcvalRlbWluZy9FLS1KUWJDR2tGY0F3YmNzelFCZlZZQUF3PT0%3D--eb795d3c2db974c1b821b1e4814ca29ba523a3cd; path=/; HttpOnly
X-Request-Id: 89ebc86a-5737-445f-835e-ba92f9b7bb4a
X-Runtime: 0.144108
Content-Length: 29

Body

{
  "error": null,
  "details": null
}

Getting a specific User

Endpoint

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

Parameters

Name Description Type
id required Catalog user id Integer

Request

Route

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

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Catalog user id Integer
root_account_id Root account id Integer
canvas_user_id Canvas user id Integer
registered_account_id The account where the user was registered Integer
canvas_root_account_uuid Canvas root account UUID String
canvas_user_uuid Canvas user UUID String
user_name Full name String
email_address E-mail address String
custom_fields Custom field values, e.g. { 'phone': '(999) 123-4567' } Object
created_at Date/time of creation Datetime
updated_at Date/time of last update Datetime
time_zone User timezone String
merged_into_user_id The user where the user merged into Integer
user_registration_id DEPRECATED: legacy id of the user_registration resource 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: UxWlRGcGddYujBSS5HFpHyo/ZqiCmkW0lrMghNmRZKMpo2A2H+2ooxtUqPX17qrha+QUY9G0Ky5JbbyOdx4dxA==
ETag: W/"4413f47c4d0ec4b85660e8a4b97b04a8"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=ekN1MHNKWEdNbFZ5c0QzK1l5QTFUcUxidWhSaXloTUVaN3A4K2Fpd2N3Z2dHK0hZTlBETVpwVUFZb0ZRM0RrU3Y5R1U3ZkZRMlRJSGZhL3Y5cE56ZUxlaTJZYUs1TUFDc2ZLR0x3S3IyZktGM2JUOHJPWk1PamxqZkJ2VG5FQnA3RzlUaTNHR1RaQ2hqT0J4bmQ2TVJQSVBtTmhETTkzTndqcldKSUdNazBlOVJRTitDNTJkK0tKZ2tNMWQ4dHc2LS16bCtaS1JFbkVyVDV1N1BGNXprK0dBPT0%3D--18fd6aede4a0071d42c7415f3fe279f03ccb3ead; path=/; HttpOnly
X-Request-Id: 6add7bfe-03d3-43b4-86a0-43300fc8c195
X-Runtime: 0.377920
Content-Length: 481

Body

{
  "user": {
    "id": 2,
    "root_account_id": 1,
    "canvas_user_id": 2,
    "registered_account_id": 3,
    "canvas_root_account_uuid": "GUxMJJhiZ8ugUdRADskc0nJrcMXuYYIwV15aWiMO",
    "canvas_user_uuid": "573SBAKMeMX3pAa6iOcml1a81xzsVaomatXUBhUT",
    "user_name": "User 1",
    "email_address": "user1@example.com",
    "custom_fields": {
      "favorite_color": "#BADA55",
      "code_of_conduct": "1",
      "age": "19"
    },
    "created_at": "2024-04-11T15:33:45.503Z",
    "updated_at": "2024-04-11T15:33:45.563514Z",
    "merged_into_user_id": 4,
    "user_registration_id": 5
  }
}

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

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

Body

listing_id=32

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: 2RMCnFrqZDCOx+2DjiA/kJ2SgTGEXb1EZLoOXyk/LSlK8lb4Ck/p04saG6jJFntAePE37xZ88efI/nHPduatmA==
Cache-Control: no-cache
Set-Cookie: _gallery_session=Y2xvL0dRUnZNQy9NM1F0WDV1aWhMNGxZT0pyelNpWFZsYXNwSStIRHI4OU1vdjdBdW01LzdGK3Z2VUtxQ2lwNjJwRFlvZVlqUHY3Q2RlUGk1WGtPcFlNYnpoNTIxMUI0Z3VZeElhMzVHYWF6QUk4Nit3S2U2RGpzb1JvbGJiNEZNMmRqMlZNOFdlRlJScjI5NlZWcWg5NDZjQndGUzFaOEw1QTdlOG51YXJ6S1c5azl0bkZJUzV2YUdONVFXZklsLS1LOEltaU5rOEZ5cTVRUHNxYVFSaFVRPT0%3D--f6f894b4755399ea838923e0298e57f8300ae354; path=/; HttpOnly
X-Request-Id: beeae783-a2b9-4915-8e51-e14b7a9cf735
X-Runtime: 0.030848

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

Version: HTTP/1.0
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: YBypcY9gS0U/N+eL5DkkfAGdvTOAeVHVUaayQqgOMrtxpT5is1E4rskc7+U9jg5H2TM/r4mUNHeIW21QZL2E+w==
ETag: W/"22b1342081253f1c136c837dffd8260c"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=NHFOQUlGUU1aUXRIQzZFQWRJdDNZblFMaGxHOEtWV01yY0RZSEVMTzZydkc2YldMa2NiQ3lXdjBDeWZBRFJ0b1BmR2FvaVh5eU55T3gzeXZhem84Z3BiaWswNzlkTDdpWUhEVnZObmhjdjU0d1FzSDZ3dklNZjhzWGFrL3ptZy8vOUU5OGxGc0VqVFZONmRUSXBCamZMYk5KS3QxLzYvNU9YYksza0IxTmhrT0xsTWV1dkpRb04xYytCOEZVMDhoLS1Wcjh0TzlFcHA1ZGZuYWIyU0xjdlNBPT0%3D--56dba1e8d1648fba9d7ed36c81bc9e2db424fcc1; path=/; HttpOnly
X-Request-Id: 01cd9892-eb60-4a8f-8a2b-df903e118e7f
X-Runtime: 0.034372
Content-Length: 255

Body

{
  "applicant": {
    "id": 2,
    "user": {
      "id": 2,
      "name": "Applicant",
      "email": "plz@letmein.com"
    },
    "listing": {
      "id": 31,
      "title": "Course 29"
    },
    "notified_of_opening_at": null,
    "status": "waitlist",
    "created_at": "2024/04/12 14:13:10 +0000",
    "updated_at": "2024/04/12 14:13: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

Version: HTTP/1.0
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: OOGkn+9SWGbRwxvs3FyCk+agM4H/Sr+laGkp6kQlYPXGitwb04YHl83anzmaC1kDt7d6fnm026ItvzPYqWx0sw==
ETag: W/"0b7689dc22509248b197f5815ebe18d8"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=L0NHbnQvak1jcnlaejhVdWcyYXJSbUkvWFJlVW9WcFA1M3VPY2VmNUR3Wncrd1Y3eW1YQk5vNFp1VENoemFyM3QrTmxBTGhFVlMvdTh4L1E5Zm9LQ0sza2R5bWlIVWI5dHFMTlNTZDJubTZrM3pONEZUTVFaeU92eXUzdEd6emNFVlRDbVBHMmtIbG4xYWUycmpxVXk4STFrYjBzVHhlc21SeHo4Z2NjSWhRcjVTaDBNVmlsWGxlSTFSalliQnk1LS1hT2lHdWkrU0gwT1o4YU9Pb2NaZWtnPT0%3D--74eeb61e6dbffa85538acdda2193c76bf464fccc; path=/; HttpOnly
X-Request-Id: 72db19f3-2850-4dea-b806-c445dadf6e5e
X-Runtime: 0.040488
Content-Length: 258

Body

{
  "applicants": [
    {
      "id": 1,
      "user": {
        "id": 1,
        "name": "Applicant",
        "email": "plz@letmein.com"
      },
      "listing": {
        "id": 30,
        "title": "Course 28"
      },
      "notified_of_opening_at": null,
      "status": "waitlist",
      "created_at": "2024/04/12 14:13:10 +0000",
      "updated_at": "2024/04/12 14:13:10 +0000"
    }
  ]
}