Blog Settings

Read, update, and subscribe to the store's blog comment settings through the Store API.

Blog settings control who can submit comments and whether new comments require moderation. Reads require read_blog; writes require write_blog. comments_mode is disabled, all, or registered.

Updates preserve omitted fields; a setting cannot be set to null. At least one setting must be supplied. An update that changes nothing keeps updated_at, emits no webhook and returns BLOG_SETTINGS_UNCHANGED. Unknown or wrongly typed fields are rejected with STORE_API_BODY_PROPERTY_UNKNOWN or STORE_API_BODY_PROPERTY_INVALID. Disabling comments hides existing comments and sets public counts to zero without deleting records. Re-enabling comments restores their visibility according to their moderation status. These endpoints configure comments; they do not create shopper comments.

Endpoints#

Get blog settings

GET read_blog

Get blog comment settings.

Returns the supported modes, the store's current mode and moderation choice, and its blocked words: a comment holding one of comment_blocked_words (or, while comment_starter_words is true, of the built-in comment_starter_words_list) waits for approval even with moderation off. Words match whole and case-insensitively; a phrase matches its words in order. comment_blocked_words_max and comment_blocked_word_max_length are the most words, and the longest one, the list accepts. feed_urls are the blog's RSS and Atom feeds on the primary domain (the 50 newest published posts with full content); null while the store has no primary domain.

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.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 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 blog settings

PUT write_blog

Update blog comment settings.

This is an atomic patch. Omitted fields stay unchanged; a field cannot be set to null. Disabling comments hides existing comments and reports zero counts without deleting them. A request that changes nothing sends no webhook, writes no audit record, keeps updated_at and answers BLOG_SETTINGS_UNCHANGED.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
comments_mode string

Who may comment: disabled, all, or registered.

Example: registered
comments_moderation boolean

Whether new comments wait for merchant approval.

Example: true
comment_blocked_words array<string>

Words and phrases that hold a comment for approval even with moderation off. Replaces the list; send [] to clear it. Up to 200 entries of up to 50 characters; blanks and repeats are dropped.

Example: ["free shipping code","dm me"]
comment_starter_words boolean

Whether the built-in list of common spam words (comment_starter_words_list) also holds comments for approval.

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.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The request body is not a JSON object.

  • 400 BLOG_SETTINGS_NO_FIELDS_TO_UPDATE

    No supported settings field was supplied.

  • 400 BLOG_COMMENTS_MODE_INVALID

    Comments mode is not disabled, all, or registered.

  • 400 BLOG_COMMENT_BLOCKED_WORDS_LIMIT

    comment_blocked_words has more than 200 entries or one longer than 50 characters.

  • 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.

Webhook events#

Subscribe when an integration mirrors comment availability or moderation behavior. The settings update and its event commit together.

Blog settings updated

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

Fired when blog comment settings change.

Payload fields

Field Type Description
settings object Always present
settings.comments_mode string Always present
settings.comments_moderation boolean Selectable in the Payload builder
settings.comment_blocked_words array Selectable in the Payload builder
settings.comment_starter_words boolean Selectable in the Payload builder
settings.updated_at string Always present