Mutation
mutation CreateCardDefinition($input: CreateCardDefinitionInput!) {
createCardDefinition(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": {
"description": "string",
"displayOptions": [
{
"key": "string"
}
],
"id": "string",
"modifications": [
{
"action": "ADD",
"id": "string"
}
],
"name": "string",
"tags": [
"string"
]
}
}Response
{
"data": {
"createCardDefinition": {
"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
createCardDefinition
Creates a card definition as a DRAFT, with its card properties as pending changes. Nothing is indexed yet: updateCardDefinition with status: UPDATING applies the changes, and the card definition turns ACTIVE when indexing finishes. An id that’s taken, by an archived card definition too, fails with ConflictError.
MUTATION
createCardDefinition(input: CreateCardDefinitionInput!): CreateCardDefinitionPayload!Arguments
input
required
Returns
cardDefinition
errors
Mutation
mutation CreateCardDefinition($input: CreateCardDefinitionInput!) {
createCardDefinition(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": {
"description": "string",
"displayOptions": [
{
"key": "string"
}
],
"id": "string",
"modifications": [
{
"action": "ADD",
"id": "string"
}
],
"name": "string",
"tags": [
"string"
]
}
}Response
{
"data": {
"createCardDefinition": {
"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?