Skip to main content
PUT
/
product
/
{id}
Update Product
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/product/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "displayArtist": "<string>",
  "mainArtist": [
    "<string>"
  ],
  "type": "<string>",
  "format": "<string>",
  "releaseDate": "2023-12-25",
  "mainGenre": [
    "<string>"
  ],
  "subGenre": [
    "<string>"
  ],
  "label": "<string>",
  "status": "<string>",
  "distribution": "<string>",
  "metadata": {},
  "split": [
    {
      "user": "<string>",
      "share": 123
    }
  ]
}'
{
  "message": "Product updated successfully"
}
/product/ Description:
The /product/{id} endpoint allows updating the details of a specific product identified by its unique ID.
Method:
PUT
Path Parameter:
ParameterTypeDescription
idstringThe unique identifier of the product.
Request Payload:
ParameterTypeDescription
titlestringThe updated title of the product.
displayArtiststringThe updated display artist.
mainArtistarrayUpdated main artists.
typestringThe updated product type.
formatstringThe updated format.
releaseDatestringThe updated release date.
mainGenrearrayUpdated main genres.
subGenrearrayUpdated sub genres.
labelstringThe updated label.
statusstringThe updated status.
distributionstringThe updated distribution.
metadataobjectUpdated metadata.
splitarrayUpdated split information.

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Path Parameters

ParameterTypeInRequiredDescription
idstringpathProduct ID

Request Body

Request Schema

FieldTypeRequiredDescription
titlestring
displayArtiststring
mainArtistarray
typestring
formatstring
releaseDatestring
mainGenrearray
subGenrearray
labelstring
statusstring
distributionstring
metadataobject
splitarray

Responses

✅ 200 - Success

⚠️ 401 - Unauthorized

⚠️ 404 - Not Found

❌ 500 - Internal Server Error

Tags

Product

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Product ID

Body

application/json
title
string
displayArtist
string
mainArtist
string[]
type
string
format
string
releaseDate
string<date>
mainGenre
string[]
subGenre
string[]
label
string
status
string
distribution
string
metadata
object
split
object[]

Response

Success

message
string
product
object
I