Approval Task Web Services
Universal Controller supports the following RESTful-based web services for Approval Task operations, which are listed alphabetically on this page.
Formatting specifications for each web service, including details about parameter requirements, are provided.
Links to detailed information about the properties used in these web services also is located on this page.
For information on Task web services that are applicable to all task types, see:
Create an Approval Task
Description | |
|---|---|
URI | http://host_name/uc/resources/task |
HTTP Method | POST |
Description | Creates a new Approval task. |
Example URI | |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example | See Approval Task: XML and JSON Examples, below. |
Properties | See Properties. |
Example Response |
|
Modify an Approval Task
Description | |
|---|---|
URI | http://host_name/uc/resources/task |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
HTTP Method | PUT |
Description | Modifies the task specified by the sysId in the request. To modify Approval Task properties without modifying related records, use the excludeRelated property. |
Example | |
Properties | See Properties. |
Example Response |
|
Read an Approval Task
Description | |
|---|---|
URI | http://host_name/uc/resources/task |
HTTP Method | GET |
Description | Retrieves information on the specified task. |
Request Parameters |
|
Mutually Exclusive Parameters |
|
Example URI | |
Consumes Content-Type | n/a |
Produces Content-Type | application/xml, application/json |
Example Response |
|
Approval Task: XML and JSON Examples
The retainSysIdsand versionproperties are specified as attributes in XML.
The exportReleaseLevel and exportTable properties are specified as attributes in XML.
- JSON
- XML
JSON
{
"type": "taskApproval",
"actions": {
"abortActions": [],
"emailNotifications": [],
"setVariableActions": [],
"snmpNotifications": [],
"systemOperations": []
},
"approvalCriteria": {
"criteria": [
{
"type": "criterion",
"user": "ops.admin",
"userDisplayName": "Administrator"
},
{
"type": "criterion",
"group": "Group1"
}
],
"logicalOperator": "And"
},
"approvalDescription": null,
"approvalLinks": [],
"cpDuration": null,
"cpDurationUnit": "Minutes",
"customField1": {
"label": null,
"value": null
},
"customField2": {
"label": null,
"value": null
},
"efDayConstraint": "None",
"efDuration": "00:00:00:00",
"efEnabled": false,
"efNthAmount": 5,
"efOffsetDuration": null,
"efOffsetDurationUnit": "Minutes",
"efOffsetPercentage": 0,
"efOffsetType": "Percentage",
"efTime": "00:00",
"efType": "Time",
"enforceVariables": false,
"exclusiveTasks": [],
"exclusiveWithSelf": false,
"executionRestriction": "None",
"exportReleaseLevel": "8.0.0.0",
"exportTable": "ops_task_approval",
"firstRun": "",
"holdResources": false,
"lastRun": "",
"lfDayConstraint": "None",
"lfDuration": "00:00:00:00",
"lfEnabled": false,
"lfNthAmount": 5,
"lfOffsetDuration": null,
"lfOffsetDurationUnit": "Minutes",
"lfOffsetPercentage": 0,
"lfOffsetType": "Percentage",
"lfTime": "00:00",
"lfType": "Time",
"lockVariables": false,
"logLevel": "Inherited",
"lsDayConstraint": "None",
"lsDuration": "00:00:00:00",
"lsEnabled": false,
"lsNthAmount": 5,
"lsTime": "00:00",
"lsType": "Time",
"name": "stonebranch-task-001",
"notes": [],
"opswiseGroups": [],
"overrideInstanceWait": "No",
"resPriority": 10,
"resPriorityVar": null,
"resolveNameImmediately": false,
"restrictionPeriod": "None",
"restrictionPeriodAfterDate": null,
"restrictionPeriodAfterTime": null,
"restrictionPeriodBeforeDate": null,
"restrictionPeriodBeforeTime": null,
"restrictionPeriodDateList": [],
"retainSysIds": true,
"runCount": 0,
"runTime": 0,
"simulation": false,
"startHeld": false,
"startHeldReason": null,
"summary": null,
"sysId": "9a8f98514cf14a44a54c58ce0ad7a275",
"timeZonePref": "-- System Default --",
"twDelayAmount": null,
"twDelayDuration": "00:00:00:00",
"twDelayType": "None",
"twWaitAmount": null,
"twWaitDayConstraint": "None",
"twWaitDuration": "00:00:00:00",
"twWaitTime": "00:00",
"twWaitType": "None",
"twWorkflowOnly": "-- System Default --",
"userEstimatedDuration": null,
"variables": [],
"version": 5,
"virtualResources": []
}
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<taskApproval exportReleaseLevel="8.0.0.0" exportTable="ops_task_approval" retainSysIds="true" version="6">
<variables/>
<notes/>
<approvalCriteria>
<criterion>
<user>ops.admin</user>
<userDisplayName>Administrator</userDisplayName>
</criterion>
<criterion>
<group>Group1</group>
</criterion>
<logicalOperator>And</logicalOperator>
</approvalCriteria>
<approvalDescription />
<approvalLinks/>
<cpDuration />
<cpDurationUnit>Minutes</cpDurationUnit>
<customField1/>
<customField2/>
<efDayConstraint>None</efDayConstraint>
<efDuration>00:00:00:00</efDuration>
<efEnabled>false</efEnabled>
<efNthAmount>5</efNthAmount>
<efOffsetDuration />
<efOffsetDurationUnit>Minutes</efOffsetDurationUnit>
<efOffsetPercentage>0</efOffsetPercentage>
<efOffsetType>Percentage</efOffsetType>
<efTime>00:00</efTime>
<efType>Time</efType>
<enforceVariables>false</enforceVariables>
<exclusiveWithSelf>false</exclusiveWithSelf>
<executionRestriction>None</executionRestriction>
<firstRun></firstRun>
<holdResources>false</holdResources>
<lastRun></lastRun>
<lfDayConstraint>None</lfDayConstraint>
<lfDuration>00:00:00:00</lfDuration>
<lfEnabled>false</lfEnabled>
<lfNthAmount>5</lfNthAmount>
<lfOffsetDuration />
<lfOffsetDurationUnit>Minutes</lfOffsetDurationUnit>
<lfOffsetPercentage>0</lfOffsetPercentage>
<lfOffsetType>Percentage</lfOffsetType>
<lfTime>00:00</lfTime>
<lfType>Time</lfType>
<lockVariables>false</lockVariables>
<logLevel>Inherited</logLevel>
<lsDayConstraint>None</lsDayConstraint>
<lsDuration>00:00:00:00</lsDuration>
<lsEnabled>false</lsEnabled>
<lsNthAmount>5</lsNthAmount>
<lsTime>00:00</lsTime>
<lsType>Time</lsType>
<name>stonebranch-task-001</name>
<actions/>
<opswiseGroups/>
<overrideInstanceWait>No</overrideInstanceWait>
<resPriority>10</resPriority>
<resPriorityVar />
<resolveNameImmediately>false</resolveNameImmediately>
<restrictionPeriod>None</restrictionPeriod>
<restrictionPeriodAfterDate />
<restrictionPeriodAfterTime />
<restrictionPeriodBeforeDate />
<restrictionPeriodBeforeTime />
<restrictionPeriodDateList/>
<runCount>0</runCount>
<runTime>0</runTime>
<simulation>false</simulation>
<startHeld>false</startHeld>
<startHeldReason />
<summary />
<sysId>9a8f98514cf14a44a54c58ce0ad7a275</sysId>
<exclusiveTasks/>
<virtualResources/>
<timeZonePref>-- System Default --</timeZonePref>
<twDelayAmount />
<twDelayDuration>00:00:00:00</twDelayDuration>
<twDelayType>None</twDelayType>
<twWaitAmount />
<twWaitDayConstraint>None</twWaitDayConstraint>
<twWaitDuration>00:00:00:00</twWaitDuration>
<twWaitTime>00:00</twWaitTime>
<twWaitType>None</twWaitType>
<twWorkflowOnly>-- System Default --</twWorkflowOnly>
<userEstimatedDuration />
</taskApproval>
See Task Web Services - Task Actions for XML and JSON examples of task actions.
See Task Web Services - Task-Related Records for XML and JSON examples of task-related records.