Mutation
mutation CreateCustomerCardConfig($input: CreateCustomerCardConfigInput!) {
createCustomerCardConfig(input: $input) {
customerCardConfig {
id
order
title
key
defaultTimeToLiveSeconds
apiUrl
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"title": "string",
"key": "string",
"defaultTimeToLiveSeconds": 1,
"apiUrl": "string",
"apiHeaders": [
{
"name": "string",
"value": "string"
}
]
}
}Response
{
"data": {
"createCustomerCardConfig": {
"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
createCustomerCardConfig
Creates a new customer card config. New configs are placed at the bottom of the list (order 100000) by default.
A maximum of 25 card configs can be created per workspace. Returns a too_many_customer_card_configs error if the limit is reached. The key must be unique within the workspace and is used in the request payload sent to your API URL.
MUTATION
createCustomerCardConfig(input: CreateCustomerCardConfigInput!): CreateCustomerCardConfigOutput!Arguments
input
required
Returns
customerCardConfig
The created customer card config.
error
Mutation
mutation CreateCustomerCardConfig($input: CreateCustomerCardConfigInput!) {
createCustomerCardConfig(input: $input) {
customerCardConfig {
id
order
title
key
defaultTimeToLiveSeconds
apiUrl
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"title": "string",
"key": "string",
"defaultTimeToLiveSeconds": 1,
"apiUrl": "string",
"apiHeaders": [
{
"name": "string",
"value": "string"
}
]
}
}Response
{
"data": {
"createCustomerCardConfig": {
"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?

