[POST] /families
/api/bpm/families
Description | Creates new families in an organization. By default, the active organization will be used. Optionally, an organizationId could be sent if families in the nonactive organization should be created. Request body consists of a family object that need to be created. Mandatory properties are name, parentId and type (PROJECT or FAMILY). Description is optional. If the type is FAMILY 2 additional optional properties can be set:
|
|---|---|
Required Systemrole | R_WFEDIT_START (ID = 21) |
Request | POST |
Request Optional Query Parameter |
|
Response | JSON |
Minimum Version | BPM Service: 1.4.0 |
Request |
|
Request | {
"objects": [{
"name": "Workflow Project",
"description": "Test project",
"type": "PROJECT",
"parentId": "52B18770BA69487FB2BA6A6636B9CD31"
},{
"name": "Workflow Family",
"description": "Test family",
"type": "FAMILY",
"parentId": "542B96C64ABE4E549F6C99CD3709A78B",
"priority": 50,
"statistic": {
"users": [{
"id": "11B18770BA69487FB2BA6A6636B9CD11"
}],
"roles": [{
"id": "22B18770BA69487FB2BA6A6636B9CD22"
}]
}
}]
} |
Response | {
"objects": [{
"id": "542B96C64ABE4E549F6C99CD3709A78B",
"name": "Workflow Project",
"description": "Test project",
"type": "PROJECT",
"parentId": "52B18770BA69487FB2BA6A6636B9CD31"
},{
"id": "D33F5097F6DF497CA066C2646C9D9BF0",
"name": "Workflow Family",
"description": "Test family",
"type": "FAMILY",
"parentId": "542B96C64ABE4E549F6C99CD3709A78B",
"priority": 50,
"statistic": {
"users": [{
"id": "11B18770BA69487FB2BA6A6636B9CD11"
}],
"roles": [{
"id": "22B18770BA69487FB2BA6A6636B9CD22"
}]
}
}]
} |
Response codes |
|