Assets
The Assets API allows you to search, retrieve, and update data assets within your Decube organization. Use these endpoints to automate asset discovery, manage metadata, and integrate asset information into your data workflows and applications.
Search assets with optional filters for type, parent, tags, classifications, and owners. Returns paginated results matching the specified criteria.
Search term to match against
Type of search to perform. For exact searches, this is matched approximately against the name field. For fuzzy searches, this is matched exactly against relevant fields.
exact
Possible values: Filter results to specific asset types only
Filter assets that belong to a specific parent asset
Filter assets with any of the specified tag names
Filter assets with any of the specified policy tags
Filter assets owned by any of the specified data owners by email
Filter assets owned by any of the specified business owners by email
Include deleted assets in the results
false
1
10
POST /api/v1/data/assets/search HTTP/1.1
Host: connect.<REGION>.decube.io
Content-Type: application/json
Accept: */*
Content-Length: 232
{
"query": "text",
"search_type": "exact",
"asset_type": "source",
"parent": {
"id": 1,
"type": "source"
},
"tags": [
"text"
],
"classifications": [
"text"
],
"data_owners": [
"text"
],
"business_owners": [
"text"
],
"show_deleted": false,
"page": 1,
"page_size": 10
}
{
"data": [
{
"asset": {
"id": 1,
"name": "text",
"type": "source"
},
"parents": [
{
"id": 1,
"name": "text",
"type": "source"
}
],
"attrs": {
"source_type": "bigquery",
"data_owners": [
{
"email": "text",
"id": "text"
}
],
"business_owners": [
{
"email": "text",
"id": "text"
}
],
"description": "text",
"linked_terms": [
{
"id": 1,
"type": "source"
}
]
}
}
]
}
Get a specific asset by ID and type. Returns the asset details along with its parent hierarchy and attributes.
Unique identifier of the specific asset
Type of the specific asset
GET /api/v1/data/assets?asset_id=1&asset_type=source HTTP/1.1
Host: connect.<REGION>.decube.io
Accept: */*
{
"asset": {
"id": 1,
"name": "text",
"type": "source"
},
"parents": [
{
"id": 1,
"name": "text",
"type": "source"
}
],
"attrs": {
"source_type": "bigquery",
"data_owners": [
{
"email": "text",
"id": "text"
}
],
"business_owners": [
{
"email": "text",
"id": "text"
}
],
"description": "text",
"linked_terms": [
{
"id": 1,
"type": "source"
}
]
}
}
Update modifiable attributes for various asset types.
PATCH /api/v1/data/assets HTTP/1.1
Host: connect.<REGION>.decube.io
Content-Type: application/json
Accept: */*
Content-Length: 145
{
"asset_id": 1,
"asset_type": "text",
"data_owners": [
"text"
],
"business_owners": [
"text"
],
"description": "text",
"linked_terms": [
{
"type": "text",
"id": 1
}
]
}
No content
Last updated