Composable Frontend 2.0 Learn more 

  • Products/
    Product Asset Relationships/
    Product Asset Relationships/
    Get Product-File Relationships

    Get Product-File Relationships

    This endpoint is for Administrator use only. Do not use this endpoint on your customer-facing frontends.

    GET Get Product-File Relationships

    https://useast.api.elasticpath.com/pcm/products/:productId/relationships/files
    

    This request retrieves all files 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://useast.api.elasticpath.com/pcm/products/14e055d0-eebb-4090-8594-a0a7aeea2151/relationships/files \
         -H "Authorization: Bearer XXXX" \
         -H "Content-Type: application/json" \
    

    Response Example

    200 OK

    {
        "data": [
            {
                "type": "file",
                "id": "ab0dabeb-c600-4ef5-89c5-2979c604703f",
                "meta": {
                    "created_at": "2023-10-02T13:25:41.934Z"
                }
            }
        ]
    }
    
    Previous
    Get a Productʼs Nodes