Description
Guidance for deleting batches using the Entities API. Deletions must be performed per batch; operations fail if the batch is the last on its asset or if containers were created from the batch. In those cases, delete the asset (if appropriate) or handle dependent containers first.
Solution
- Identify the batch entity IDs (EIDs) to remove.
- For each batch EID, call DELETE /entities/{batchEID}. Expect 204 on success.
- If deletion returns 412, check constraints:
• Last batch on the asset: delete the parent asset if asset removal is acceptable, then retry as needed.
• Containers created from the batch: remove dependent containers, then retry the batch deletion.
Comments
0 comments
Article is closed for comments.