Create a contract
curl --request POST \
--url 'https://api-(organization).gable.ai/v0/contract' \
--header 'Content-Type: application/json' \
--data '{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parentRowId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": "<string>",
"status": "ACTIVE",
"gitHash": "<string>",
"gitRepo": "<string>",
"gitUser": "<string>",
"reviewers": [
"<string>"
],
"filePath": "<string>",
"mergedAt": "2023-11-07T05:31:56Z",
"enforcementLevel": "RECORD",
"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": {}
}
]
},
"lastEditorUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastEditorEmail": "<string>",
"lastEditorFirstName": "<string>",
"lastEditorLastName": "<string>",
"lastEditorGithubHandle": "<string>"
}'
{
"message": "<string>",
"contractIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
Contract
The metadata and schema for the Contract that is sent to Gable to be validated and uploaded. It may or may not contain a valid contract.
Contracts
The response is of type object
.
curl --request POST \
--url 'https://api-(organization).gable.ai/v0/contract' \
--header 'Content-Type: application/json' \
--data '{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parentRowId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": "<string>",
"status": "ACTIVE",
"gitHash": "<string>",
"gitRepo": "<string>",
"gitUser": "<string>",
"reviewers": [
"<string>"
],
"filePath": "<string>",
"mergedAt": "2023-11-07T05:31:56Z",
"enforcementLevel": "RECORD",
"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": {}
}
]
},
"lastEditorUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastEditorEmail": "<string>",
"lastEditorFirstName": "<string>",
"lastEditorLastName": "<string>",
"lastEditorGithubHandle": "<string>"
}'
{
"message": "<string>",
"contractIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}