Mutation
mutation UpdateSetting($input: UpdateSettingInput!) {
updateSetting(input: $input) {
setting {
__typename
... on BooleanSetting {
code
booleanValue
scope {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"code": "string",
"scope": {
"scopeType": "USER"
},
"value": {}
}
}Response
{
"data": {
"updateSetting": {
"setting": {
"__typename": "BooleanSetting",
"code": "string",
"booleanValue": true,
"scope": {
"__typename": "SettingScope"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
updateSetting
Create or overwrite a named setting at the given scope. Provide exactly one value field in SettingValueInput (boolean, string, number, or stringArray) that matches the expected type for the setting code. Returns the stored setting on success. To clear a value and revert to the scope hierarchy default, use deleteSetting instead.
MUTATION
updateSetting(input: UpdateSettingInput!): UpdateSettingOutput!Arguments
input
required
Returns
setting
The updated setting.
error
Mutation
mutation UpdateSetting($input: UpdateSettingInput!) {
updateSetting(input: $input) {
setting {
__typename
... on BooleanSetting {
code
booleanValue
scope {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"code": "string",
"scope": {
"scopeType": "USER"
},
"value": {}
}
}Response
{
"data": {
"updateSetting": {
"setting": {
"__typename": "BooleanSetting",
"code": "string",
"booleanValue": true,
"scope": {
"__typename": "SettingScope"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

