Create a new asset
Create a new asset with the provided details. This endpoint allows you to create a new asset with properties like title, artist information, and metadata.
Description
Authorization:- Required role:
adminor higher
Code Examples
Authorizations
Body
Contributors to the asset (producers, mixers, songwriters, etc.). Accepts two formats:
Object format: { "producers": ["Name1", "Name2"], "songwriters": ["Name3"] }
Array format: [{ "name": "Name1", "role": "producer" }, { "name": "Name2", "role": "songwriter" }]
The array format is automatically transformed to object format internally.
Supported roles: producer, songwriter, composer, lyricist, mixer, engineer, arranger, masteringengineer, remixer (singular or plural forms accepted). Custom roles are also supported.
- object
- object[]
Artist associations for creating relational links in the database. Note: This field uses artist record UUIDs (not names) to create entries in the ArtistAsset join table. This is separate from 'mainArtist' which stores artist names for display. Can be either:
- Array of UUID strings: ["uuid1", "uuid2"]
- Array of objects with id and type: [{id: "uuid1", type: "primary"}]
Artist UUID (defaults to type 'primary')
Response
Asset created successfully - Returns the asset object directly
Contributors to the asset (producers, mixers, songwriters, etc.). Accepts two formats:
Object format: { "producers": ["Name1", "Name2"], "songwriters": ["Name3"] }
Array format: [{ "name": "Name1", "role": "producer" }, { "name": "Name2", "role": "songwriter" }]
The array format is automatically transformed to object format internally.
Supported roles: producer, songwriter, composer, lyricist, mixer, engineer, arranger, masteringengineer, remixer (singular or plural forms accepted). Custom roles are also supported.
- object
- object[]
Artist associations for creating relational links in the database. Note: This field uses artist record UUIDs (not names) to create entries in the ArtistAsset join table. This is separate from 'mainArtist' which stores artist names for display. Can be either:
- Array of UUID strings: ["uuid1", "uuid2"]
- Array of objects with id and type: [{id: "uuid1", type: "primary"}]
Artist UUID (defaults to type 'primary')