Blog Categories

Create, read, update, delete, bulk manage, translate, and subscribe to blog categories through the Store API.

Blog categories group posts and provide category listing pages. Reads require read_blog; writes require write_blog. Categories have names, slugs, a plain-text description, SEO fields, and a storefront template. Read field lengths, page sizes and the bulk delete cap from /blog/categories/limits instead of hard-coding them. An omitted or empty create slug is generated from the name; an update slug must be non-empty. Slugs are saved in lowercase. Send null or an empty string to clear description, seo_title or seo_description; an empty field is stored as null. A source field with translations cannot be cleared until those translations are removed. When you change a slug, create_redirect (default true) adds a redirect from the old address; with false, redirects Tringify made earlier toward the old address move to the new one. post_count counts posts in any status, drafts included. Unknown or wrongly typed request fields are rejected with STORE_API_BODY_PROPERTY_UNKNOWN or STORE_API_BODY_PROPERTY_INVALID.

Deleting a category that is assigned to posts must say what happens to them: reassign_to_category_id moves them to another category, remove_from_posts: true takes the category off them; a delete that says neither is refused with BLOG_CATEGORY_HAS_POSTS, and up to a threshold of posts change in the request while more change in a background job (see Delete a category). Bulk deletion has no such choice: it deletes only categories without posts. When menus link to it or storefront theme settings use it, deletion asks for confirmation first. Deleting a category also removes the redirects Tringify made toward it. Bulk deletion lists deleted ids in deleted and every id it did not delete in failed, each with a code (NOT_FOUND, BLOG_CATEGORY_HAS_POSTS or CONFLICT) and a reason. Translate names, slugs, descriptions, and SEO fields through Blog Category translations.

Endpoints#

Blog Category limits

GET read_blog

Fetch Blog Category limits and per-field constraints.

Returns the per-field maximum lengths and request caps that apply to Blog Category endpoints. Useful for clients to validate inputs before sending them and to size UIs. max_per_store is this store's plan cap, count is how many exist now, and usage is the label as Tringify shows it, in English.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

List blog categories

GET read_blog

List blog categories for the store.

Returns paginated Blog Categories. total counts matches for the current filters; store_total counts all records in the store and can be compared with the store capacity returned by the limits endpoint. post_count counts the blog posts assigned to the category, in any status (drafts and scheduled posts count). Use search to filter by name or slug. has_next says whether another page follows; send its next_cursor as cursor to read it. A cursor page has no page number, so page is left out of its response. Invalid pagination and unsupported sort values are rejected. storefront_url is the canonical absolute URL on the store's primary domain. storefront_path is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.

Query parameters

Name Type Description
cursor string

Use next_cursor from the previous page with unchanged filters and sorting. Cursor pages reuse the first page totals, avoid deep offsets and leave page out of the response. Invalid or stale cursors return INVALID_INPUT on cursor; restart from the first page.

page integer

Page number of an offset page. Ignored when cursor is sent.

Example: 1
limit integer

Page size, up to list_max_limit from the Blog Category limits.

Example: 20
search string

Search Blog Categories by name or slug.

Example: company-news
sort_by string

Sort field from the Blog Category list contract.

Allowed values
namepost_countcreated_atupdated_at
Example: name
sort_direction string

Sort direction from the Blog Category list contract.

Allowed values
ascdesc
Example: asc

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 VALIDATION_LIST_INVALID_PAGE

    Page must be a positive integer.

  • 400 VALIDATION_LIST_INVALID_LIMIT

    Limit must be a positive integer within the contract cap.

  • 400 VALIDATION_LIST_INVALID_SORT_BY

    Sort field is not supported for this endpoint. The message lists the supported fields.

  • 400 VALIDATION_LIST_INVALID_SORT_DIRECTION

    Sort direction must be asc or desc.

  • 400 BLOG_CATEGORY_SEARCH_TOO_LONG

    Search exceeds search_max_length from the Blog Category limits.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The query string has a parameter this request does not accept. The message and error.details.allowed_parameters list the ones it does.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Get a blog category

GET read_blog

Fetch one blog category by id.

Returns the Blog Category if it belongs to the token's store. storefront_url is the canonical absolute URL on the store's primary domain. storefront_path is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.

Path parameters

Name Type Description
id required uuid

Blog Category id.

Example: 5ff7d4ea-3250-4a4d-9d26-07f64d917d31

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_CATEGORY_ID

    The blog category id is not a valid UUID.

  • 404 NOT_FOUND

    Blog Category does not exist in this store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

List blog category metafields

GET read_blog

List custom-data values visible to the token.

Definitions are filtered through the token's access rules.

Path parameters

Name Type Description
id required uuid

Blog Category id.

Example: 5ff7d4ea-3250-4a4d-9d26-07f64d917d31

Query parameters

Name Type Description
page integer

Page number (default 1).

limit integer

Values per page, 1 to 50 (default 20), the page size of every custom data value list. A limit from 51 to 100 returns 50 values per page (data.limit shows the size used); above 100 it is rejected with VALIDATION_LIST_INVALID_LIMIT.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_CATEGORY_ID

    The blog category id is not a valid UUID.

  • 400 VALIDATION_LIST_INVALID_PAGE

    Page must be a positive integer.

  • 400 VALIDATION_LIST_INVALID_LIMIT

    Limit must be a positive integer.

  • 404 NOT_FOUND

    The resource does not exist in this store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The query string has a parameter this request does not accept. The message and error.details.allowed_parameters list the ones it does.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Set blog category metafields

PUT write_blog

Create, update, or delete custom-data values.

Send namespace-and-key entries. A string value creates or replaces a value; null or an empty string deletes it. App tokens (tpat_, tast_) write values only for definitions their app owns; a definition another app shares is readable but not writable. Store admin tokens (tsat_) and connected AI tools write as the merchant: merchant-owned definitions, and app-owned definitions whose merchant_access is read_write. The complete value change succeeds or fails together. Omitted entries are preserved. Unknown or wrongly typed body properties are refused.

Path parameters

Name Type Description
id required uuid

Blog Category id.

Example: 5ff7d4ea-3250-4a4d-9d26-07f64d917d31

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
metafields required array<object>

Entries shaped as {namespace, key, value}. value is required in every entry; send null or an empty string to delete the stored value.

Example: [{"namespace":"details","key":"subtitle","value":"Company"}]

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_CATEGORY_ID

    The blog category id is not a valid UUID.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The body or entry shape is invalid. Each entry requires an explicit value, including null for deletion.

  • 400 METAFIELD_NO_WRITES

    Provide at least one metafield entry.

  • 400 METAFIELD_DUPLICATE_WRITE

    A namespace and key occur more than once.

  • 400 METAFIELD_KEY_NOT_FOUND

    The namespace and key do not identify a definition visible to this token. An app token sees its own definitions, merchant-owned definitions of an owner type it can read, and other apps' definitions shared with apps; any other definition returns this code.

  • 403 METAFIELD_WRITE_MERCHANT_READ_ONLY

    The definition does not grant value write access.

  • 403 STORE_API_SCOPE_REQUIRED

    Binding a nonempty file_reference or list.file_reference also requires read_files. Clearing a reference does not.

  • 404 NOT_FOUND

    The resource does not exist in this store. A file reference names a file that does not exist in this store.

  • 400 METAFIELD_VALUE_TOO_LONG

    The value exceeds its size limit: the definition's max_value_length, or the platform value size limit for the type.

  • 400 METAFIELD_VALUE_STRING_TOO_LONG

    A string or multi_line_text value, or the readable text of a rich_text value, exceeds the definition's max_value_length or its platform limit.

  • 400 METAFIELD_VALUE_TEXT_CONTROL_CHARS

    A multi_line_text value contains a control character other than a line break or tab.

  • 400 METAFIELD_VALUE_COLOR_INVALID

    A color value is not # followed by six hex digits.

  • 400 METAFIELD_LIST_COLOR_INVALID

    An item of a list.color value is not # followed by six hex digits; the message names the item.

  • 400 METAFIELD_VALUE_CONTENT_REFERENCE_INVALID

    A page_reference, blog_post_reference or collection_reference value, or an item of one of their lists, is not a UUID.

  • 400 METAFIELD_LIST_CONTENT_REFERENCES_INVALID

    A list.page_reference, list.blog_post_reference or list.collection_reference value is not a JSON array of strings.

  • 400 METAFIELD_VALUE_TOO_SHORT

    A string value is shorter than the definition's min_length rule.

  • 400 METAFIELD_VALUE_PATTERN_MISMATCH

    A string value does not match the definition's pattern rule.

  • 400 METAFIELD_LIST_ITEM_TOO_SHORT

    An item of a list.string value is shorter than the definition's min_length rule; the message names the item.

  • 400 METAFIELD_LIST_ITEM_PATTERN_MISMATCH

    An item of a list.string value does not match the definition's pattern rule; the message names the item.

  • 400 METAFIELD_VALUE_INTEGER_INVALID

    An integer value is not a whole number in the 64-bit range.

  • 400 METAFIELD_VALUE_INTEGER_TOO_LONG

    An integer value has more digits than the definition or the platform integer limit allows.

  • 400 METAFIELD_VALUE_DECIMAL_INVALID

    A decimal value is not a finite decimal number.

  • 400 METAFIELD_VALUE_DECIMAL_TOO_LONG

    A decimal value, written out in full, is longer than the definition or the platform decimal limit allows.

  • 400 METAFIELD_VALUE_BELOW_MIN

    An integer or decimal value is below the definition's min rule.

  • 400 METAFIELD_VALUE_ABOVE_MAX

    An integer or decimal value is above the definition's max rule.

  • 400 METAFIELD_VALUE_BOOLEAN_INVALID

    A boolean value is not true or false.

  • 400 METAFIELD_VALUE_DATE_INVALID

    A date value is not a calendar date in YYYY-MM-DD form.

  • 400 METAFIELD_VALUE_DATETIME_INVALID

    A datetime value is not YYYY-MM-DDTHH:mm, YYYY-MM-DDTHH:mm:ss or an RFC 3339 timestamp.

  • 400 METAFIELD_VALUE_JSON_INVALID

    A json value is not valid JSON.

  • 400 METAFIELD_VALUE_JSON_UNSAFE_LINK

    A json value contains a link whose scheme is not http, https, mailto or tel.

  • 400 METAFIELD_VALUE_URL_INVALID

    A url value, or an item of a list.url value, is not an absolute URL with a host.

  • 400 METAFIELD_VALUE_URL_SCHEME

    A url value, or an item of a list.url value, does not use http or https.

  • 400 METAFIELD_VALUE_URL_TOO_LONG

    A url value, or an item of a list.url value, exceeds the definition's max_value_length or the platform URL limit.

  • 400 METAFIELD_VALUE_NOT_IN_CHOICES

    A single_select value is not one of the definition's choice keys.

  • 400 METAFIELD_LIST_CHOICE_INVALID

    An item of a list.single_select value is not one of the definition's choice keys; the message names the item.

  • 400 METAFIELD_LIST_STRINGS_INVALID

    A list.string, list.single_select or list.color value is not a JSON array of strings.

  • 400 METAFIELD_LIST_URLS_INVALID

    A list.url value is not a JSON array of strings.

  • 400 METAFIELD_LIST_FILES_INVALID

    A list.file_reference value is not a JSON array of strings.

  • 400 METAFIELD_LIST_IDS_INVALID

    A list.product_reference or list.variant_reference value is not a JSON array of integers.

  • 400 METAFIELD_LIST_EMPTY

    A list value other than list.string is an empty array. Send null or an empty string to remove the value instead.

  • 400 METAFIELD_LIST_TOO_MANY

    A list value has more items than the definition's max_list_items or the platform list limit for the type.

  • 400 METAFIELD_LIST_ITEM_EMPTY

    An item of a list.string value is empty or only whitespace; the message names the item.

  • 400 METAFIELD_LIST_ITEM_TOO_LONG

    An item of a list.string value exceeds the definition's max_value_length or the platform string limit; the message names the item.

  • 400 METAFIELD_VALUE_FILE_UUID_INVALID

    A file_reference value, or an item of a list.file_reference value, is not a file UUID.

  • 400 METAFIELD_VALUE_ID_INVALID

    A product_reference or variant_reference value is not an integer ID.

  • 400 METAFIELD_VALUE_ID_POSITIVE

    A product_reference or variant_reference value is not a positive integer.

  • 400 METAFIELD_VALUE_ID_TOO_LONG

    A product_reference or variant_reference value exceeds the platform reference ID limit.

  • 400 METAFIELD_LIST_ITEMS_POSITIVE

    An item of a list.product_reference or list.variant_reference value is not a positive integer.

  • 400 METAFIELD_REFERENCE_PRODUCT_MISSING

    A product reference names a product that does not exist in this store.

  • 400 METAFIELD_REFERENCE_VARIANT_MISSING

    A variant reference names a variant that does not exist in this store.

  • 400 METAFIELD_REFERENCE_PRODUCTS_MISSING

    A list.product_reference value names a product that does not exist in this store.

  • 400 METAFIELD_REFERENCE_VARIANTS_MISSING

    A list.variant_reference value names a variant that does not exist in this store.

  • 400 METAFIELD_REFERENCE_PAGE_MISSING

    A page reference names a page that does not exist in this store.

  • 400 METAFIELD_REFERENCE_PAGES_MISSING

    A list.page_reference value names a page that does not exist in this store.

  • 400 METAFIELD_REFERENCE_BLOG_POST_MISSING

    A blog post reference names a blog post that does not exist in this store.

  • 400 METAFIELD_REFERENCE_BLOG_POSTS_MISSING

    A list.blog_post_reference value names a blog post that does not exist in this store.

  • 400 METAFIELD_REFERENCE_COLLECTION_MISSING

    A collection reference names a collection that does not exist in this store.

  • 400 METAFIELD_REFERENCE_COLLECTIONS_MISSING

    A list.collection_reference value names a collection that does not exist in this store.

  • 400 METAFIELD_VALUE_METAOBJECT_REFERENCE_INVALID

    A metaobject_reference value, or an item of its list, is not a UUID; details.item_index names the item.

  • 400 METAFIELD_LIST_METAOBJECT_REFERENCES_INVALID

    A list.metaobject_reference value is not a JSON array of strings.

  • 400 METAFIELD_REFERENCE_METAOBJECT_MISSING

    A metaobject reference names a custom content entry that does not exist in this store.

  • 400 METAFIELD_REFERENCE_METAOBJECTS_MISSING

    A list.metaobject_reference value names an entry that does not exist in this store.

  • 400 METAFIELD_REFERENCE_METAOBJECT_WRONG_TYPE

    A metaobject reference names an entry of another custom content type than the definition is pinned to.

  • 400 INVALID_INPUT

    A file reference names a file that is not an uploaded file.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Create a blog category

POST write_blog

Create a blog category.

Creates a Blog Category. name is required. slug is optional on create; when omitted or empty, the backend generates it from the name; slugs are saved in lowercase. description is plain text. An omitted, null or empty description, seo_title or seo_description is stored as null; name, slug and template_handle cannot be null. Unknown or wrongly typed body properties are refused. storefront_url is the canonical absolute URL on the store's primary domain. storefront_path is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
name required string

Blog Category name.

Example: Company News
slug string

Optional slug, saved in lowercase. Omit it or send an empty string to generate it from the name.

Example: company-news
description string

Optional plain-text description. Omitted, null or empty means none.

Example: Updates and announcements from the company.
seo_title string

Optional SEO title. Omitted, null or empty means none.

Example: Company News
seo_description string

Optional SEO description. Omitted, null or empty means none.

Example: Read company updates, product notes, and announcements.
template_handle string

Template assignment. On create, omitting this field or sending an empty string assigns default_blog_category. Use default_blog_category for the default Blog Category template, or pass an alternate Blog Category template handle configured for the store. On update, omit template_handle to leave the assignment unchanged, use default_blog_category to reset it to default, and do not send an empty string. The handles are each template's handle in List theme templates (resource_type blog_category).

Example: default_blog_category
robots string

Search visibility: index (default) or noindex. noindex keeps the blog category out of search results and the sitemap; it does not restrict who can open it.

Example: index
social_image_id uuid

Optional image shown when the blog category is shared: the id of an uploaded image in this store's Media library. A non-empty value requires read_files; null or an empty string means none (on update, clears it). Without one, the blog category page is shared with the store's share image (the SEO override's for that language and country, if one sets it), else the store logo.

Example: 6c1d2e3f-4a5b-4c6d-8e7f-90a1b2c3d4e5

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The body is not valid JSON or not a JSON object.

  • 400 BLOG_CATEGORY_NAME_REQUIRED

    Name is empty after normalization. error.details.field is name.

  • 400 BLOG_CATEGORY_NAME_TOO_LONG

    Name exceeds name_max_length from the Blog Category limits.

  • 400 BLOG_CATEGORY_SLUG_FORMAT

    Slug is not valid for Blog Category URLs.

  • 400 BLOG_CATEGORY_SLUG_TOO_LONG

    Slug exceeds slug_max_length from the Blog Category limits.

  • 400 BLOG_CATEGORY_DESCRIPTION_TOO_LONG

    Description exceeds description_max_length from the Blog Category limits.

  • 400 BLOG_CATEGORY_SEO_TITLE_TOO_LONG

    SEO title exceeds seo_title_max_length from the Blog Category limits.

  • 400 BLOG_CATEGORY_SEO_DESCRIPTION_TOO_LONG

    SEO description exceeds seo_description_max_length from the Blog Category limits.

  • 400 BLOG_CATEGORY_NAME_INVALID_CHARS

    The name contains a line break or another control character.

  • 400 BLOG_CATEGORY_DESCRIPTION_INVALID_CHARS

    The description contains a control character other than a line break or tab.

  • 400 BLOG_CATEGORY_SEO_TITLE_INVALID_CHARS

    The SEO title contains a line break or another control character.

  • 400 BLOG_CATEGORY_SEO_DESCRIPTION_INVALID_CHARS

    The SEO description contains a line break or another control character.

  • 400 TEMPLATE_HANDLE_INVALID

    Template handle is empty or not valid for Blog Category templates.

  • 400 TEMPLATE_HANDLE_NOT_FOUND

    Template handle does not exist on the store's primary active theme for Blog Category.

  • 409 BLOG_CATEGORY_DUPLICATE

    Name or slug is already used by another blog category in this store, in any language.

  • 400 ROBOTS_INVALID

    robots is not index or noindex.

  • 400 FILE_REF_INVALID_ID

    social_image_id is not a valid file id.

  • 404 FILE_REF_NOT_FOUND

    social_image_id does not reference a file in this store.

  • 400 FILE_REF_NOT_IMAGE

    social_image_id is not an image.

  • 400 FILE_REF_MEDIA_LIBRARY_ONLY

    social_image_id is a site asset; choose an image from the Media library.

  • 403 STORE_API_SCOPE_REQUIRED

    A non-empty social_image_id requires read_files in addition to write_blog.

  • 400 BLOG_CATEGORY_SLUG_GENERATION_FAILED

    No slug could be generated from the name; send a slug.

  • 400 BLOG_CATEGORY_UNIQUE_SLUG_GENERATION_FAILED

    No free slug could be generated from the name; send a slug.

  • 400 BLOG_CATEGORY_PLAN_LIMIT_REACHED

    This store is at its plan blog category cap (max_per_store in the limits).

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Update a blog category

PUT write_blog

Update a blog category.

Updates provided Blog Category fields. Omitted fields are left unchanged. Send null or an empty string to clear description, seo_title or seo_description (stored as null); a source field that has translations cannot be cleared (TRANSLATION_SOURCE_FIELD_HAS_TRANSLATIONS). name, slug, template_handle and create_redirect cannot be null. When slug is provided it must be non-empty and valid, and it is saved in lowercase; create is the only path that generates a blank slug from the name. When the slug changes, create_redirect (default true) adds a redirect from the old URL; with false the old URL is left to 404 and redirects that pointed at it move to the new URL. Re-sending the current template_handle is accepted even after that template left the theme. Description and SEO changes, like name and slug changes, mark existing translations of that field as outdated. Unknown or wrongly typed body properties are refused. storefront_url is the canonical absolute URL on the store's primary domain. storefront_path is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.

Path parameters

Name Type Description
id required uuid

Blog Category id.

Example: 5ff7d4ea-3250-4a4d-9d26-07f64d917d31

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
name string

Blog Category name. Omit to leave it unchanged.

Example: Company News
slug string

New slug, saved in lowercase. Omit to leave the current slug unchanged; an empty value is invalid.

Example: company-news
description string

Plain-text description. Omit to leave it unchanged; send null or an empty string to clear it.

Example: Updates and announcements from the company.
seo_title string

SEO title. Omit to leave it unchanged; send null or an empty string to clear it.

Example: Company News
seo_description string

SEO description. Omit to leave it unchanged; send null or an empty string to clear it.

Example: Read company updates, product notes, and announcements.
template_handle string

Template assignment. On create, omitting this field or sending an empty string assigns default_blog_category. Use default_blog_category for the default Blog Category template, or pass an alternate Blog Category template handle configured for the store. On update, omit template_handle to leave the assignment unchanged, use default_blog_category to reset it to default, and do not send an empty string. The handles are each template's handle in List theme templates (resource_type blog_category).

Example: default_blog_category
robots string

Search visibility: index (default) or noindex. noindex keeps the blog category out of search results and the sitemap; it does not restrict who can open it.

Example: index
social_image_id uuid

Optional image shown when the blog category is shared: the id of an uploaded image in this store's Media library. A non-empty value requires read_files; null or an empty string means none (on update, clears it). Without one, the blog category page is shared with the store's share image (the SEO override's for that language and country, if one sets it), else the store logo.

Example: 6c1d2e3f-4a5b-4c6d-8e7f-90a1b2c3d4e5
create_redirect boolean

When the slug changes, create a redirect from the old URL to the new one. Defaults to true. With false the old URL is left to 404, and redirects that pointed at it move to the new URL.

Example: true

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_CATEGORY_ID

    The blog category id is not a valid UUID.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The body is not valid JSON or not a JSON object.

  • 400 BLOG_CATEGORY_NAME_REQUIRED

    Name is empty after normalization. error.details.field is name.

  • 400 BLOG_CATEGORY_NAME_TOO_LONG

    Name exceeds name_max_length from the Blog Category limits.

  • 400 BLOG_CATEGORY_SLUG_FORMAT

    Slug is not valid for Blog Category URLs.

  • 400 BLOG_CATEGORY_SLUG_TOO_LONG

    Slug exceeds slug_max_length from the Blog Category limits.

  • 400 BLOG_CATEGORY_DESCRIPTION_TOO_LONG

    Description exceeds description_max_length from the Blog Category limits.

  • 400 BLOG_CATEGORY_SEO_TITLE_TOO_LONG

    SEO title exceeds seo_title_max_length from the Blog Category limits.

  • 400 BLOG_CATEGORY_SEO_DESCRIPTION_TOO_LONG

    SEO description exceeds seo_description_max_length from the Blog Category limits.

  • 400 BLOG_CATEGORY_NAME_INVALID_CHARS

    The name contains a line break or another control character.

  • 400 BLOG_CATEGORY_DESCRIPTION_INVALID_CHARS

    The description contains a control character other than a line break or tab.

  • 400 BLOG_CATEGORY_SEO_TITLE_INVALID_CHARS

    The SEO title contains a line break or another control character.

  • 400 BLOG_CATEGORY_SEO_DESCRIPTION_INVALID_CHARS

    The SEO description contains a line break or another control character.

  • 400 TEMPLATE_HANDLE_INVALID

    Template handle is empty or not valid for Blog Category templates.

  • 400 TEMPLATE_HANDLE_NOT_FOUND

    Template handle does not exist on the store's primary active theme for Blog Category.

  • 409 BLOG_CATEGORY_DUPLICATE

    Name or slug is already used by another blog category in this store, in any language.

  • 400 ROBOTS_INVALID

    robots is not index or noindex.

  • 400 FILE_REF_INVALID_ID

    social_image_id is not a valid file id.

  • 404 FILE_REF_NOT_FOUND

    social_image_id does not reference a file in this store.

  • 400 FILE_REF_NOT_IMAGE

    social_image_id is not an image.

  • 400 FILE_REF_MEDIA_LIBRARY_ONLY

    social_image_id is a site asset; choose an image from the Media library.

  • 403 STORE_API_SCOPE_REQUIRED

    A non-empty social_image_id requires read_files in addition to write_blog.

  • 400 BLOG_CATEGORY_SLUG_REQUIRED

    Slug is empty. Only create generates a slug from the name.

  • 409 TRANSLATION_SOURCE_FIELD_HAS_TRANSLATIONS

    A source field cannot be cleared while it has translations in any locale.

  • 404 NOT_FOUND

    Blog Category does not exist in this store.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Delete a blog category

DELETE write_blog

Delete a blog category.

Deletes a Blog Category with its translations, custom-data values and the redirects Tringify created when its URL changed (in every language); each removed redirect sends redirects/delete. Redirects you created yourself are kept. When blog posts (in any status) are assigned to it, say what happens to them: reassign_to_category_id moves them to another category (a post already in that category just loses this one), or remove_from_posts: true takes this category off them; without either the delete returns BLOG_CATEGORY_HAS_POSTS. Every changed post sends blog_posts/update with changed_fields: ["categories"]. Up to 100 posts change in this request and the category is deleted: the response is {deleted: true, lifecycle: null} with code BLOG_CATEGORY_DELETED. With more, the posts change in a background lifecycle job, 100 at a time, and the category is deleted when every post is done: the response is {deleted: false, lifecycle: {id, kind, status, processed, total, message}} with code BLOG_CATEGORY_DELETION_QUEUED; poll GET /blog/categories/lifecycle-jobs/{job_id}. While such a job runs, deleting the category or its replacement returns BLOG_CATEGORY_MOVE_IN_PROGRESS. If menus link to the blog category or storefront theme settings use it, the first request returns CONFIRMATION_REQUIRED listing the menu links that will be removed and the storefront places that go empty; repeat it with confirmed: true and the returned token to delete. Unknown or wrongly typed body properties are refused.

Path parameters

Name Type Description
id required uuid

Blog Category id.

Example: 5ff7d4ea-3250-4a4d-9d26-07f64d917d31

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
reassign_to_category_id uuid

Move the assigned blog posts to this category. It must be another existing category.

Example: 3a588f80-fd8c-4d46-af1b-00a1c4a7f85a
remove_from_posts boolean

Take this category off the assigned blog posts instead of moving them. Do not combine with reassign_to_category_id.

Example: false
confirmed boolean

Set true only when retrying after CONFIRMATION_REQUIRED.

Example: true
confirmation_token string

Token returned by CONFIRMATION_REQUIRED.

Example: confirm_...

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_CATEGORY_ID

    The blog category id is not a valid UUID.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The body is not valid JSON or not a JSON object.

  • 400 BLOG_CATEGORY_CONFIRMATION_INVALID

    The confirmation token is missing, expired, or does not match this delete.

  • 409 CONFIRMATION_REQUIRED

    Menus link to a requested blog category or storefront theme settings use one. The details list the menu links that will be removed and the storefront places that go empty; repeat the request with confirmed: true and the returned token.

  • 404 NOT_FOUND

    Blog Category does not exist in this store.

  • 409 BLOG_CATEGORY_HAS_POSTS

    The blog category has blog posts assigned (in any status) and the request says neither reassign_to_category_id nor remove_from_posts. The message counts them.

  • 400 BLOG_CATEGORY_REASSIGN_TARGET_INVALID

    reassign_to_category_id is not another category of this store, or it is being deleted.

  • 400 BLOG_CATEGORY_REASSIGN_CHOICE_INVALID

    Both reassign_to_category_id and remove_from_posts were sent.

  • 409 BLOG_CATEGORY_MOVE_IN_PROGRESS

    A running deletion job still moves posts out of this blog category or into it.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Get a blog category deletion job

GET read_blog

Fetch the progress of a blog category deletion job.

Returns the lifecycle job a blog category delete started: kind is category_reassign, status is running, completed (every post changed and the category deleted) or failed, processed and total count posts, and message is the localized progress or result. A failed job names its cause in failure_code (otherwise null): the posts it changed keep their new categories and the category is kept; delete it again to retry. A job that hits a temporary error retries with a growing delay and stays running.

Path parameters

Name Type Description
job_id required uuid

lifecycle.id from a delete.

Example: 0b6f5d1e-8c9a-4e2b-9f3d-7a1c2e4b6d80

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 INVALID_INPUT

    job_id is not a valid UUID.

  • 404 NOT_FOUND

    No blog category deletion job with this id exists in this store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Bulk delete blog categories

POST write_blog

Delete multiple blog categories.

Deletes unassigned Blog Categories together, with their translations, custom-data values and the redirects Tringify created when their URLs changed, up to bulk_delete_max_items from the limits; a repeated id counts once. Deleted ids are listed in deleted. Each id that was not deleted is listed in failed as {id, name, code, reason} (name only when the category was found): code is NOT_FOUND (no such category in this store), BLOG_CATEGORY_HAS_POSTS (posts are assigned to it) or CONFLICT (its posts changed while it was being deleted; send it again), and reason is the message. If menus link to the rest or storefront theme settings use them, the first request returns CONFIRMATION_REQUIRED listing the menu links and the storefront places that go empty, and makes no changes; repeat the same ids with confirmed: true and the returned token. Unknown or wrongly typed body properties are refused.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
category_ids required array<uuid>

Blog Category ids to delete.

Example: ["5ff7d4ea-3250-4a4d-9d26-07f64d917d31"]
confirmed boolean

Set true only when retrying after CONFIRMATION_REQUIRED.

Example: true
confirmation_token string

Token returned by CONFIRMATION_REQUIRED.

Example: confirm_...

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_CATEGORY_ID

    A requested blog category id is not a valid UUID.

  • 400 BLOG_CATEGORY_BULK_NO_IDS

    category_ids is missing or empty.

  • 400 BLOG_CATEGORY_BULK_DELETE_TOO_MANY

    More ids than bulk_delete_max_items from the Blog Category limits.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The body is not valid JSON or not a JSON object.

  • 400 BLOG_CATEGORY_CONFIRMATION_INVALID

    The confirmation token is missing, expired, or does not match this delete.

  • 409 CONFIRMATION_REQUIRED

    Menus link to a requested blog category or storefront theme settings use one. The details list the menu links that will be removed and the storefront places that go empty; repeat the request with confirmed: true and the returned token.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Delete blog category metafield

DELETE write_blog

Clear one metafield value and its translations, preserving its definition.

Address the existing definition by namespace and key. Requires the same write scope and ownership as setting the value. Apps can clear only their own values; merchant callers need write access to the definition's values. The value row is removed, not set to null. The deletion is recorded in the store's activity log and sends the same metafield webhooks as a delete in Store Admin. Repeating the request for an absent value succeeds with the same success envelope (no data or deleted-count field). An unknown or unreadable definition fails. No request body or confirmation token is required.

Path parameters

Name Type Description
id required uuid

Blog Category id.

Example: 5ff7d4ea-3250-4a4d-9d26-07f64d917d31
namespace required string

Definition namespace; URL-encode reserved characters.

Example: details
key required string

Definition key.

Example: subtitle

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 INVALID_INPUT

    The owner ID or namespace/key address is invalid.

  • 400 METAFIELD_KEY_NOT_FOUND

    The definition does not exist or is not readable by this caller.

  • 403 METAFIELD_WRITE_APP_OWN_ONLY

    Apps may clear only their own definitions' values, even when other definitions are readable.

  • 403 METAFIELD_WRITE_MERCHANT_READ_ONLY

    The app-owned definition does not grant merchants value write access.

  • 403 STORE_API_SCOPE_REQUIRED

    The token lacks the owner's write scope. Clearing a value needs no additional read_files or write_translations scope.

  • 404 NOT_FOUND

    The owner does not exist in the authenticated store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The request body has a property; this endpoint takes no body. Send no body or an empty object {}.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Fields#

Field

Type

Create

Update

Required

Translatable

name

string

Yes

Yes

create

Yes

slug

string

Yes

Yes

Yes

description

string

Yes

Yes

Yes

seo_title

string

Yes

Yes

Yes

seo_description

string

Yes

Yes

Yes

robots

string

Yes

Yes

No

social_image_id

string (UUID)

Yes

Yes

No

template_handle

string

Yes

Yes

No

create_redirect

boolean

No

Yes

No

post_count

integer

No

No

No

created_at

string (RFC 3339)

No

No

No

updated_at

string (RFC 3339)

No

No

No

storefront_url

url

No

No

No

No

storefront_path

string

No

No

No

No

Webhook events#

Subscribe to these events to keep your integration in sync with blog categories. Each event shows the required Store API scope and store permission, the available payload fields, and an example payload. Subscription setup is validated against those permissions; delivery is always restricted to the subscription's store.

Metafield events are filtered for every subscriber. An app receives events for definitions it owns. With the event's required scope, it also receives merchant-owned definitions and definitions shared by another app through app_access: shared; another app's private definitions are not delivered. A store-level webhook endpoint receives merchant-owned definitions and app-owned definitions unless merchant_access is hidden. If an event cannot identify the definition owner or its access settings, Tringify does not deliver it.

Blog category created

EVENT blog_categories/create App scope: read_blog Staff permission: blog:write

Fired when a blog category is created.

Payload fields

Field Type Description
blog_category object Always present
blog_category.id string Always present
blog_category.name string Always present
blog_category.slug string Always present
blog_category.description string | null Always present

The category's plain-text description, or null when it has none. Always present.

blog_category.seo_title string | null Always present

The category's SEO title, or null when it has none (the storefront then uses the name). Always present.

blog_category.seo_description string | null Always present

The category's SEO description, or null when it has none (the storefront then uses the description). Always present.

blog_category.template_handle string Always present

The category's template handle; default_blog_category when it uses the default template. Never null.

blog_category.robots string Always present

Search visibility of the category page: index or noindex. Never null.

blog_category.social_image_id string | null Always present

The Media library image shown when the category page is shared, or null when none is set. Deleting the image from the Media library sets it to null and sends blog_categories/update with changed_fields social_image_id. Always present.

blog_category.post_count integer Always present

How many blog posts are assigned to the category, in any status (drafts and scheduled posts count). Assigning or removing posts changes it without sending blog_categories/update.

blog_category.created_at string Always present
blog_category.updated_at string Always present

Blog category updated

EVENT blog_categories/update App scope: read_blog Staff permission: blog:write

Fired when a blog category's name, slug, description, SEO fields, search visibility, share image or template change; changed_fields names them. Also sent when a deleted Media file was its share image: changed_fields is social_image_id and the image is now empty. Assigning posts to it or removing them changes post_count without this event.

Possible changed_fields values

The changed_fields array names exactly which of these changed in this event — use it to skip processing updates your integration doesn't care about.

description name robots seo_description seo_title slug social_image_id template_handle

Payload fields

Field Type Description
blog_category object Always present
blog_category.id string Always present
blog_category.name string Always present
blog_category.slug string Always present
blog_category.description string | null Always present

The category's plain-text description, or null when it has none. Always present.

blog_category.seo_title string | null Always present

The category's SEO title, or null when it has none (the storefront then uses the name). Always present.

blog_category.seo_description string | null Always present

The category's SEO description, or null when it has none (the storefront then uses the description). Always present.

blog_category.template_handle string Always present

The category's template handle; default_blog_category when it uses the default template. Never null.

blog_category.robots string Always present

Search visibility of the category page: index or noindex. Never null.

blog_category.social_image_id string | null Always present

The Media library image shown when the category page is shared, or null when none is set. Deleting the image from the Media library sets it to null and sends blog_categories/update with changed_fields social_image_id. Always present.

blog_category.post_count integer Always present

How many blog posts are assigned to the category, in any status (drafts and scheduled posts count). Assigning or removing posts changes it without sending blog_categories/update.

blog_category.created_at string Always present
blog_category.updated_at string Always present
changed_fields array Always present

Blog category deleted

EVENT blog_categories/delete App scope: read_blog Staff permission: blog:write

Fired when a blog category is deleted. The same delete sends blog_categories/translations/delete for each translated language, blog_category_metafields/delete for its values and redirects/delete for the redirects Tringify had created to its URLs; events of different topics can arrive in any order.

Payload fields

Field Type Description
blog_category object Always present
blog_category.id string Always present
blog_category.name string Always present
blog_category.slug string Always present
blog_category.description string | null Always present

The category's plain-text description, or null when it has none. Always present.

blog_category.seo_title string | null Always present

The category's SEO title, or null when it has none (the storefront then uses the name). Always present.

blog_category.seo_description string | null Always present

The category's SEO description, or null when it has none (the storefront then uses the description). Always present.

blog_category.template_handle string Always present

The category's template handle; default_blog_category when it uses the default template. Never null.

blog_category.robots string Always present

Search visibility of the category page: index or noindex. Never null.

blog_category.social_image_id string | null Always present

The Media library image shown when the category page is shared, or null when none is set. Deleting the image from the Media library sets it to null and sends blog_categories/update with changed_fields social_image_id. Always present.

blog_category.post_count integer Always present

How many blog posts are assigned to the category, in any status (drafts and scheduled posts count). Assigning or removing posts changes it without sending blog_categories/update.

blog_category.created_at string Always present
blog_category.updated_at string Always present

Blog category metafield value created

EVENT blog_category_metafields/create App scope: read_blog Staff permission: blog:write

Fired when a blog category metafield value is created.

Payload fields

Field Type Description
blog_category object Always present
blog_category.id string Always present
blog_category.name string Selectable in the Payload builder
blog_category.slug string Selectable in the Payload builder
metafield object Always present
metafield.definition object | null Selectable in the Payload builder
metafield.definition.id string Selectable in the Payload builder
metafield.definition.owner_type string Selectable in the Payload builder
metafield.definition.namespace string Selectable in the Payload builder
metafield.definition.key string Selectable in the Payload builder
metafield.definition.name string Selectable in the Payload builder
metafield.definition.description string | null Selectable in the Payload builder
metafield.definition.type string Selectable in the Payload builder
metafield.definition.is_translatable boolean Selectable in the Payload builder
metafield.definition.max_value_length integer | null Selectable in the Payload builder
metafield.definition.max_list_items integer | null Selectable in the Payload builder
metafield.definition.sort_order integer Selectable in the Payload builder
metafield.definition.app_id string | null Selectable in the Payload builder
metafield.definition.app_access string Selectable in the Payload builder
metafield.definition.merchant_access string Selectable in the Payload builder
metafield.definition.created_at string Selectable in the Payload builder
metafield.definition.updated_at string Selectable in the Payload builder
metafield.value string Selectable in the Payload builder
metafield.display_value string | null Selectable in the Payload builder
metafield.display_value_map object Selectable in the Payload builder
metafield.created_at string Selectable in the Payload builder
metafield.updated_at string Selectable in the Payload builder

Blog category metafield value updated

EVENT blog_category_metafields/update App scope: read_blog Staff permission: blog:write

Fired when a blog category metafield value changes.

Possible changed_fields values

The changed_fields array names exactly which of these changed in this event — use it to skip processing updates your integration doesn't care about.

value

Payload fields

Field Type Description
blog_category object Always present
blog_category.id string Always present
blog_category.name string Selectable in the Payload builder
blog_category.slug string Selectable in the Payload builder
previous object Always present
previous.definition object | null Selectable in the Payload builder
previous.definition.id string Selectable in the Payload builder
previous.definition.owner_type string Selectable in the Payload builder
previous.definition.namespace string Selectable in the Payload builder
previous.definition.key string Selectable in the Payload builder
previous.definition.name string Selectable in the Payload builder
previous.definition.description string | null Selectable in the Payload builder
previous.definition.type string Selectable in the Payload builder
previous.definition.is_translatable boolean Selectable in the Payload builder
previous.definition.max_value_length integer | null Selectable in the Payload builder
previous.definition.max_list_items integer | null Selectable in the Payload builder
previous.definition.sort_order integer Selectable in the Payload builder
previous.definition.app_id string | null Selectable in the Payload builder
previous.definition.app_access string Selectable in the Payload builder
previous.definition.merchant_access string Selectable in the Payload builder
previous.definition.created_at string Selectable in the Payload builder
previous.definition.updated_at string Selectable in the Payload builder
previous.value string Selectable in the Payload builder
previous.display_value string | null Selectable in the Payload builder
previous.display_value_map object Selectable in the Payload builder
previous.created_at string Selectable in the Payload builder
previous.updated_at string Selectable in the Payload builder
current object Always present
current.definition object | null Selectable in the Payload builder
current.definition.id string Selectable in the Payload builder
current.definition.owner_type string Selectable in the Payload builder
current.definition.namespace string Selectable in the Payload builder
current.definition.key string Selectable in the Payload builder
current.definition.name string Selectable in the Payload builder
current.definition.description string | null Selectable in the Payload builder
current.definition.type string Selectable in the Payload builder
current.definition.is_translatable boolean Selectable in the Payload builder
current.definition.max_value_length integer | null Selectable in the Payload builder
current.definition.max_list_items integer | null Selectable in the Payload builder
current.definition.sort_order integer Selectable in the Payload builder
current.definition.app_id string | null Selectable in the Payload builder
current.definition.app_access string Selectable in the Payload builder
current.definition.merchant_access string Selectable in the Payload builder
current.definition.created_at string Selectable in the Payload builder
current.definition.updated_at string Selectable in the Payload builder
current.value string Selectable in the Payload builder
current.display_value string | null Selectable in the Payload builder
current.display_value_map object Selectable in the Payload builder
current.created_at string Selectable in the Payload builder
current.updated_at string Selectable in the Payload builder
changed_fields array Selectable in the Payload builder

Blog category metafield value deleted

EVENT blog_category_metafields/delete App scope: read_blog Staff permission: blog:write

Fired when a blog category metafield value is deleted, including when its blog category is deleted.

Payload fields

Field Type Description
blog_category object Always present
blog_category.id string Always present
blog_category.name string Selectable in the Payload builder
blog_category.slug string Selectable in the Payload builder
metafield object Always present
metafield.definition object | null Selectable in the Payload builder
metafield.definition.id string Selectable in the Payload builder
metafield.definition.owner_type string Selectable in the Payload builder
metafield.definition.namespace string Selectable in the Payload builder
metafield.definition.key string Selectable in the Payload builder
metafield.definition.name string Selectable in the Payload builder
metafield.definition.description string | null Selectable in the Payload builder
metafield.definition.type string Selectable in the Payload builder
metafield.definition.is_translatable boolean Selectable in the Payload builder
metafield.definition.max_value_length integer | null Selectable in the Payload builder
metafield.definition.max_list_items integer | null Selectable in the Payload builder
metafield.definition.sort_order integer Selectable in the Payload builder
metafield.definition.app_id string | null Selectable in the Payload builder
metafield.definition.app_access string Selectable in the Payload builder
metafield.definition.merchant_access string Selectable in the Payload builder
metafield.definition.created_at string Selectable in the Payload builder
metafield.definition.updated_at string Selectable in the Payload builder
metafield.value string Selectable in the Payload builder
metafield.display_value string | null Selectable in the Payload builder
metafield.display_value_map object Selectable in the Payload builder
metafield.created_at string Selectable in the Payload builder
metafield.updated_at string Selectable in the Payload builder