Skip to main content

Update a node's parent

PUT 

/pcm/hierarchies/:hierarchyID/nodes/:nodeID/relationships/parent

Changes the parent of the specified node. The new parent node must be located within the same hierarchy as the specified node.

You cannot move a node to another hierarchy. If you want to put the specified node into another hierarchy, create the node in the target hierarchy and delete it from the current hierarchy.

Request

Path Parameters

    hierarchyID stringrequired

    A unique identifier for the hierarchy.

    nodeID stringrequired

    A unique identifier for the node.

Body

    data object
    id stringrequired

    The unique identifier of the new parent node. Must not match the node ID specified in the request path.

    type stringrequired

    Possible values: [node]

    This represents the type of resource object being returned. Always node.

Responses

No Content

Loading...