> ## 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.

# 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`**: `ActivateCardDefinitionInput!` (required)

## Returns

`ActivateCardDefinitionPayload!`

**`cardDefinition`**: `CardDefinition`

---

**`errors`**: `[ActivateCardDefinitionError!]`

## Examples

```graphql 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
      }
    }
  }
}
```

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

```json 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"
        }
      ]
    }
  }
}
```


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