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

post

Search assets with optional filters for type, parent, tags, classifications, and owners. Returns paginated results matching the specified criteria.

Body
queryany ofOptional

Search term to match against

stringOptional
or
nullOptional
search_typestring · enumOptional

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.

Default: exactPossible values:
asset_typeany ofOptional

Filter results to specific asset types only

string · enumOptionalPossible values:
or
nullOptional
parentany ofOptional

Filter assets that belong to a specific parent asset

or
nullOptional
tagsany ofOptional

Filter assets with any of the specified tag names

string[]Optional
or
nullOptional
classificationsany ofOptional

Filter assets with any of the specified policy tags

string[]Optional
or
nullOptional
data_ownersany ofOptional

Filter assets owned by any of the specified data owners by email

string[]Optional
or
nullOptional
business_ownersany ofOptional

Filter assets owned by any of the specified business owners by email

string[]Optional
or
nullOptional
show_deletedbooleanOptional

Include deleted assets in the results

Default: false
pageinteger · min: 1OptionalDefault: 1
page_sizeinteger · min: 10 · max: 1000OptionalDefault: 10
Responses
200
Successful Response
application/json
post
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 Asset

get

Get a specific asset by ID and type. Returns the asset details along with its parent hierarchy and attributes.

Query parameters
asset_idinteger · min: 1Required

Unique identifier of the specific asset

asset_typestring · enumRequired

Type of the specific asset

Possible values:
Responses
200
Successful Response
application/json
get
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 Asset

patch

Update modifiable attributes for various asset types.

Body
any ofOptional
or
or
or
or
or
or
or
or
or
or
or
or
or
Responses
200
Successful Response
application/json
Responseany
patch
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