Regenerate expired export
POST/api/partner-gateway/exports/:exportId
Queues a new export built from the parameters of an expired one. Use it when an export listed by GET /exports has isAvailableForDownload false and you still need the data.
- The answer is
202with an empty body. The new export is generated in the background, from the data as it is at that moment. - New ID: the new export is listed by
GET /exportsonce its file is ready. Poll until it appears, recognise it by itscreatedAtanddetail, and callGET /exports/{exportId}with the newid. - The expired export keeps its ID and stays expired, and every further call queues one more export.
- Delivery reports are regenerated with all of their filters.
- Contacts are not:
excludeContactIdsis not applied again, and an export of specificcontactIdsis regenerated as an export of all the contacts of your account (itsdetail.typeisALL_CONTACTS). To repeat such an export exactly, request it again withPOST /exports/contacts.
An export that has not expired yet answers
500(Remote server error.), not400. That response cannot be told apart from a real fault, so checkisAvailableForDownloadandexpiresAtinGET /exportsbefore you call this endpoint.
Request
Responses
- 202
- 401
- 404
- 500
Regeneration queued. No response body.
The API key is missing, invalid, or lacks the EXPORTS operation.
No export with this ID in your account, or the export was requested from the web dashboard.
The export has not expired yet, or unexpected server error.