This endpoint allows the creation of a new product.
cURL
curl --request POST \ --url https://server26-dot-royalti-project.uc.r.appspot.com/product/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "upc": "AB12fdfdg348vvfv67890ff", "catalog": "CAT001", "title": "Mavins sabi girl", "displayArtist": "arya star", "mainArtist": [ "arya star" ], "type": "Audio", "format": "Single", "releaseDate": "2022-02-01", "mainGenre": [ "Pop" ], "subGenre": [ "Electronic" ], "label": "Example Label", "status": "Live", "distribution": "Example Distribution", "metadata": { "anyitem": "itemvalue", "contributor": "your data" }, "artists": [ "artist-id-1", "artist-id-2" ], "split": [ { "user": "user-id-1", "share": 60 }, { "user": "user-id-2", "share": 40 } ] }'
{ "id": "77339e1c-f962-447c-bf13-8fc047d4f8d2", "TenantId": 2, "upc": "AB12fdfdg348vvfv67890ff", "isDraft": false, "catalog": "CAT001", "title": "Mavins sabi girl", "displayArtist": "arya star", "type": "Audio", "format": "Single", "releaseDate": "2022-02-01", "mainGenre": [ "Pop" ], "subGenre": [ "Electronic" ], "label": "Example Label", "status": "Live", "distribution": "Example Distribution", "metadata": { "anyitem": "itemvalue", "contributor": "your data" }, "media": [ { "url": "https://storage.example.com/artwork.jpg", "type": "image", "name": "artwork" } ], "updatedAt": "2024-12-12T10:30:00.000Z", "createdAt": "2024-12-12T10:30:00.000Z", "externalId": null, "takedownDate": null, "mainArtist": [ "arya star" ], "otherArtist": null, "links": null, "contributors": null, "extra": null }
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Success - Product created
The response is of type object.
object