Function: Edits task, insert in the audit log and sends an email alert.
Web service call: https://proworkflow2.net/pwfaccountname/api/v2/tasks.cfm?customerkey=84DC6CF8-BF78-D79D-B25B-0C0D20229F17&api_call=edittask&UserID=xxx
Method: POST
XML Request Data:
  1.  
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <edittask>
  4. <taskid>56</taskid> REQUIRED FIELD
  5. <taskassignedto>5</taskassignedto> REQUIRED FIELD
  6. <tasktimeallocated>120</tasktimeallocated>
  7. <taskdatestart>02-Jan-2009</taskdatestart>
  8. <taskdatedue>02-Feb-2009</taskdatedue>
  9. <taskdatecompleted>02-Feb-2009</taskdatecompleted>
  10. <tasktype>normal</tasktype>
  11. <tasktitle>Website Update</tasktitle> REQUIRED FIELD
  12. <taskbillable>yes</taskbillable> (1 for Yes, 0 for No)
  13. <taskorder>1.2</taskorder>
  14. <taskjobid>957</taskjobid> (Not required for General Task)
  15. <taskcatid>2</taskcatid>
  16. <taskdescription>Sample description</taskdescription>
  17. <taskpriority>3</taskpriority>
  18. <taskstatus>A</taskstatus> (A for Active, C for Completed)
  19. <taskdependent>no</taskdependent>
  20. </edittask>
  21.  
URL Parameters: UserID is mandatory.
Notes: Required fields must be included, other fields can be omitted.
Return Data: XML data packet is constructed by the web service and sent to the user. It contains the success or failure message.
Status messages: Success, Failure or Error.

 

Example of return data:
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <edittask>
  3. <status>Success</status>
  4. <details>
  5. <message>Task edited</message>
  6. <taskid>1796</taskid>
  7. </details>
  8. </edittask>
  9.  
  10. OR
  11.  
  12. <?xml version="1.0" encoding="UTF-8"?>
  13. <edittask>
  14. <status>Failure</status>
  15. <details>
  16. <message>Error: You don't have permission to perform this action.</message>
  17. </details>
  18. </edittask>
VN:F [1.7.5_995]
Was this article useful?