Discard imported data

You may need to discard the imported data to complete the suspended data import process, which has a REJECTED or FAILED status.

Tuum has two options for discarding the imported data:

  1. Discard only rejected or failed data entities.

Discard all imported data

Make an API call to the discard endpointarrow-up-right to discard all imported data.

api/v1/import/{importProcessId}/discard

Parameter name
Format / location
Description

importProcessId

string

path

The unique identifier of the initiated data import process you obtained from the response to the import data API call. For example, ID-1090.

Outcome of full discard from REJECTED

If you discard all imported data from the REJECTED status, the whole data import process terminates, and no data entities are created in Tuum.

Outcome of full discard from FAILED

If you discard all imported data from the FAILED status, the whole data import process terminates, and no data entities are created in Tuum.

circle-exclamation

Discard only rejected entities

Make an API call to the discard rejected entities endpointarrow-up-right to discard only rejected imported data entities.

api/v1/import/{importProcessId}/discard-rejected-entities

Parameter name
Format / location
Description

importProcessId

string

path

The unique identifier of the initiated data import process you obtained from the response to the import data API call. For example, ID-1090.

Outcome of partial discard from REJECTED status

If you discard rejected data entities in the REJECTED status, then:

  • the rejected data entities are set to the DISCARDED status;

  • valid data entities are set to the PARTIALLY_APPROVED status to proceed with the data import process.

Discard only failed entities

Make an API call to the discard failed entities endpointarrow-up-right to discard only failed imported data entities.

api/v1/import/{importProcessId}/discard-failed-entities

Parameter name
Format / location
Description

importProcessId

string

path

The unique identifier of the initiated data import process you obtained from the response to the import data API call. For example, ID-1090.

Outcome of partial discard from FAILED status

If you discard failed data entities in the FAILED status, then:

  • the failed data entities are set to the DISCARDED status;

  • valid data entities are set to the PARTIALLY_DONE status to create respective records in the target API and complete the data import process.

Last updated

Was this helpful?