Create a work
POST /work/works
Description
POST /work/works Description: Creates aCWRWork for the caller’s tenant. No dedicated request
validator — accepts any writable CWRWork field and surfaces
Sequelize validation failures as a 400.
Authorization:
- Required role:
adminor higher
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
Accepts any CWRWork writable field; tenantId is set server-side from the caller's active workspace and any client-supplied value is overwritten. No dedicated request validator exists — invalid combinations surface as a 400 from Sequelize model validation.
Response
Work created
International Standard Musical Work Code (max 13 chars)
Seconds
CWR "recording detail" blocks embedded on the work (distinct from the WorkRecording junction table / WorkRecordings below)
Includes completeness (complete/skeleton), source (e.g. publishing-bootstrap), seededDefaults, origin.library