The
/product/{id}/artists
endpoint updates the artists associated with a specific product. It replaces all existing artist associations with the provided list.
Method:PUT
Path Parameter:
Parameter | Type | Description |
---|---|---|
id | string | The unique identifier of the product. |
Parameter | Type | Description |
---|---|---|
artists | array | Array of artist IDs to associate with the product. |
Authentication
This endpoint requires authentication. Include your bearer token in the Authorization header.Path Parameters
Parameter | Type | In | Required | Description |
---|---|---|---|---|
id | string | path | ✅ | Product ID |
Request Body
Example Request
Request Schema
Field | Type | Required | Description |
---|---|---|---|
artists | array | ✅ | Array of artist IDs to associate with the product |
Responses
✅ 200 - Success
⚠️ 401 - Unauthorized
⚠️ 404 - Not Found
❌ 500 - Internal Server Error
Tags
Product
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
Product ID
Body
application/json
Array of artist IDs to associate with the product
Response
Success