Ostorya dev docs

Admin API/Common objects/Mutations

policyPageUpdate

mutationOstorya extension

Edits one policy page: title, text (one paragraph per line) and published.

Returns JSON!

mutation PolicyPageUpdate($handle: String!, $published: Boolean!, $text: String!, $title: String!) {
  policyPageUpdate(handle: $handle, published: $published, text: $text, title: $title)
}

# Variables
{
  "handle": "",
  "published": true,
  "text": "",
  "title": ""
}

Arguments

handleString!required
publishedBoolean!required
textString!required
titleString!required