Mutation
mutation ReorderCustomerCardConfigs($input: ReorderCustomerCardConfigsInput!) {
reorderCustomerCardConfigs(input: $input) {
customerCardConfigs {
id
order
title
key
defaultTimeToLiveSeconds
apiUrl
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"customerCardConfigOrders": [
{
"customerCardConfigId": "id",
"order": 1
}
]
}
}Response
{
"data": {
"reorderCustomerCardConfigs": {
"customerCardConfigs": [
{
"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
reorderCustomerCardConfigs
Updates the display order of one or more customer card configs.
Only the configs listed in the input are updated; other configs keep their current order. This allows you to swap two configs or move a single card without specifying the full list. Duplicate order values are permitted and ties are broken by ID.
MUTATION
reorderCustomerCardConfigs(input: ReorderCustomerCardConfigsInput!): ReorderCustomerCardConfigsOutput!Arguments
input
required
Returns
customerCardConfigs
The reordered customer card configs.
error
Mutation
mutation ReorderCustomerCardConfigs($input: ReorderCustomerCardConfigsInput!) {
reorderCustomerCardConfigs(input: $input) {
customerCardConfigs {
id
order
title
key
defaultTimeToLiveSeconds
apiUrl
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"customerCardConfigOrders": [
{
"customerCardConfigId": "id",
"order": 1
}
]
}
}Response
{
"data": {
"reorderCustomerCardConfigs": {
"customerCardConfigs": [
{
"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?

