Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Create Blog Author

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).

MUTATIONcreateBlogAuthor(body: CreateBlogAuthorInput!, tenant: String): CommonMutationResponse!

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).

Arguments

body*
tenant?String

Returns

  1. createBlogAuthor
_id*ID!
Example Request
mutation CreateBlogAuthor($body: CreateBlogAuthorInput!) {  createBlogAuthor(body: $body) {    _id  }}
Variables
{  "body": {    "name": "string"  }}
Example Response
{  "data": {    "createBlogAuthor": {      "_id": "1"    }  }}