Skip to main content

Metadata

Metadata management operations

PATCH

Update every metadata matching a selection

Applies one patch to every metadata an explicit id list or a GET /metadata filter resolves to, minus excludeIds, in one transaction. Only metadata whose type is of category METADATA is updated: a filter is narrowed to that category, and an id of another category fails the request with a 400. Ids that are not active metadata are skipped. The patch may set name, description, properties and dateTimePeriod; a field left null is unchanged, and properties merge into each metadata's existing properties (a null value removes that key). A patch that sets nothing is rejected with a 400, as is a selection resolving to more than 5000 metadata, in which case nothing is written. Only one bulk update runs at a time per environment: a second request while one is running gets a 429.