Skip to main content
POST/api/management/projects/{projectId}/nodes/{parentNodeId}/children

Parameters

NameParameter typeTypeFormatDescription
projectId(required)pathstring-The project identifier found in the project overview screen of the management console.
parentNodeId(required)pathstringuuidThe parent node identifier for the children which have an order.
node(required)bodyobjectnodeThe node object to update

Responses

HTTP status codeReasonModel
201CreatedNode
401UnauthorizedError
404Parent node not foundError
404Project not foundError
409Resource already existsError
422Validation errorError
500Internal server errorError

Examples

An example of posting all fields to create a node

JSON
POST: /api/management/projects/website/nodes/f3322e4f-72b5-4064-be88-fcfed6c82635/children

{
    "id": "d6bdea41-729c-4a07-85bf-a392aa0afc2b",
    "parentId": "f3322e4f-72b5-4064-be88-fcfed6c82635",
    "displayName": {
        "en-GB": "Fight club",
        "fr-FR": "Club de combat"
    },
    "slug": {
        "en-GB": "fight-club",
    "fr-FR": "club-de-combat"
    },
    "restrictedToLanguages": [
        "en-GB",
        "fr-FR"
    ],
    "entryId": "9272ac06-1b3a-4e68-ac1b-a05828b0f7d6",
    "includeInMenu": true
}

Minimum fields required to create a node

JSON
POST: /api/management/projects/website/nodes/f3322e4f-72b5-4064-be88-fcfed6c82635/children

{
    "parentId": "f3322e4f-72b5-4064-be88-fcfed6c82635",
    "displayName": {
        "en-GB": "Fight club"
    }
}

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request