Mutation
mutation RestoreCardDefinition($input: RestoreCardDefinitionInput!) {
restoreCardDefinition(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": {
"cardDefinitionId": "id"
}
}Response
{
"data": {
"restoreCardDefinition": {
"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
restoreCardDefinition
Restores an archived card definition as a DRAFT, with its last live card properties as pending changes. Apply them with updateCardDefinition and status: UPDATING. An ACTIVE or UPDATING card definition fails with ValidationError.
MUTATION
restoreCardDefinition(input: RestoreCardDefinitionInput!): RestoreCardDefinitionPayload!Arguments
input
required
Returns
cardDefinition
errors
Mutation
mutation RestoreCardDefinition($input: RestoreCardDefinitionInput!) {
restoreCardDefinition(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": {
"cardDefinitionId": "id"
}
}Response
{
"data": {
"restoreCardDefinition": {
"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?