Skip to main content
Browse Documentation
HTTP - Management

Move a node

Created by Contensis product team, last updated 14 Jul 2020

Moves a node.

This is a special case of updating a node. By changing the parent id of a node and updating the node and all of its children will be moved so that they are now descendants of the parent node, with the same hierarchical structure.

PUT/api/management/projects/{projectId}/nodes/{nodeId}

Parameters

NameParameter typeTypeFormatDescriptionExampleRequired
projectIdpathstringThe project identifier found in the project overview screen of the management consolemovieDbtrue
nodeIdpathstringuuidThe node identifier as a 128 bit GUIDtrue
nodebodyobjectnodeThe node object to updatetrue

Example

Change the parent id to move the node

PUT: /api/management/projects/website/nodes/d6bdea41-729c-4a07-85bf-a392aa0afc2b

{
    "parentId": "f3322e4f-72b5-4064-be88-fcfed6c82635",
    "title": {
        "en-GB": "Fight club"
    },
    "slug": {
        "en-GB": "fight-club"
    },
    "entryId": "9272ac06-1b3a-4e68-ac1b-a05828b0f7d6"
}

Responses

HTTP status codeReasonModel
200SuccessNode
401UnauthorizedError
404Project not foundError
404Node not foundError
409Resource already exists in target locationError
422Validation errorError
500Internal server errorError