A) Sample to create single structure:
{
"parentId": "3904db18-cf1a-4665-9c2b-152b84293259",
"name": "TestStructure",
"description": "FullLifeCycleTest",
"type": "CostStructure",
"nr": 1,
"color": 0,
"id": "179439d6-df16-41cc-bd2c-74d05b7995d5"
}
B) Sample to create structure hierarchy:
{
"projectId": "3904db18-cf1a-4665-9c2b-152b84293259",
"name": "Status structure",
"description": "Status of the project (enumeration)",
"type": "mainStructure2",
"nr": 0,
"id": "ee209608-19b1-40da-a089-53b20a858d41",
"structuretypeid": "14c1ca64-4001-438f-a2f6-77ca951c488d",
"children": [
{
"structuretypeid": "14c1ca64-4001-438f-a2f6-77ca951c488d",
"children": [],
"elements": [],
"parentId": "ee209608-19b1-40da-a089-53b20a858d41",
"name": "Undefined",
"description": "0",
"type": "mainStructure2",
"nr": 0,
"id": "40da49c5-3f3a-4e12-a4f8-94fb829c7c1e"
},
{
"structuretypeid": "14c1ca64-4001-438f-a2f6-77ca951c488d",
"children": [],
"elements": [],
"parentId": "ee209608-19b1-40da-a089-53b20a858d41",
"name": "in planning stage",
"description": "1",
"type": "mainStructure2",
"nr": 0,
"id": "ecf9c518-1e24-4706-8557-d29d75fb7ddc"
},
......
],
"elements": []
} |