update_asset
Patch an asset's display name and/or custom metadata.
update_asset
Patch an asset's display name and/or custom metadata.
Patch only the fields you pass; omitted fields stay unchanged.
Safety class: A · API type: admin · Min version: —
Confinementasset_id must be within your run-root anchor.
Signatures
def update_asset(sdk, asset_id, display_name=None, custom_properties=None):
"""Patch asset_id's display name / custom metadata; return the response dict."""
return sdk.update_asset(asset_id, display_name, None, None, None, custom_properties)export async function updateAsset(sdk, assetId, displayName = null, customProperties = null) {
// Patch only the fields you pass; omitted fields stay unchanged.
return await sdk.updateAsset(assetId, displayName, null, null, null, customProperties);
}Parameters
| Parameter (Python) | Parameter (JS) | Type | Required | Notes |
|---|---|---|---|---|
sdk | sdk | Nomad_SDK | yes | |
asset_id | assetId | str | yes | e.g. <asset-uuid> |
display_name | displayName | str | None | no | e.g. renamed.mp4 |
custom_properties | customProperties | dict | None | no | e.g. {"externalId": "ext-1"} |
Returns
dict | None — update confirmation; None on failure. Only supplied fields change.
Errors
- 401 unauthenticated
- 404 asset not found
See also: Python ↔ JS naming map · Return shapes.
