Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Update Page

Authenticated · x-tenant · Auth rules: @storeos/rbac-catalog Requires a signed-in staff user. Needs the `Pages` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONupdatePage(input: UpdatePageInput!, where: CommonFindDocumentDto!): Boolean!

Authenticated · x-tenant · Auth rules: @storeos/rbac-catalog Requires a signed-in staff user. Needs the Pages update permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

input*
where*

Returns

updatePage*Boolean!
Example Request
mutation UpdatePage($input: UpdatePageInput!, $where: CommonFindDocumentDto!) {  updatePage(input: $input, where: $where)}
Variables
{  "input": {    "content": "string",    "image": {      "external": "string",      "fileAssetId": "1"    }  },  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "updatePage": true  }}