Duplicate a node and its subtree
POST/nodes/:nodeId/duplicate
Copies the node and its subtree under the node's own parent, in one transaction, and returns the node of the copy. A plain signal's copy reads the same metric; a virtual signal gets a metric and a scheduler job of its own, created inactive. References inside the copied subtree (dashboard panels, workflow and virtual-signal inputs, signal group members, panels naming other dashboards) point at the copies, references outside it stay as they are. Forms and everything below them, the signals a form created and those a dynamic workflow derived are left out, and so are nodes whose object is deleted. Image panels keep their image. Explicit rights, alarm and dynamic-workflow bindings, comments and favorites are not copied. Needs read on the node, update on its parent and, for virtual signals, the designer configurator role. Refused with 400 for more than the preview's limit nodes.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- default
The node of the copy.
The node cannot be duplicated (the root, a form, a signal of a form or one a dynamic workflow derived), the subtree holds a signal without its scheduler job or metric, or it exceeds the limit.
Unauthorized — the bearer token is missing, expired or invalid, or carries no role. Errors raised by the security aspects contain an ErrorDto body; requests rejected by the security filter chain may have an empty body.
Forbidden — the authenticated user lacks the required role or access rights.
Entity not found.
the default error response