API version 2021-01 Release candidate
API version 2020-10 Latest
API version 2020-07
API version 2020-04
API version 2020-01
API version 2019-10 Unsupported
API version 2019-07 Unsupported

shopPolicyUpdate mutation

Version 2021-01 (Release candidate)

Updates a shop policy.

Required access

write_legal_policies access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

shopPolicy ( ShopPolicyInput! ) required

The properties to use when updating the shop policy.

ShopPolicyInput fields

body (String!) Required

Policy text, maximum size of 512kb.

type (ShopPolicyType!) Required

The shop policy type.

Return fields

shopPolicy (ShopPolicy)

The shop policy that has been updated.

userErrors ([ShopPolicyUserError!]!)

List of errors that occurred executing the mutation.

Version 2020-10 (Latest)

Updates a shop policy.

Required access

write_legal_policies access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

shopPolicy ( ShopPolicyInput! ) required

The properties to use when updating the shop policy.

ShopPolicyInput fields

body (String!) Required

Policy text, maximum size of 512kb.

type (ShopPolicyType!) Required

The shop policy type.

Return fields

shopPolicy (ShopPolicy)

The shop policy that has been updated.

userErrors ([ShopPolicyUserError!]!)

List of errors that occurred executing the mutation.