POST api/modeler/folder/new

Creates a new folder or updates one depending on if the ID exists or not

Request Information

URI Parameters

None.

Body Parameters

ModelerFolder
NameDescriptionTypeAdditional information
Name

string

None.

ParentId

globally unique identifier

None.

UserList

Collection of User

None.

id

globally unique identifier

None.

ConfigId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "ParentId": "8affaacd-0036-4b5d-888e-e82a1e14414f",
  "UserList": [
    {
      "UserId": "4cf12193-98ca-4914-b1a0-64c86d339695",
      "Permission": 0,
      "Inherited": true
    },
    {
      "UserId": "4cf12193-98ca-4914-b1a0-64c86d339695",
      "Permission": 0,
      "Inherited": true
    }
  ],
  "__app__": "WORKPLANNER",
  "__entity_kind__": "WorkPlanner.Models.ModelerFolder",
  "id": "43649e20-cd3a-4d79-a767-ddbfbe8c185a",
  "RestoreFromId": "00000000-0000-0000-0000-000000000000",
  "ConfigId": "179e9799-2071-4cb8-9441-5d5138a15986",
  "_ts": 638648370785901876
}

Response Information

Resource Description

ModelerFolder
NameDescriptionTypeAdditional information
Name

string

None.

ParentId

globally unique identifier

None.

UserList

Collection of User

None.

id

globally unique identifier

None.

ConfigId

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "ParentId": "2d5d7693-3de4-4783-a266-7cbcea2b16ee",
  "UserList": [
    {
      "UserId": "0b01dbb0-bae3-4706-9991-0d7344942cef",
      "Permission": 0,
      "Inherited": true
    },
    {
      "UserId": "0b01dbb0-bae3-4706-9991-0d7344942cef",
      "Permission": 0,
      "Inherited": true
    }
  ],
  "id": "33b64be0-04db-42f6-bd21-5f631ce98351",
  "ConfigId": "c0475c65-127f-44e6-b615-210916b871a8"
}