Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Update Blog

Authenticated · x-tenant · Auth rules: @storeos/rbac-catalog Requires a signed-in staff user. Needs the `Blogs` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONupdateBlog(input: UpdateBlogInput!, where: CommonFindDocumentDto!): Boolean!

Authenticated · x-tenant · Auth rules: @storeos/rbac-catalog Requires a signed-in staff user. Needs the Blogs update permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

input*
where*

Returns

updateBlog*Boolean!
Example Request
mutation UpdateBlog($input: UpdateBlogInput!, $where: CommonFindDocumentDto!) {  updateBlog(input: $input, where: $where)}
Variables
{  "input": {    "author": {      "name": "string"    },    "categories": [      "string"    ]  },  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "updateBlog": true  }}