POST
/v1/postbatches/{id}/importUpload the CSV of a Postbatch
Attaches a completed csv upload (DRAFT or VALIDATED; a previous import is replaced) and starts the parse: encoding and delimiter detection, header checks, the row limit, a sample and a mapping proposal from the template presets or the header names. Pass a mapping to skip the proposal. Poll GET .../import.
Scope
postbatches.writePath parameters
idstringrequiredBody
uploadIdstringrequiredmin length 1max length 40mappingobjectReturns
22 fields of the 202 answer
idstringrequiredpostbatchIdstringrequireduploadIdstringrequiredstatusenumrequiredUPLOADEDPARSINGPARSEDMAPPEDPROCESSINGDONEFAILEDCANCELLEDencodingstring or nullrequireddelimiterstring or nullrequiredheadersarray of stringrequiredsampleRowsarray of objectsrequiredrowCountinteger or nullrequiredmalformedRowsarray of integerrequiredtargetsarray of objectsrequired3 fields
namestringrequiredrequiredbooleanrequiredkindenumrequiredrecipientvariableproposedMappingobject or nullrequiredmappingSourcestring or nullrequiredmappingobject or nullrequiredissuesarray of objectsrequired5 fields
codeenumrequiredunknown_targetunknown_columnunmapped_requiredunused_columnempty_expressionseverityenumrequirederrorwarningmessagestringrequiredtargetstringcolumnstringrowCountsobjectrequirederrorsarray of objectsrequired3 fields
codestringrequiredmessagestringrequiredlineintegerparsedAtdate-time or nullrequiredstartedAtdate-time or nullrequiredfinishedAtdate-time or nullrequiredcreatedAtdate-timerequiredupdatedAtdate-timerequiredResponses
202Success
401Authentication required or API key invalid
403Permission or scope missing, organisation suspended
404Not found
422Validation failed
429Rate limited for this API key and class; wait Retry-After seconds
otherError (RFC 9457 problem details)