- URL:
- https://<root>/<serviceName>/TopographicProductionServer/workflows/taskgroups/addTaskGroup
- Methods:
GETPOST- Required Capability:
- Requires a Professional or Professional Plus user type account and a Topographic Mapping server extension license.
- Version Introduced:
- 12.0
Description
The addTaskGroup operation combines a workflow definition with specifics required by an organization into an SOE task group that can be used by the create operation to create SOE jobs that result in ArcGIS Workflow Manager parent and child jobs.
Request parameters
| Parameter | Details |
|---|---|
(Required) | The name of the SOE task group. |
(Required) | The description of the SOE task group. |
(Required) | The days and hours that organization members are available to complete the work. Syntax: Example: |
(Required) | The exact name of the existing workflow product definition. |
(Required) | The response format. The default format is Values: |
JSON Response syntax
The following is the syntax of a response:
{
"taskGroup": {
"objectId": "<object ID>",
"taskGroupId": "<task group ID>",
"name": "<task group name>",
"description": "<task group description>",
"productName": "<name of the product>",
"workdays": {
"days": "<Day's initial>",
"hours": <number of hours>
}
},
"success": <true | false>
}Example usage
Add a task group definition to the topographic production server using the add REST operation.
Request URL and parameters:
https://organization.example.com/<context>/rest/services/<SampleService>/TopographicProductionServer/workflows/taskgroups/addTaskGroupname=Task group 1
description=The first SOE task group
workdays={\"days\": \"MTWRF\", \"hours\": 8}
productName=MTMCartoServerProduct
f=jsonJSON Response example
The following is an example response when the task group is added successfully:
{
"taskGroup": {
"objectId": 7,
"taskGroupId": "A1DA2B65-AB32-40FD-82C1-882F4878F160",
"name": "Task group 1",
"description": "The first SOE task group",
"productName": "MTMCartoServerProduct",
"workdays": {
"days": "MTWRF",
"hours": 8
}
},
"success": true
}The following is an example error response:
{
"error": {
"code": 0,
"message": "Duplicate name found. Duplicate names are not allowed.",
"details": [
]
}
}