Update an import

PATCH/imports/{import_id}

Updates the duplicate policy of an import or restores it from the trash by setting deleted to false. To delete an import, use the delete operation.

The duplicate policy can only be changed before the import is processed.

Send the ETag returned by the retrieve operation in the If-Match header to avoid overwriting a newer version.

AuthorizationBearer <token>

Autonomous mode: the API credential secret, sent as a bearer token. Credential secrets are identified by a fixed prefix.

In: header

Path Parameters

import_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/imports/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "data": {    "created_at": "2019-08-24T14:15:22Z",    "current_operation_id": "string",    "deleted": true,    "duplicate_policy": "skip",    "failure_reason": "string",    "file_id": "string",    "id": "string",    "mapping": {      "email": "string",      "product_external_id": "string",      "status": "string"    },    "object": "import",    "revision": "string",    "rows": {      "ignored": 0,      "not_ready": 0,      "ready": 0,      "total": 0    },    "status": "pending",    "type": "students_access",    "updated_at": "2019-08-24T14:15:22Z"  }}