younifyd
Menu

blogUpdate

Updates an existing blog's configuration and settings. This mutation allows merchants to modify blog properties to keep their content strategy current.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the blogUpdate action (under Blog).
  3. Fill in the fields below, then reference the result from later steps as {{blogupdate.response.data}}.

Query

This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
mutation BlogUpdate($id: ID!, $blog: BlogUpdateInput!) {
  blogUpdate(id: $id, blog: $blog) {
    blog {
      commentPolicy
      createdAt
      feed {
        location
        path
      }
      handle
      id
      tags
      templateSuffix
      title
      updatedAt
    }
    userErrors {
      code
      field
      message
    }
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

idstringrequired

The ID of the blog to be updated.

blogobjectrequired

The properties of the blog to be updated.

handlestring
templateSuffixstring
metafieldsarray<object>5 fields
commentPolicystring

One ofAUTO_PUBLISHEDCLOSEDMODERATED

titlestring
redirectNewHandleboolean
redirectArticlesboolean
json
{
  "id": "string",
  "blog": {
    "handle": "string",
    "templateSuffix": "string",
    "metafields": [
      {
        "id": "string",
        "namespace": "string",
        "key": "string",
        "value": "string",
        "type": "string"
      }
    ],
    "commentPolicy": "AUTO_PUBLISHED",
    "title": "string",
    "redirectNewHandle": false,
    "redirectArticles": false
  }
}

Response

Read the result with {{blogupdate.response.data.data.blogUpdate}}. If the API returns errors, the step fails and they are at {{blogupdate.response.data.errors}}.

blogobject
commentPolicystring

One ofAUTO_PUBLISHEDCLOSEDMODERATED

createdAtstring
feedobject2 fields
handlestring
idstring
tagsarray<object>
templateSuffixstring
titlestring
updatedAtstring
userErrorsarray<object>
codeobject
fieldobject
messageobject

Need more? See the Shopify guide for connection setup and behaviour shared by every action.

Was this page helpful?