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).
createBlogCategory(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?StringReturns
- createBlogCategory
_id*ID!mutation CreateBlogCategory($body: CreateBlogCategoryInput!) { createBlogCategory(body: $body) { _id }}{ "body": { "name": "string" }}{ "data": { "createBlogCategory": { "_id": "1" } }}Create Blog Author MUTATION
This mutation is used to create a new blog author. { 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).
Create Coupon MUTATION
This mutation is used to create a new coupon. { permissions: ['*', 'create'], collectionName: 'Coupon', } Requires a signed-in staff user. Needs the `Coupon` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).