Mutation
mutation ActivateCardDefinition($input: ActivateCardDefinitionInput!) {
activateCardDefinition(input: $input) {
cardDefinition {
activationStatus {
status
steps {
__typename
}
}
activePropertySet {
key
properties {
__typename
}
propertyIds
}
allowsEnrichment
cardsCount
createdAt
createdByUser
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"activateCardDefinition": {
"cardDefinition": {
"activationStatus": {
"status": "RUNNING",
"steps": [
{
"__typename": "KeyValuePairOfStringAndWorkflowStep"
}
]
},
"activePropertySet": {
"key": "string",
"properties": [
{
"__typename": "CardPropertyDefinition"
}
],
"propertyIds": [
"string"
]
},
"allowsEnrichment": true,
"cardsCount": "value",
"createdAt": "value",
"createdByUser": "value"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Mutations
activateCardDefinition
Makes an UPDATING card definition ACTIVE: the indexed card properties go live and the pending changes are cleared. The platform does this itself when indexing finishes. Any other status fails with ValidationError.
MUTATION
activateCardDefinition(input: ActivateCardDefinitionInput!): ActivateCardDefinitionPayload!Arguments
input
required
Returns
cardDefinition
errors
Mutation
mutation ActivateCardDefinition($input: ActivateCardDefinitionInput!) {
activateCardDefinition(input: $input) {
cardDefinition {
activationStatus {
status
steps {
__typename
}
}
activePropertySet {
key
properties {
__typename
}
propertyIds
}
allowsEnrichment
cardsCount
createdAt
createdByUser
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"activateCardDefinition": {
"cardDefinition": {
"activationStatus": {
"status": "RUNNING",
"steps": [
{
"__typename": "KeyValuePairOfStringAndWorkflowStep"
}
]
},
"activePropertySet": {
"key": "string",
"properties": [
{
"__typename": "CardPropertyDefinition"
}
],
"propertyIds": [
"string"
]
},
"allowsEnrichment": true,
"cardsCount": "value",
"createdAt": "value",
"createdByUser": "value"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Was this page helpful?