Mutation
mutation ReloadCustomerCardInstance($input: ReloadCustomerCardInstanceInput!) {
reloadCustomerCardInstance(input: $input) {
customerCardInstance {
id
customerId
threadId
customerCardConfig {
id
order
title
key
defaultTimeToLiveSeconds
apiUrl
}
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"customerId": "id",
"customerCardConfigId": "id"
}
}Response
{
"data": {
"reloadCustomerCardInstance": {
"customerCardInstance": {
"id": "id",
"customerId": "id",
"threadId": "id",
"customerCardConfig": {
"id": "id",
"order": 1,
"title": "string",
"key": "string",
"defaultTimeToLiveSeconds": 1,
"apiUrl": "string"
},
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
reloadCustomerCardInstance
Forces a fresh load of a customer card instance, bypassing the cache.
Use this when you know your external data has changed and you want to immediately fetch updated card content from your API URL. The response will be a CustomerCardInstanceLoading; subscribe to customerCardInstanceChanges to receive the loaded or errored result.
MUTATION
reloadCustomerCardInstance(input: ReloadCustomerCardInstanceInput!): ReloadCustomerCardInstanceOutput!Arguments
input
required
Returns
customerCardInstance
The reloaded customer card instance. Currently this will always be a CustomerCardInstanceLoading type.
error
Mutation
mutation ReloadCustomerCardInstance($input: ReloadCustomerCardInstanceInput!) {
reloadCustomerCardInstance(input: $input) {
customerCardInstance {
id
customerId
threadId
customerCardConfig {
id
order
title
key
defaultTimeToLiveSeconds
apiUrl
}
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"customerId": "id",
"customerCardConfigId": "id"
}
}Response
{
"data": {
"reloadCustomerCardInstance": {
"customerCardInstance": {
"id": "id",
"customerId": "id",
"threadId": "id",
"customerCardConfig": {
"id": "id",
"order": 1,
"title": "string",
"key": "string",
"defaultTimeToLiveSeconds": 1,
"apiUrl": "string"
},
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

