# Relink Card Contract to Another Account Contract
source: https://developer.mastercard.com/mastercard-processing-core/documentation/use-cases/data-management/relink-card-con-another-acc-con/index.md

## Overview {#overview}

The use case describes how you associate a specified card contract with a different account contract in the CMS.

## Sequence diagram {#sequence-diagram}

![Sequence diagram](https://static.developer.mastercard.com/content/mastercard-processing-core/uploads/relink-card-con-another-acc-con.png)

### Explanation {#explanation}

1. The server sends a `PUT` request to the `/cards/{card_contract_id}/main-contract` endpoint. In the request body, you must pass the required field `accountContractId` to which the `card_contract_id` will be relinked in the CMS.
2. The API returns the HTTP status `204`.

Refer to [Sandbox testing](https://developer.mastercard.com/mastercard-processing-core/documentation/sandbox-testing/data-management/relink-card-con-to-acct-con/index.md) for information on how to execute the use case in the Sandbox environment.

## Endpoint {#endpoint}


API Reference: `PUT /cards/{card_contract_id}/main-contract`

