POST
/
v0
/
contract
/
check-compliance
cURL
curl --request POST \
  --url 'https://api-(organization).gable.ai/v0/contract/check-compliance' \
  --header 'Content-Type: application/json' \
  --data '{
  "contract": {
    "contractSchema": [
      {
        "type": "struct",
        "name": "<string>",
        "fields": [
          {
            "type": "struct",
            "name": "<string>",
            "fields": [
              "<any>"
            ],
            "alias": "<string>",
            "doc": "<string>",
            "logical": "<string>",
            "optional": true
          }
        ],
        "alias": "<string>",
        "doc": "<string>",
        "logical": "<string>",
        "optional": true,
        "constraints": {}
      }
    ],
    "dataAssetResourceName": "<string>"
  }
}'
{
  "violations": [
    {
      "message": "<string>",
      "field": "<string>",
      "fieldType": "<string>",
      "violationType": "MISSING_REQUIRED_PROPERTY",
      "expected": "<string>",
      "actual": "<string>"
    }
  ]
}

Body

application/json

Contract to check

The body is of type object.

Response

200
application/json

Data Asset ID

The response is of type object.