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:

📘

Confinement

asset_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)TypeRequiredNotes
sdksdkNomad_SDKyes
asset_idassetIdstryese.g. <asset-uuid>
display_namedisplayNamestr | Nonenoe.g. renamed.mp4
custom_propertiescustomPropertiesdict | Nonenoe.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.