POST
/
product
/
{id}
/
media
Upload Product Media
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/product/{id}/media \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'mediaType=<string>' \
  --form file=@example-file
{
  "message": "Media uploaded successfully",
  "mediaUrl": "https://storage.example.com/media/product-123/artwork.jpg"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Product ID

Body

multipart/form-data

Response

201
application/json

Success

The response is of type object.