bulk_update_metadata

Merge collections/tags/related-content/custom metadata across many content items at once.

bulk_update_metadata

Merge collections/tags/related-content/custom metadata across many content items at once.

Merge metadata across one or more confined assets. Returns nothing.

Safety class: B · API type: admin · Min version:

📘

Confinement

Class B: every id in content_ids must be within your run-root anchor; never pass ids you do not own.

Signatures

def bulk_update_metadata(sdk, content_ids, collection_ids=None,
                         related_content_ids=None, tag_ids=None, schema_name=None):
    """Bulk-merge metadata onto content_ids (all must be confined). Returns None."""
    return sdk.bulk_update_metadata(
        content_ids, collection_ids, related_content_ids, tag_ids, schema_name
    )
export async function bulkUpdateMetadata(sdk, contentIds, collectionIds = null,
        relatedContentIds = null, tagIds = null, schemaName = null) {
    // Bulk-merge metadata onto contentIds (all must be confined).
    return await sdk.bulkUpdateMetadata(contentIds, collectionIds, relatedContentIds, tagIds, schemaName);
}

Parameters

Parameter (Python)Parameter (JS)TypeRequiredNotes
sdksdkNomad_SDKyes
content_idscontentIdslist[str]yesitems to update
collection_idscollectionIdslist[str] | Noneno
related_content_idsrelatedContentIdslist[str] | Noneno
tag_idstagIdslist[str] | Nonenoe.g. ["<tag-uuid>"]
schema_nameschemaNamestr | Noneno

Returns

None — no body on success; verify via get_asset_details.

Errors

  • 401 unauthenticated
  • 404 content not found

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