Skip to main content
POST
Parse a raw CWR .txt file without persisting it
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

POST /cwr/import/raw Description: Accepts a single multipart file field named cwrFile (max 10 MB) containing a raw CWR .txt file (version auto-detected from the HDR record). Parses the file and returns the result — no rows are written to the database at this stage (persistence is a follow-on phase, WP-12b/WS-E). Accepted content types: text/plain, application/octet-stream, application/cwr. The file must begin with an HDR record. Authorization:
  • Required role: admin or higher
  • Requires an active publisher addon
Method: POST

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

multipart/form-data
cwrFile
file
required

Raw CWR .txt file, max 10 MB.

Response

File parsed (successfully or with recoverable errors — see data.success)

status
string
Example:

"success"

message
string
Example:

"CWR file parsed successfully"

tenantId
integer
data
object