• PXM Products/
    PXM Product Asset Relationships/
    Get a Productʼs Nodes

    Get a Productʼs Nodes

    GET Get a Productʼs Nodes

    https://api.moltin.com/pcm/products/:productId/nodes
    

    Retrieves the nodes that are associated with the specified product.

    Parameters

    Path parameters

    NameRequiredTypeDescription
    productIdRequiredstringThe unique identifier of the product.

    Headers

    NameRequiredTypeDescription
    AuthorizationRequiredstringThe Bearer token to grant access to the API.

    Request Example

    curl -X GET https://api.moltin.com/pcm/products/14e055d0-eebb-4090-8594-a0a7aeea2151/nodes \
         -H "Authorization: Bearer XXXX" \
    

    Response Example

    200 OK

    {
        "data": [
            {
                "type": "node",
                "id": "de3c3590-4138-4943-b04d-d7b7dc48fa54",
                "attributes": {
                    "description": "Gas stoves and ovens",
                    "name": "Gas Ranges",
                    "slug": "Gas-Ranges-MA2"
                },
                "relationships": {
                    "children": {
                        "data": [],
                        "links": {
                            "related": "/hierarchies/0e119de2-5fb0-4bca-9b84-b3fc6c903007/nodes/de3c3590-4138-4943-b04d-d7b7dc48fa54/children"
                        }
                    },
                    "products": {
                        "data": [],
                        "links": {
                            "related": "/hierarchies/0e119de2-5fb0-4bca-9b84-b3fc6c903007/nodes/de3c3590-4138-4943-b04d-d7b7dc48fa54/products"
                        }
                    }
                }
            }
        ]
    }
    

    Was this helpful?