GET
Get Main Image Relationships
https://api.moltin.com/pcm/products/:productId/relationships/main_image
Parameters
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. |
Request Example
curl -X GET https://api.moltin.com/pcm/products/:productId/relationships/main_image \
-H "Authorization: Bearer XXXX" \
Response Example
200 OK
{
"data": [
{
"type": "file",
"id": "file-1"
}
]
}
Last updated on 10/25/2022