# Update Card Contract Data source: https://developer.mastercard.com/mastercard-processing-core/documentation/sandbox-testing/data-management/update-card-contract-data/index.md ## Test case -- Success {#test-case--success} This test case describes updating data for a specified card contract in the CMS. Note: The field that you do not want to change must not be in the request. The field sent in the request with a null value explicitly will be cleared in the CMS. **Sample request**
`PATCH /cards/70001/ -H 'If-Match: "7fedf39c3c2952a62821de4b480d1d6f"'` ```JSON { "cbsNumber": " CBS83863371812033", "cardContractName": "Card contract name" } ``` **Sample response** `204` `ETag: "7fedf39c3c2952a62821de4b480d1d6f"` ## Test case -- Fail -- Duplicated cbsNumber {#test-case--fail--duplicated-cbsnumber} This test case describes an attempt to update the data for a specified card contract with the `cbsNumber`, which already exists in the CMS. For this test case, use the following information in the request: | Field | Available value | |-------------|---------------------| | `cbsNumber` | CBS1950395609519670 | **Sample request** `PATCH /cards/10102 -H 'If-Match: "5c7d022061b0874200bfed735c6b9308"'` ```JSON { "cbsNumber": "CBS1950395609519670", "cardContractName": "Card contract name" } ``` **Sample response** `400` ```JSON { "Errors": { "Error": [ { "Source": "MASTERCARD PROCESSING", "ReasonCode": "DUPLICATED_CBS_NUMBER", "Description": "Duplicated CBS number.", "Recoverable": false } ] } } ```