Skip to main content

CreateCustomerCardConfigInput

Input type to create a new customer card config.

By default new customer cards will have an ordering of 100000 (to place them at the bottom).

input CreateCustomerCardConfigInput {
title: String!
key: String!
defaultTimeToLiveSeconds: Int!
apiUrl: String!
apiHeaders: [CustomerCardConfigApiHeaderInput!]!
}

Fields

CreateCustomerCardConfigInput.title ● String! non-null scalar

The title of the card (max length: 500 characters).

CreateCustomerCardConfigInput.key ● String! non-null scalar

The key of the card (must be unique in a workspace, max length: 500 characters, must match regex: [a-zA-Z0-9_-]+).

CreateCustomerCardConfigInput.defaultTimeToLiveSeconds ● Int! non-null scalar

The default time the card should be cached for if no TTL is provided in the card response. (minimum: 15 seconds, maximum: 1 year or 31,536,000 seconds).

CreateCustomerCardConfigInput.apiUrl ● String! non-null scalar

The URL from which this card should be loaded (must start with https:// and be a valid URL, max length: 600 characters).

CreateCustomerCardConfigInput.apiHeaders ● [CustomerCardConfigApiHeaderInput!]! non-null input

An array of headers name-value pairs (maximum length of array: 20).

Member of

createCustomerCardConfig mutation