processCardImport
processCardImport
Overview
This method processes a validated card import batch. Rows classified as create or update are created or updated, provided you have the required permission. Rows classified as invalid, duplicate or unauthorized are skipped and keep their classification.
When processing finishes, the batch is updated with a final status and summary counts, and a result CSV is generated.
A batch can only be processed once.
This API is part of the card import process:
createCardImport – upload and validate the CSV file.
getCardImportErrors – download the rows that failed validation (optional).
processCardImport – create and update the valid cards.
getCardImportResult – download the final outcome for every row.
This method only requires an authenticated user. Permissions are checked for each row: create rows need the Cards:Create permission and update rows need the Cards:Update permission. Rows you are not authorised to process are classified as unauthorized rather than blocking the request.
Permissions
The permissions for this api are stored in [gb_api_permissions]permission as 'Cards:Create' and 'Cards:Update'.
Only roles with a stored link to these permissions in [gb_role_api_permissions] can create or update cards through this api.
HTTP Method
Use the HTTP Method 'POST' for consuming this web service.
URL Examples
https://api.demo.catch-e.com/fm/cards/imports/{import_batch_id}/process https://api.{{environment}}.catch-e.com/fm/cards/imports/{import_batch_id}/process https://api.test.catch-e.com/fm/cards/imports/{import_batch_id}/process Input Fields (Header)
Path Parameters
Response Details
Success
201 - Created
The batch was processed. Check summary for the outcome counts.
{ "import_batch_id": "1234", "summary": { "created": 5, "updated": 3, "failed": 0, "skipped": 2 }, "result_csv_uri": "/fm/cards/imports/1234/result" } Error Response Details
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unauthorized", "status": 401, "detail": "Unauthorized" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Forbidden", "status": 403, "detail": "Forbidden" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Not Found", "status": 404, "detail": "Not Found" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Not Acceptable", "status": 406, "detail": "Not Acceptable" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Conflict", "status": 409, "detail": "Conflict" } { "warning_messages": {}, "validation_messages": { "fieldName": { "validationExceptionCode": "A textual description of the validation exception" } }, "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unprocessable Entity", "status": 422, "detail": "Failed Validation" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "string", "status": 599, "detail": "string" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "string", "status": 599, "detail": "string" }