POST
/
v0
/
data-asset
cURL
curl --request POST \
  --url 'https://api-(organization).gable.ai/v0/data-asset' \
  --header 'Content-Type: application/json' \
  --data '{
  "dataAssetResourceName": "<string>",
  "domain": "<string>",
  "path": "<string>",
  "type": "postgres",
  "description": "<string>",
  "rawSchema": "<string>",
  "fields": [
    {
      "name": "<string>",
      "description": "<string>",
      "order": 123,
      "nativeDataType": "<string>",
      "type": {},
      "parentFieldId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "changeSummary": "<string>",
      "changeDescription": "<string>"
    }
  ],
  "prLink": "https://github.com/fakeorg/fakerepo/pull/123"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "versionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "dataAssetResourceName": "<string>",
  "newVersionCreated": true
}

Body

application/json

Data Asset

The body is of type object.

Response

200
application/json

Data Asset ID

The response is of type object.