Preview what duplicating a node would create
GET/nodes/:nodeId/duplicate-preview
Counts the objects POST /nodes/{nodeId}/duplicate would create, per node type, with the same rules the duplication itself applies: forms and everything below them, the signals a form created and those a dynamic workflow derived are left out and counted separately. Nodes whose object is deleted are left out with everything below them. exceedsLimit says the duplication would be refused; a signal lacking its scheduler job or metric makes the preview answer 400, naming it. Checks the same rights as the duplication (read on the node, update on its parent, the designer configurator role for virtual signals), so a preview that answers is one the duplication will not refuse.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- default
The objects a duplication would create.
The node cannot be duplicated (the root, a form, a signal of a form or one a dynamic workflow derived), or the subtree holds a signal without its scheduler job or metric.
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