Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Create Blog Category

This mutation is used to create a new blog category. { permissions: ['*', 'create'], collectionName: 'Blogs', } Requires a signed-in staff user. Needs the `Blogs` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONcreateBlogCategory(body: CreateBlogCategoryInput!, tenant: String): CommonMutationResponse!

This mutation is used to create a new blog category. { permissions: ['*', 'create'], collectionName: 'Blogs', } 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. createBlogCategory
_id*ID!
Example Request
mutation CreateBlogCategory($body: CreateBlogCategoryInput!) {  createBlogCategory(body: $body) {    _id  }}
Variables
{  "body": {    "name": "string"  }}
Example Response
{  "data": {    "createBlogCategory": {      "_id": "1"    }  }}