Sets the priority of a workflow task. Priority helps assignees and supervisors gauge the urgency of pending work.
/srv.asmx/SetTaskPriority
/srv.asmx/SetTaskPriority?authenticationTicket=...&taskId=...&taskPriority=.../srv.asmx/SetTaskPriority (form data)http://tempuri.org/SetTaskPriority| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
taskId |
integer | Yes | Unique numeric ID of the task. |
taskPriority |
integer | Yes | Priority level code. See table below. |
| Value | Name | Description |
|---|---|---|
0 |
NoPriority |
No priority assigned. |
1 |
Low |
Low priority. |
5 |
Normal |
Normal priority. |
10 |
High |
High priority. |
11 |
Urgent |
Urgent priority. |
<root success="true" />
<root success="false" error="Access Denied" />
The calling user must be either:
Anonymous access is not permitted.
Priority cannot be changed for tasks in Completed state. All other states (InProgress, DueDateChanged, NotStarted, Dropped, Reassigned) are allowed if permissions are satisfied.
GET /srv.asmx/SetTaskPriority
?authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
&taskId=4812
&taskPriority=10
HTTP/1.1
Host: yourserver
POST /srv.asmx/SetTaskPriority HTTP/1.1
Host: yourserver
Content-Type: application/x-www-form-urlencoded
authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c&taskId=4812&taskPriority=10
Priority field.| Error | Description |
|---|---|
[900] |
Authentication failed -“ invalid credentials. |
[901] |
Session expired or invalid authentication ticket. |
| Task not found | No task with the specified taskId exists. |
| Access Denied | Calling user is not the task assignee with Change Priority permission, or a supervisor. |
| Task completed | Priority cannot be changed for a completed task. |