Skip to Content
bpms.ai
ReferenceModel

Create a folder or a model

POST
/api/v1/model/nodes

Creates a folder or an empty model in a folder of the tenant of the request, as the 3.x new_folder and new_file do; a model gets a new uuid, and its diagram is saved apart. Requires the 3.x authority 2.1.3 or 2.1.4.

Authorization

bearer
headerAuthorizationBearer <token>

The token of a session that createSession opened

Request Body

The parent folder, name, and kind

application/json
  1. body
isFolder?boolean

True for a folder, false for a model

name?string

Name of the node, up to 255 characters

parentId?integer

Id of the folder that will hold the node

Formatint64

Response Body

The created node; Location names it

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 POST 'https://bpms.bpms.work/api/v1/model/nodes' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": 0,  "isFolder": true,  "name": "string",  "parent": {    "id": 0,    "isFolder": true,    "name": "string"  }}