Skip to main content

Undo Update Data - Bulk

POST 

/api/v1/assets/bulk/data/undo

Undo a bulk metadata update: put back, on every asset it updated, the values the fields it touched had before. A field the update added is removed again, the previous schema is restored, and so are embargo and rights-expiry dates it changed.

Send either the undo_id from the update's response or the job_id of its BULK_METADATA_EDIT job (the one the notification links to):

{"undo_id": "5b0e3c7a9d2f4e8b8c1a6f3d2e9b7c41"}
{"job_id": 1234}
  • Only the user who made the update can undo it, within 7 days, and only once.
  • Only the fields the update touched are restored. A later change to one of those fields is overwritten; later changes to other fields are kept.
  • Restoring dates follows the same permission and plan rules as setting them, and putting back a date on an asset that no longer has one counts as setting a new date.
  • The job is marked as undone (callback.undone_at and callback.undo on Get Job) and the user gets a notification, "Metadata change undone: ...".

HTTP RESPONSE​

{
"status": "OK",
"restored": ["99d819953914402babbdeb68337ea6a3"],
"failed": [],
"job_id": 1234
}

failed has the same form and reasons as on the bulk update, for assets that could not be restored (for example because they were trashed or are being updated).

API Limits​

The undo shares the per-user allowance of the bulk update: by default one bulk update or undo per user a minute, then 429 ("code": "rate_limited") with Retry-After. Against the account's rate limit an undo counts as the largest bulk update.

Request​

Responses​

The undo ran. Check failed for assets that could not be restored.