Skip to main content
POST
/
catalog
/
{project}
/
assets
Create a new data asset in a project
import requests

url = "http://api/apollo/catalog/{project}/assets"

payload = {
    "projectId": "<string>",
    "name": "<string>",
    "assetType": "project",
    "description": "<string>",
    "sourceUri": "<string>",
    "owner": "<string>",
    "ownerEmail": "<string>",
    "tags": ["<string>"],
    "format": "<string>",
    "options": ["<string>"],
    "filters": ["<string>"],
    "sql": "<string>",
    "cacheOnLoad": False,
    "cacheStrategy": {
        "timeToLive": 123,
        "refreshFrequency": 123,
        "autoRefresh": False
    },
    "dependsOn": ["<string>"],
    "createdOn": "2023-11-07T05:31:56Z",
    "additionalSettings": {},
    "id": "<string>",
    "updatedOn": "<string>",
    "version": 123
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "projectId": "<string>",
  "name": "<string>",
  "assetType": "project",
  "description": "<string>",
  "sourceUri": "<string>",
  "owner": "<string>",
  "ownerEmail": "<string>",
  "tags": [
    "<string>"
  ],
  "format": "<string>",
  "options": [
    "<string>"
  ],
  "filters": [
    "<string>"
  ],
  "sql": "<string>",
  "cacheOnLoad": false,
  "cacheStrategy": {
    "timeToLive": 123,
    "refreshFrequency": 123,
    "autoRefresh": false
  },
  "dependsOn": [
    "<string>"
  ],
  "createdOn": "2023-11-07T05:31:56Z",
  "additionalSettings": {},
  "id": "<string>",
  "updatedOn": "<string>",
  "version": 123
}

Path Parameters

project
string
required

The name of a project

Body

application/json

JSON-formatted configuration values

projectId
string
name
string
assetType
enum<string>
Available options:
project,
table,
view,
field,
udf,
metric
description
string
sourceUri
string
owner
string
ownerEmail
string
tags
string[]
format
string
options
string[]
filters
string[]
sql
string
cacheOnLoad
boolean
default:false
cacheStrategy
object
dependsOn
string[]
createdOn
string<date-time>
additionalSettings
object
id
string
updatedOn
string
version
integer

Response

200 - application/json

successful operation

projectId
string
name
string
assetType
enum<string>
Available options:
project,
table,
view,
field,
udf,
metric
description
string
sourceUri
string
owner
string
ownerEmail
string
tags
string[]
format
string
options
string[]
filters
string[]
sql
string
cacheOnLoad
boolean
default:false
cacheStrategy
object
dependsOn
string[]
createdOn
string<date-time>
additionalSettings
object
id
string
updatedOn
string
version
integer