/api/v1/inbound-shipments/:id/attachments/:attachmentId write:inbound_shipment Removes an attachment from a package: it disappears from attachments[] and its download link stops being issued. Allowed in any status. Removing one that is already gone, or was never yours, is a 404.
The runner below targets attachment 0, which is never a valid id, so pressing Run cannot remove anything: put a real attachment id in the path when you call this yourself.
DELETE /api/v1/inbound-shipments/0/attachments/0 write These inputs are shared across all docs pages, so an id entered here carries over.
Not run yet. Press Run to make a live call against https://service.rip.fun (through this demo's server-side proxy; the API key never reaches the browser).
curl -X DELETE 'https://service.rip.fun/api/v1/inbound-shipments/0/attachments/0' \ -H 'X-API-Key: rip_…'
data)| Field | Description |
|---|---|
attachment_id / deleted | The id you removed, and true |
| Status | Code | When |
|---|---|---|
| 400 | invalid id | either id is not a positive integer |
| 404 | not found | no such live attachment on that shipment of yours |
See Errors for the response envelope and the full code list.