v1

latestOpenAPI 3.0.0Cognigy Proprietary License2026-07-2239524.1 MB
Nodes

Move a Node

Moves a Node in a Flow Chart. Allows modifying a Node's position relative to other Nodes using modes such as append, prepend, or insert at a specific position.

post/v2.0/flows/{flowId}/chart/nodes/{nodeId}/move

Path parameters

flowIdstring required

The unique identifier for the Flow.

nodeIdstring required

The Id of the Node

Headers

Accept'application/json' | 'application/hal+json' | 'application/xml' | 'text/xml' | 'text/csv'

The Accept header specifies the media type that the client expects in the response. Available options: application/json, application/hal+json, application/xml, text/xml, text/csv. The default value is application/json.

Request body

targetstring required
mode'append' | 'prepend' | 'appendChild' | 'prependChild' | 'insertChildAt' | 'insertAfter' | 'insertBefore' required
positionnumber

The desired position. The desired position. Only used for insertChildAt.

Example request

{
  "position": 42
}

Response

Successfully moved ChartNode.