Works
Create or update a CWR registration
POST /work/registrations
POST
Create or update a CWR registration
This endpoint requires authentication. Include your Bearer token in the Authorization header.
Description
POST /work/registrations Description: Upserts aWorkRegistration keyed on (tenantId, societyCode, workId). workId may be omitted/null for a society-level
registration not tied to a specific work. queuedAt is never set
by this endpoint — creation always leaves the row un-queued
(registrationStatus: pending unless another status is given);
use POST .../queue to opt in to PRO submission.
Authorization:
- Required role:
adminor higher
Code Examples
Authorizations
Body
application/json
Upsert keyed on (tenantId, societyCode, workId) — an existing row
for the same work/society pair is updated (200) rather than
duplicated; otherwise a new row is created (201). metadata is
shallow-merged into the existing value on update.
Response
Existing registration for this work/society updated