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).
createBlog(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?StringReturns
- createBlog
_id*ID!mutation CreateBlog($body: CreateBlogInput!) { createBlog(body: $body) { _id }}{ "body": { "title": "string" }}{ "data": { "createBlog": { "_id": "1" } }}Coupon__remove Demo Products MUTATION
Requires a signed-in staff user. Needs the `Coupon` `delete` permission. Send the `x-tenant` header (the gateway sets it from your API key).
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).