POST
/
v0
/
data-assets
cURL
curl --request POST \
  --url 'https://api-(organization).gable.ai/v0/data-assets' \
  --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 · object[]

The body is of type object[].

Response

200
application/json

Assets created or updated successfully

The response is of type object[].