PXM Products/
PXM Product Asset Relationships/
EP PXM Product Asset Relationships/
Delete Product-File Relationships

Delete Product-File Relationships

DELETE Delete Product-File Relationships

https://api.moltin.com/pcm/products/:productId/relationships/files

Parameters

Path parameters

NameRequiredTypeDescription
productIdRequiredstringThe unique identifier of the product.

Headers

NameRequiredTypeDescription
AuthorizationRequiredstringThe Bearer token to grant access to the API.

Body

NameRequiredTypeDescription
typeRequiredstringThe type of the resource object. You must use file.
idRequiredstringThe unique identifier of the file.

This request deletes relationships between the specified product and the files.

Request Example

curl -X DELETE https://api.moltin.com/pcm/products/14e055d0-eebb-4090-8594-a0a7aeea2151/relationships/files \
     -H "Authorization: Bearer XXXX" \
     -H "Content-Type: application/json" \
     -d $'{
        "data": [
            {
            "type": "file",
            "id": "string"
            }
        ]
     }'

Response Example

204 No Content

Was this helpful?

Previous
Update Product-File Relationships

Learn

Docs