Skip to main content
POST
Upload and process a CWR acknowledgment file
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

POST /cwr/acknowledgment Description: Accepts a single multipart file field named file containing a CWR acknowledgment (HDR + ACK records). Parses the file and applies the resulting per-work registration status updates inside a database transaction; rolled back on any parse/apply error. Authorization:
  • Required role: admin or higher
Method: POST

Code Examples

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
file
file
required

Response

Acknowledgment processed

message
string
Example:

"CWR acknowledgment processed successfully"

result
object

Per-record apply summary from CWRAcknowledgmentService (counts of registrations created/updated).