Update Contract
PUT /api/v1/conformance-contracts/:id
Changes must_match or enforcement_mode. The integration and field can't change.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | number | Contract id |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
must_match | boolean | No | The app's copy must equal golden |
enforcement_mode | string | No | auto or ticket |
Example Request
curl -X PUT "https://mdm.finopsbricks.com/api/v1/conformance-contracts/3" \
-H "api-key: $MDM_API_KEY" \
-H "api-secret: $MDM_API_SECRET" \
-H "Content-Type: application/json" \
-d '{
"enforcement_mode": "auto"
}'
Response
200 OK
{
"data": {
"id": 3,
"integration": 5,
"object": 1,
"field": 12,
"field_key": "bank_ifsc",
"must_match": true,
"enforcement_mode": "auto",
"created_at": "2026-11-26T07:20:08.000Z",
"updated_at": "2026-11-26T07:20:08.000Z"
}
}
Errors
| Status | Code | When |
|---|---|---|
| 400 | VALIDATION_ERROR | enforcement_mode isn't allowed |
| 401 | UNAUTHORIZED | Missing, wrong or expired API credentials |
| 403 | FORBIDDEN | The key lacks conformance:edit permission |
| 404 | NOT_FOUND | No such contract in your organization |
See Errors for the envelope.
Using an AI agent? Give it the raw Markdown of this page, or the docs index.