Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Storefront__publish Theme

Copy the draft document to the published document. { permissions: ['*', 'update'], collectionName: 'storefront__TenantThemeMap' } Requires a signed-in staff user. Needs the `storefront__TenantThemeMap` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONstorefront__publishTheme(id: ID!): Boolean!

Copy the draft document to the published document. { permissions: ['*', 'update'], collectionName: 'storefront__TenantThemeMap' } Requires a signed-in staff user. Needs the storefront__TenantThemeMap update permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

id*ID!

Returns

storefront__publishTheme*Boolean!
Example Request
mutation Storefront__publishTheme($id: ID!) {  storefront__publishTheme(id: $id)}
Variables
{  "id": "1"}
Example Response
{  "data": {    "storefront__publishTheme": true  }}