Asset Link
A reference or provenance link from a page to an asset. Links are immutable; to change the target, delete and re-create the link.
AssetLink object
A reference or provenance link from a page to an asset. Links are immutable; to change the target, delete and re-create the link.
- namestringBetaIDImmutable
Resource name of the link. Server-assigned on create, immutable thereafter. Format:
pages/{page_id}/asset-link-categories/{category}/asset-links/{link_id}, wherecategoryisSOURCEorRELATED_ASSETSandlink_idis a server-generated UUID. Omit on create; use the returned name for Get/Delete.
- asset_typestringBeta
Kind of asset this link points to. Required on create;
ASSET_TYPE_UNSPECIFIEDis not a valid target type.ASSET_TYPE_UC_TABLEASSET_TYPE_WORKSPACE_DASHBOARDASSET_TYPE_WORKSPACE_GENIE_AGENTASSET_TYPE_WORKSPACE_NOTEBOOKASSET_TYPE_WORKSPACE_APPASSET_TYPE_WORKSPACE_DBSQL_QUERYASSET_TYPE_ACCOUNT_PAGEASSET_TYPE_ACCOUNT_USERASSET_TYPE_EXTERNAL_URL
- asset_scope_idstringBeta
Containing scope of the asset. Required on create for every asset type:
- UC table: metastore UUID.
- Workspace asset: decimal workspace ID string.
- Account page or external URL: the calling account UUID. Pass the bare ID, without a resource-name prefix. Query and Genie links, dashboard UUID inputs, and app-name inputs require this scope to match the caller's workspace.
- asset_idstringBeta
Target identifier within
asset_scope_id. Required on create. The accepted format depends onasset_type; see the identifier rules on each AssetType. For Databricks assets, pass the bare identifier rather than a resource name such aspages/{page_id}orqueries/{query_id}. External assets use the full URL. Create and Get return table FQNs, app UUIDs, query UUIDs, and native Genie space IDs.
- create_timestringBetaOutput only
Server-assigned creation time, formatted as an RFC 3339 timestamp in JSON.
Get an asset link Beta
GET
Get an asset link by its full resource name. Table links return the table's current FQN and require access to that table. Query and Genie links return native UUIDs and require access in the caller's workspace. Returns NOT_FOUND if the link is missing or its target identifier cannot be resolved.
API scopes: knowledge
Parameters
- namestringRequiredpath
Resource name of the link to retrieve. Format:
pages/{page_id}/asset-link-categories/{category}/asset-links/{link_id}
Response
Returns the AssetLink object.
Create an asset link on a page Beta
POST
Create an asset link on a page. For REST, send AssetLink fields directly as the JSON request body; the parent path supplies the page and category. An existing target with the same asset type, scope, and resolved asset ID in that page/category returns the original link and creation time.
API scopes: knowledge
Parameters
- parentstringRequiredpath
Category collection on the page in which to create the link. Format:
pages/{page_id}/asset-link-categories/{category}, where{category}is aLinkCategoryvalue (SOURCEorRELATED_ASSETS).
Request body
The link to create. asset_type, asset_scope_id, and asset_id are
required. The server assigns name and create_time; the path supplies
the page and category. A duplicate target in that category returns the
existing link.
- namestringIDImmutable
Resource name of the link. Server-assigned on create, immutable thereafter. Format:
pages/{page_id}/asset-link-categories/{category}/asset-links/{link_id}, wherecategoryisSOURCEorRELATED_ASSETSandlink_idis a server-generated UUID. Omit on create; use the returned name for Get/Delete.
- asset_typestringRequired
Kind of asset this link points to. Required on create;
ASSET_TYPE_UNSPECIFIEDis not a valid target type.ASSET_TYPE_UC_TABLEASSET_TYPE_WORKSPACE_DASHBOARDASSET_TYPE_WORKSPACE_GENIE_AGENTASSET_TYPE_WORKSPACE_NOTEBOOKASSET_TYPE_WORKSPACE_APPASSET_TYPE_WORKSPACE_DBSQL_QUERYASSET_TYPE_ACCOUNT_PAGEASSET_TYPE_ACCOUNT_USERASSET_TYPE_EXTERNAL_URL
- asset_scope_idstringRequired
Containing scope of the asset. Required on create for every asset type:
- UC table: metastore UUID.
- Workspace asset: decimal workspace ID string.
- Account page or external URL: the calling account UUID. Pass the bare ID, without a resource-name prefix. Query and Genie links, dashboard UUID inputs, and app-name inputs require this scope to match the caller's workspace.
- asset_idstringRequired
Target identifier within
asset_scope_id. Required on create. The accepted format depends onasset_type; see the identifier rules on each AssetType. For Databricks assets, pass the bare identifier rather than a resource name such aspages/{page_id}orqueries/{query_id}. External assets use the full URL. Create and Get return table FQNs, app UUIDs, query UUIDs, and native Genie space IDs.
Response
Returns the AssetLink object.
Delete an asset link Beta
DELETE
Delete an asset link by its full resource name. Returns NOT_FOUND if the link does not exist, including when it has already been deleted.
API scopes: knowledge
Parameters
- namestringRequiredpath
Resource name of the link to delete. Format:
pages/{page_id}/asset-link-categories/{category}/asset-links/{link_id}