Skip to Content
bpms.ai
ReferenceModel

Move a folder or a model

PUT
/api/v1/model/nodes/{id}/parent

Moves a live node of the tenant of the request into another of its folders, as the 3.x change_parent does, with version + 1; moving to the same folder changes nothing. A root, a move into the node itself or a descendant, and a model as parent are refused. Requires the 3.x authority 2.1.

Authorization

bearer
headerAuthorizationBearer <token>

The token of a session that createSession opened

Path Parameters

id*integer

Id of the node

Formatint64

Request Body

The new parent folder

application/json
  1. body
parentId?integer

Id of the folder that will hold the node

Formatint64

Response Body

The moved node

application/json
  1. response
id?integer
Formatint64
isFolder?boolean
name?string
parent?

The folder that holds the node; absent on a root

Example Request
curl -X PUT 'https://bpms.bpms.work/api/v1/model/nodes/0/parent' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": 0,  "isFolder": true,  "name": "string",  "parent": {    "id": 0,    "isFolder": true,    "name": "string"  }}