Skip to main content
POST
/
v0
/
contract
/
bulk-check-compliance
Check multiple assets for contract compliance
curl --request POST \
  --url https://{hostname}.gable.ai/v0/contract/bulk-check-compliance \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "contract": {
    "contractSchema": [
      {
        "type": "struct",
        "name": "<string>",
        "fields": [
          {
            "type": "struct",
            "name": "<string>",
            "fields": "<array>",
            "alias": "<string>",
            "doc": "<string>",
            "logical": "<string>",
            "optional": true
          }
        ],
        "alias": "<string>",
        "doc": "<string>",
        "logical": "<string>",
        "optional": true,
        "constraints": {}
      }
    ],
    "dataAssetResourceNames": [
      "<string>"
    ]
  }
}
'
{
  "results": {}
}

Authorizations

X-API-KEY
string
header
required

Body

application/json

Contract with multiple data assets to check

contract
object
required

Response

Compliance results for each data asset

results
object
required

Map of data asset resource names to their compliance check results