POST/v1/suppressions/import

Import suppression entries from a CSV upload

A completed csv upload session; columns are mapped to the recipient fields by header name or through mapping. Rows that cannot be identified are reported by line.

Scope suppressions.manageIdempotent with a key

Headers

Idempotency-Keystringmax length 255

Up to 255 characters, scoped to the organisation and the endpoint, kept for 24 hours: a repeat with the same body replays the stored response with Idempotent-Replayed: true (API-004).

Body

uploadIdstringrequiredmin length 1
reasonstringmin length 1max length 60
categoriesarray of stringmax items 50
mappingobject
notestringmax length 500

Returns

7 fields of the 200 answer
rowsintegerrequired
createdintegerrequired
existingintegerrequired
invalidarray of objectsrequired
2 fields
lineintegerrequired
problemsarray of stringrequired
malformedLinesarray of integerrequired
mappingobjectrequired
totalintegerrequired

Responses

200Success
401Authentication required or API key invalid
403Permission or scope missing, organisation suspended
409A request with this Idempotency-Key is still in progress (idempotency_in_progress)
413More than 50,000 rows (import_too_large)
422Validation failed
429Rate limited for this API key and class; wait Retry-After seconds
otherError (RFC 9457 problem details)