Infer a contract from a data asset
curl --request GET \
--url 'https://api-(organization).gable.ai/v0/data-asset/{id}/infer-contract'
{
"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": "jsmith@example.com",
"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>"
}
UUID of the data asset
Contract was successfully inferred from the given data asset
The response is of type object
.
curl --request GET \
--url 'https://api-(organization).gable.ai/v0/data-asset/{id}/infer-contract'
{
"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": "jsmith@example.com",
"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>"
}