Update every metadata matching a selection
PATCH/metadata
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.
Request
Responses
- 200
- 400
- 401
- 403
- 429
How many metadata the selection matched, and how many were updated
Invalid selection or empty patch, ids of another category, or more than 5000 matching metadata
Unauthorized
Forbidden
Another bulk metadata update is already running in this environment