Get Main Image Relationship
GET
Get Main Image Relationship(s)
https://api.moltin.com/pcm/products/:productId/relationships/main_image
curl -X GET https://api.moltin.com/pcm/products/:productId/relationships/main_image \
-H "Authorization: Bearer XXXX" \
Path Parameters:
Name | Required | Type | Description |
---|---|---|---|
productId | Required | string | The ID of the product you want to relate to the main image. |
Headers:
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. |
200 OK
{
"data": [
{
"type": "file",
"id": "file-1"
}
]
}