Skip to main content

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 202 with 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 /exports once its file is ready. Poll until it appears, recognise it by its createdAt and detail, and call GET /exports/{exportId} with the new id.
  • 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: excludeContactIds is not applied again, and an export of specific contactIds is regenerated as an export of all the contacts of your account (its detail.type is ALL_CONTACTS). To repeat such an export exactly, request it again with POST /exports/contacts.

An export that has not expired yet answers 500 (Remote server error.), not 400. That response cannot be told apart from a real fault, so check isAvailableForDownload and expiresAt in GET /exports before you call this endpoint.

Request​

Responses​

Regeneration queued. No response body.