Infer a contract from a data asset
cURL
curl --request GET \ --url https://{hostname}.gable.ai/v0/data-asset/{id}/infer-contract \ --header 'X-API-KEY: <api-key>'
{ "contractId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "version": "<string>", "status": "ACTIVE", "gitHash": "<string>", "gitRepo": "<string>", "gitUser": "<string>", "fileUri": "<string>", "reviewers": [ "<string>" ], "mergedAt": "2023-11-07T05:31:56Z", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "contractSpec": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "dataAssetResourceName": "<string>", "dataAssetResourceNameList": [ "<string>" ], "doc": "<string>", "name": "<string>", "namespace": "<string>", "owner": "[email protected]", "restrictPii": true, "schema": [ { "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": {} } ] }, "contractSpecRaw": "<string>" }
Show child attributes
ACTIVE
DEPRECATED
40