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
- Add a step and choose the Shopify connector.
- Pick the blogUpdate action (under Blog).
- 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.
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.
{
"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}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?