Get all Releases of a Catalog
GET
Get all Releases of a Catalog
https://api.moltin.com/pcm/catalogs/:catalogId/releases
Returns a list of all published releases of the specified catalog.
note
Currently, published catalogs are limited to the current release and two releases prior to the current release.
Parameters
Path parameters
Name | Required | Type | Description |
---|---|---|---|
catalogId | Required | string | The unique identifier of the catalog. |
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. Implicit Bearer token only returns products with live status; products with draft status will not be included. |
Request Example
curl -X GET https://api.moltin.com/pcm/catalogs/aea233e7-1300-48ce-9b45-7d0c0b60dde3/releases \
-H "Authorization: Bearer XXXX"
Response Example
200 OK
{
"data": [
{
"id": "aea233e7-1300-48ce-9b45-7d0c0b60dde3",
"type": "catalog-release",
"attributes": {
"hierarchies": [
{
"id": "eb3bd9e6-857c-4886-bc3f-fcebd600ae22"
}
],
"description": "Ranges Catalog",
"name": "Ranges Catalog",
"published_at": "2021-04-13T02:11:57.393Z"
},
"relationships": {
"hierarchies": {
"links": {
"related": "/pcm/catalogs/aea233e7-1300-48ce-9b45-7d0c0b60dde3/releases/aea233e7-1300-48ce-9b45-7d0c0b60dde3/hierarchies"
}
},
"products": {
"links": {
"related": "/pcm/catalogs/aea233e7-1300-48ce-9b45-7d0c0b60dde3/releases/aea233e7-1300-48ce-9b45-7d0c0b60dde3/products"
}
}
}
}
],
"links": {
"self": "/pcm/catalogs/aea233e7-1300-48ce-9b45-7d0c0b60dde3/releases"
}
}