Skip to main content
Browse Documentation
HTTP - Management

Set the node order

Created by Contensis product team, last updated 22 Jun 2020

Sets the node order for the children of a specific parent node and optionally for a language.

PUT/api/management/projects/{projectId}/nodes/{parentNodeId}/children/order

Parameters

NameParameter typeTypeFormatDescriptionExampleRequired
projectIdpathstringThe project identifier found in the project overview screen of the management consolemovieDbtrue
parentNodeIdpathstringuuidThe parent node identifier for the children which have an order.true
languagequerystringlanguageThe specified language for the node. If no value is provided then the project primary language is usedfalse

Example

The example below is setting the node order specifically for French.

PUT: /api/management/projects/website/nodes/62722a79-4507-4969-b65e-f6c769ce1336/children/order?language=fr-FR
[
    "62722a79-4507-4969-b65e-f6c769ce1336",
    "9caa58f7-20f5-44ba-a493-685c88556644",
    "ba77f063-77c9-4416-af1a-8f5002650da3",
    "58277007-6c36-4d46-bdba-3ebb11809f9f",
    "59808362-5f55-4fa8-863f-7cc98c1dafca",
    "30be3bac-e671-41a3-af3e-e2acdebe39f1",
    "43224e9e-15a2-40fc-a41f-b239253cc6f1",
    "7ce5f200-9d7c-4025-bf5c-e611c1e3e6b4",
    "f30a1a70-1bea-4292-a7f8-7477b7943675",
    "c4c751ab-9e7d-4843-9458-f38a39ddbfab",
    "163129f1-f459-4ca5-a200-216778b487b1"
]

Remarks

The default language order is used for other languages if no language specific order is set.

Responses

HTTP status codeReasonModel
204Success
401UnauthorizedError
404Project not foundError
404Parent node not foundError
422Language is invalidError
500Internal server errorError