Tags
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.
Comma-separated product ids (max 20)
Search tag name and associated product names
Tag has a category or not
tags listed (root and sub-account keys)
GET /api/v1/tags HTTP/1.1
Host: catalog.example.edu
Authorization: YOUR_API_KEY
Accept: */*
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"
}
]
}Requires a root-account API key. A sub-account key can read tags but cannot create, edit, or delete them, and gets 403.
Tag name (1-255 characters)
Product ids to associate
tag created
Tag id
Account id
Tag name
Tag created at
Tag updated at
requires a root-account API key
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"
}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.
Tag id
tag found (root and sub-account keys)
Tag id
Account id
Tag name
Tag created at
Tag updated at
GET /api/v1/tags/{id} HTTP/1.1
Host: catalog.example.edu
Authorization: YOUR_API_KEY
Accept: */*
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"
}Requires a root-account API key. A sub-account key can read tags but cannot create, edit, or delete them, and gets 403.
Tag id
New tag name (1-255 characters)
tag updated
Tag id
Account id
Tag name
Tag created at
Tag updated at
requires a root-account API key
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"
}Requires a root-account API key. A sub-account key can read tags but cannot create, edit, or delete them, and gets 403.
Tag id
tag deleted
Tag id
Account id
Tag name
Tag created at
Tag updated at
True to indicate the tag is deleted
requires a root-account API key
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
}Requires a root-account API key. A sub-account key can read tags but cannot create, edit, or delete them, and gets 403.
Tag IDs to delete
tags deleted
requires a root-account API key
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?