• PXM Hierarchies/
    PXM Node Relationships API/
    Delete a Nodeʼs Parent Relationship

    Delete a Nodeʼs Parent Relationship

    DELETE Delete a Nodeʼs Parent

    https://api.moltin.com/pcm/hierarchies/:hierarchyId/nodes/:nodeId/relationships/parent
    

    For the specified node, deletes the relationship to the current parent node.

    Because all nodes in a hierarchy must have a parent node, the hierarchy root node becomes the parent of this node.

    Parameters

    Path parameters

    NameRequiredTypeDescription
    hierarchyIdRequiredstringThe unique identifier of the hierarchy.
    nodeIdRequiredstringThe unique identifier of the node in the hierarchy.

    Headers

    NameRequiredTypeDescription
    AuthorizationRequiredstringThe Bearer token to grant access to the API.

    Request Example

    curl -X DELETE https://api.moltin.com/pcm/hierarchies/0e119de2-5fb0-4bca-9b84-b3fc6c903007/nodes/de3c3590-4138-4943-b04d-d7b7dc48fa54/relationships/parent \
         -H "Authorization: Bearer XXXX" \
    

    Response Example

    204 No Content

    Was this helpful?

    Previous
    Delete Node-Product Relationships