Example XML Request and Response - POST Tasks

General Task


https://...surpass.com/api/v2/POST/GeneralTask

Header:
content-length: 402
content-type: application-xml

Request:
<generalTask xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <reference>GeneralTask1</reference>
  <name>General Task</name>
  <description>This is a general task.</description>
  <startDate>2018-05-14T07:54:02.3124384+01:00</startDate>
  <expiryDate>2018-05-14T07:54:02.3124384+01:00</expiryDate>
  <executor>
    <reference>sample string 1</reference>
    <id>1</id>
  </executor>
</generalTask>

Response:
<response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <id>28</id>
  <reference>GeneralTask1</reference>
  <href>https://...surpass.com/api/v2/GeneralTask/28</href>
  <errors>null</errors>
</response>

Item Review Task


https://...surpass.com/api/v2/POST/ItemReviewTask  

Header:
content-length: 446
content-type: application-xml

Request:
<itemReviewTask xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <reference>ItemReview2</reference>
  <name>Item Review 2</name>
  <description>This is an Item Review</description>
  <startDate>2018-05-14T07:54:02.3280627+01:00</startDate>
  <expiryDate>2018-05-18T07:54:02.3280627+01:00</expiryDate>
  <itemList>
    <id>12</id>
  </itemList>
  <executors>
    <resource>
      <id>158</id>
    </resource>
  </executors>
</itemReviewTask>

Response:
<response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <id>27</id>
  <reference>ItemReview2</reference>
  <href>https://...surpass.com/api/v2/ItemReviewTask/27</href>
  <errors>null</errors>
</response>

Feedback and Knowledge Base