Anchor to section titled 'undefined'

shopPolicyUpdate
mutation

Requires write_legal_policies access scope. Also: The user must have access to manage legal policies.

Updates a shop policy.


The properties to use when updating the shop policy.


Was this section helpful?

The shop policy that has been updated.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation shopPolicyUpdate($shopPolicy: ShopPolicyInput!) {
  shopPolicyUpdate(shopPolicy: $shopPolicy) {
    shopPolicy {
      # ShopPolicy fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "shopPolicy": {
    "body": "<your-body>",
    "type": "CONTACT_INFORMATION"
  }
}
input ShopPolicyInput {
  body: String!
  type: ShopPolicyType!
}