Mutation
mutation UpdateCustomerCardConfig($input: UpdateCustomerCardConfigInput!) {
updateCustomerCardConfig(input: $input) {
customerCardConfig {
id
order
title
key
defaultTimeToLiveSeconds
apiUrl
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"customerCardConfigId": "id"
}
}Response
{
"data": {
"updateCustomerCardConfig": {
"customerCardConfig": {
"id": "id",
"order": 1,
"title": "string",
"key": "string",
"defaultTimeToLiveSeconds": 1,
"apiUrl": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
updateCustomerCardConfig
Partially updates a customer card config. Only fields that are provided in the input will be changed; omitted fields are left unchanged.
Updating apiUrl or apiHeaders requires the customerCardConfigApiDetails:edit permission. Changing the key must still result in a unique key within the workspace.
MUTATION
updateCustomerCardConfig(input: UpdateCustomerCardConfigInput!): UpdateCustomerCardConfigOutput!Arguments
input
required
Returns
customerCardConfig
The updated customer card config.
error
Mutation
mutation UpdateCustomerCardConfig($input: UpdateCustomerCardConfigInput!) {
updateCustomerCardConfig(input: $input) {
customerCardConfig {
id
order
title
key
defaultTimeToLiveSeconds
apiUrl
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"customerCardConfigId": "id"
}
}Response
{
"data": {
"updateCustomerCardConfig": {
"customerCardConfig": {
"id": "id",
"order": 1,
"title": "string",
"key": "string",
"defaultTimeToLiveSeconds": 1,
"apiUrl": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

