For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tags

List tags

get

Available to sub-account API keys. Tags belong to the root catalog, so this read is tenant-wide: assigned_listings can include listings from sibling subcatalogs (id, title, type, Canvas course id, and archived_at), even though those listings return 404 from the course and program endpoints for the same key. assigned_categories can include categories from sibling subcatalogs, exposing their account_id values.

Authorizations
AuthorizationstringRequired
Query parameters
product_idsstringOptional

Comma-separated product ids (max 20)

namestringOptional

Search tag name and associated product names

has_categorybooleanOptional

Tag has a category or not

Responses
200

tags listed (root and sub-account keys)

application/json
get/api/v1/tags
GET /api/v1/tags HTTP/1.1
Host: catalog.example.edu
Authorization: YOUR_API_KEY
Accept: */*
200

tags listed (root and sub-account keys)

{
  "tags": [
    {
      "id": 1,
      "account_id": 1,
      "name": "text",
      "assigned_listings": [
        {
          "id": 1,
          "title": "text",
          "type": "text",
          "canvas_course_id": 1,
          "archived_at": "text"
        }
      ],
      "assigned_categories": [
        {
          "id": 1,
          "account_id": 1,
          "tag_id": 1,
          "created_at": "text",
          "updated_at": "text"
        }
      ],
      "created_at": "text",
      "updated_at": "text"
    }
  ]
}

Create a tag

post

Requires a root-account API key. A sub-account key can read tags but cannot create, edit, or delete them, and gets 403.

Authorizations
AuthorizationstringRequired
Body
namestringRequired

Tag name (1-255 characters)

product_idsinteger[]Optional

Product ids to associate

Responses
200

tag created

application/json
idintegerRequired

Tag id

account_idintegerOptional

Account id

namestringOptional

Tag name

created_atstringRequired

Tag created at

updated_atstringRequired

Tag updated at

post/api/v1/tags
POST /api/v1/tags HTTP/1.1
Host: catalog.example.edu
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 33

{
  "name": "text",
  "product_ids": [
    1
  ]
}
{
  "id": 1,
  "account_id": 1,
  "name": "text",
  "assigned_listings": [
    {
      "id": 1,
      "title": "text",
      "type": "text",
      "canvas_course_id": 1,
      "archived_at": "text"
    }
  ],
  "assigned_categories": [
    {
      "id": 1,
      "account_id": 1,
      "tag_id": 1,
      "created_at": "text",
      "updated_at": "text"
    }
  ],
  "created_at": "text",
  "updated_at": "text"
}

Get a specific tag

get

Available to sub-account API keys. Tags belong to the root catalog, so this read is tenant-wide: assigned_listings can include listings from sibling subcatalogs (id, title, type, Canvas course id, and archived_at), even though those listings return 404 from the course and program endpoints for the same key. assigned_categories can include categories from sibling subcatalogs, exposing their account_id values.

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Tag id

Responses
200

tag found (root and sub-account keys)

application/json
idintegerRequired

Tag id

account_idintegerOptional

Account id

namestringOptional

Tag name

created_atstringRequired

Tag created at

updated_atstringRequired

Tag updated at

get/api/v1/tags/{id}
GET /api/v1/tags/{id} HTTP/1.1
Host: catalog.example.edu
Authorization: YOUR_API_KEY
Accept: */*
200

tag found (root and sub-account keys)

{
  "id": 1,
  "account_id": 1,
  "name": "text",
  "assigned_listings": [
    {
      "id": 1,
      "title": "text",
      "type": "text",
      "canvas_course_id": 1,
      "archived_at": "text"
    }
  ],
  "assigned_categories": [
    {
      "id": 1,
      "account_id": 1,
      "tag_id": 1,
      "created_at": "text",
      "updated_at": "text"
    }
  ],
  "created_at": "text",
  "updated_at": "text"
}

Update a tag

put

Requires a root-account API key. A sub-account key can read tags but cannot create, edit, or delete them, and gets 403.

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Tag id

Body
namestringRequired

New tag name (1-255 characters)

Responses
200

tag updated

application/json
idintegerRequired

Tag id

account_idintegerOptional

Account id

namestringOptional

Tag name

created_atstringRequired

Tag created at

updated_atstringRequired

Tag updated at

put/api/v1/tags/{id}
PUT /api/v1/tags/{id} HTTP/1.1
Host: catalog.example.edu
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "name": "text"
}
{
  "id": 1,
  "account_id": 1,
  "name": "text",
  "assigned_listings": [
    {
      "id": 1,
      "title": "text",
      "type": "text",
      "canvas_course_id": 1,
      "archived_at": "text"
    }
  ],
  "assigned_categories": [
    {
      "id": 1,
      "account_id": 1,
      "tag_id": 1,
      "created_at": "text",
      "updated_at": "text"
    }
  ],
  "created_at": "text",
  "updated_at": "text"
}

Delete a specific tag

delete

Requires a root-account API key. A sub-account key can read tags but cannot create, edit, or delete them, and gets 403.

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Tag id

Responses
200

tag deleted

application/json
idintegerRequired

Tag id

account_idintegerOptional

Account id

namestringOptional

Tag name

created_atstringRequired

Tag created at

updated_atstringRequired

Tag updated at

is_deletedbooleanRequired

True to indicate the tag is deleted

delete/api/v1/tags/{id}
DELETE /api/v1/tags/{id} HTTP/1.1
Host: catalog.example.edu
Authorization: YOUR_API_KEY
Accept: */*
{
  "id": 1,
  "account_id": 1,
  "name": "text",
  "assigned_listings": [
    {
      "id": 1,
      "title": "text",
      "type": "text",
      "canvas_course_id": 1,
      "archived_at": "text"
    }
  ],
  "assigned_categories": [
    {
      "id": 1,
      "account_id": 1,
      "tag_id": 1,
      "created_at": "text",
      "updated_at": "text"
    }
  ],
  "created_at": "text",
  "updated_at": "text",
  "is_deleted": true
}

Delete multiple tags

delete

Requires a root-account API key. A sub-account key can read tags but cannot create, edit, or delete them, and gets 403.

Authorizations
AuthorizationstringRequired
Body
idsinteger[]Required

Tag IDs to delete

Responses
200

tags deleted

application/json
delete/api/v1/tags/bulk
DELETE /api/v1/tags/bulk HTTP/1.1
Host: catalog.example.edu
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 11

{
  "ids": [
    1
  ]
}
{
  "tags": [
    {
      "id": 1,
      "account_id": 1,
      "name": "text",
      "assigned_listings": [
        {
          "id": 1,
          "title": "text",
          "type": "text",
          "canvas_course_id": 1,
          "archived_at": "text"
        }
      ],
      "assigned_categories": [
        {
          "id": 1,
          "account_id": 1,
          "tag_id": 1,
          "created_at": "text",
          "updated_at": "text"
        }
      ],
      "created_at": "text",
      "updated_at": "text",
      "is_deleted": true
    }
  ]
}

Last updated

Was this helpful?