update_annotation

Update an existing annotation on an asset.

update_annotation

Update an existing annotation on an asset.

Safety class: A · API type: portal · Min version:

📘

Confinement

asset_id must be within your run-root anchor.

Signatures

def update_annotation(sdk, asset_id, annotation_id, start_time_code=None,
                      end_time_code=None, title=None, summary=None, description=None):
    """Update an existing annotation on asset_id; return the updated annotation."""
    return sdk.update_annotation(asset_id, annotation_id, start_time_code,
                                 end_time_code, title, summary, description)
export async function updateAnnotation(sdk, assetId, annotationId, startTimeCode = null,
                                       endTimeCode = null, title = null, summary = null, description = null) {
    // Update an existing annotation on assetId.
    return await sdk.updateAnnotation(assetId, annotationId, startTimeCode, endTimeCode, title, summary, description);
}

Parameters

Parameter (Python)Parameter (JS)TypeRequiredNotes
sdksdkNomad_SDKyes
asset_idassetIdstryese.g. <asset-uuid>
annotation_idannotationIdstryese.g. <annotation-uuid>
start_time_codestartTimeCodestr | nullnoe.g. 00:00:00;00
end_time_codeendTimeCodestr | nullnoe.g. 00:00:02;00
titletitlestr | nullno
summarysummarystr | nullno
descriptiondescriptionstr | nullno

Returns

dict | None — the updated annotation. None on failure.

Errors

  • 401 unauthenticated
  • 404 asset or annotation not found

See also: Python ↔ JS naming map · Return shapes.