Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Storefront__save Theme Draft

Save the merchant's private theme JSON copy (draft). { 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__saveThemeDraft(input: SaveThemeDraftInput!): Boolean!

Save the merchant's private theme JSON copy (draft). { 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

input*

Returns

storefront__saveThemeDraft*Boolean!
Example Request
mutation Storefront__saveThemeDraft($input: SaveThemeDraftInput!) {  storefront__saveThemeDraft(input: $input)}
Variables
{  "input": {    "documentJson": "string",    "id": "1"  }}
Example Response
{  "data": {    "storefront__saveThemeDraft": true  }}