Enforce

POST /api/v1/conformance/states/:id/enforce

Fixes a failed state the way its contract says. auto: pushes the golden value and verifies it, and the state turns conformant. ticket: opens a ticket, and the state waits as pending until you confirm the fix.

CLI: fob-mdm conformance enforce

Path Parameters

ParameterTypeDescription
idnumberState id

Example Request

curl -X POST "https://mdm.finopsbricks.com/api/v1/conformance/states/41/enforce" \
  -H "api-key: $MDM_API_KEY" \
  -H "api-secret: $MDM_API_SECRET"

Response

200 OK

{
  "data": {
    "state": {
      "id": 41,
      "integration": 5,
      "record": 100,
      "field": 12,
      "field_key": "bank_ifsc",
      "status": "conformant",
      "last_checked_at": "2026-11-26T07:20:08.000Z"
    },
    "events": [
      {
        "id": 81,
        "integration": 5,
        "record": 100,
        "field": 12,
        "field_key": "bank_ifsc",
        "action": "pushed",
        "ref": null,
        "at": "2026-11-26T07:20:08.000Z"
      },
      {
        "id": 82,
        "integration": 5,
        "record": 100,
        "field": 12,
        "field_key": "bank_ifsc",
        "action": "verified",
        "ref": null,
        "at": "2026-11-26T07:20:08.000Z"
      }
    ]
  }
}

Errors

StatusCodeWhen
400VALIDATION_ERRORThe state isn't failed (details.status says what it is), or no contract covers it any more
401UNAUTHORIZEDMissing, wrong or expired API credentials
403FORBIDDENThe key lacks conformance:edit permission
404NOT_FOUNDNo such state in your organization

See Errors for the envelope.

Using an AI agent? Give it the raw Markdown of this page, or the docs index.