# Activate a Card
source: https://developer.mastercard.com/mastercard-processing-core/documentation/sandbox-testing/card-lifecycle-management/activate-card/index.md

## Test case -- Success {#test-case--success}

This test case describes activating a specified card contract in the CMS.

**Sample request**

`PUT /cards/70001/active`

```JSON
{
  "activated": true
}
```

**Sample response**

`204`

## Test case -- Fail -- Activate before personalization process {#test-case--fail--activate-before-personalization-process}

This test case describes an attempt to activate a specified card contract before the personalization process is completed.

For this test case, use the following information in the request:

|   Path parameter   | Available value |
|--------------------|-----------------|
| `card_contract_id` | 10102           |

**Sample request**

`PUT /cards/10102/active`

```JSON
{
  "activated": true
}
```

**Sample response**

`400`

```JSON
{
    "Errors": {
        "Error": [
            {
                "Source": "MASTERCARD PROCESSING",
                "ReasonCode": "PLASTIC_IS_MISSING",
                "Description": "Plastic is missing for card contract with id 10102.",
                "Recoverable": false
            }
        ]
    }
}
```

