> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# updateCardDefinition

> Changes a card definition. `modifications` replace the saved pending changes; `status: UPDATING` applies them, and a change that needs indexing keeps the card definition `UPDATING` until it's done. A stale `etag` fails with `OptimisticConcurrencyError`.



**mutation** `updateCardDefinition(input: UpdateCardDefinitionInput!): UpdateCardDefinitionPayload!`

## Arguments

**`input`**: `UpdateCardDefinitionInput!` (required)

## Returns

`UpdateCardDefinitionPayload!`

**`cardDefinition`**: `CardDefinition`

---

**`errors`**: `[UpdateCardDefinitionError!]`

## Examples

```graphql Mutation
mutation UpdateCardDefinition($input: UpdateCardDefinitionInput!) {
  updateCardDefinition(input: $input) {
    cardDefinition {
      activationStatus {
        status
        steps {
          __typename
        }
      }
      activePropertySet {
        key
        properties {
          __typename
        }
        propertyIds
      }
      allowsEnrichment
      cardsCount
      createdAt
      createdByUser
    }
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "id": "id"
  }
}
```

```json Response
{
  "data": {
    "updateCardDefinition": {
      "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"
        }
      ]
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.