Skip to main content
PUT
/
product
/
{id}
/
assets
Update Product Assets
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/product/{id}/assets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "assets": [
    {
      "asset": "asset-id-1",
      "number": 1
    },
    {
      "asset": "asset-id-2",
      "number": 2
    }
  ]
}'
{
  "message": "Assets added to Products"
}
/product//assets Description:
The /product/{id}/assets endpoint updates the assets associated with a specific product. It replaces all existing asset associations with the provided list.
Method:
PUT
Path Parameter:
ParameterTypeDescription
idstringThe unique identifier of the product.
Request Body:
ParameterTypeDescription
assetsarrayArray of asset objects to associate with the product.
Asset Object:
ParameterTypeDescription
assetstringThe ID of the asset to associate.
numberintegerThe track number for this asset in the product.

Authentication

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

Path Parameters

ParameterTypeInRequiredDescription
idstringpathāœ…Product ID

Request Body

Request Schema

FieldTypeRequiredDescription
assetsarrayāœ…

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
assets
object[]
required

Response

Success

message
string
⌘I