Skip to main content
GET
/
v0
/
contract
/
{id}
/
violation-status
Get the violation status of a contract by id
curl --request GET \
  --url https://{hostname}.gable.ai/v0/contract/{id}/violation-status \
  --header 'X-API-KEY: <api-key>'
{
  "violation_state": "violation",
  "violations": [
    {
      "message": "<string>",
      "field": "<string>",
      "fieldType": "<string>",
      "violationType": "MISSING_REQUIRED_PROPERTY",
      "expected": "<string>",
      "actual": "<string>"
    }
  ],
  "checkedAt": "2023-11-07T05:31:56Z"
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string<uuid>
required

Response

  • Option 1
  • Option 2
violation_state
enum<string>
required
Available options:
violation,
no_violation
violations
object[]
checkedAt
string<date-time>