Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Create Blog

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

MUTATIONcreateBlog(body: CreateBlogInput!, tenant: String): CommonMutationResponse!

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

Arguments

body*
tenant?String

Returns

  1. createBlog
_id*ID!
Example Request
mutation CreateBlog($body: CreateBlogInput!) {  createBlog(body: $body) {    _id  }}
Variables
{  "body": {    "title": "string"  }}
Example Response
{  "data": {    "createBlog": {      "_id": "1"    }  }}