Example JSON Request and Response - POST Tasks

General Task


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

Header:
content-type: application/json; charset=utf-8
content-length: 151

Body:
{
  "reference": "GenTask1",
  "name": "General Task 1",
  "description": "This is a general task",
  "startDate": "2018-05-11T08:46:33.9804989+01:00",
  "expiryDate": "2018-05-15T08:46:33.9804989+01:00",
  "executor": {
    "id": 1234,
  }
}

Response body:
{
  "id": 25,
  "reference": "GenTask1",
  "href": "https://...surpass.com/api/v2/GeneralTask/25",
  "errors": null,
  "serverTimeZone": null
}


Item Review Task


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

Header:
content-type: 
content-length: 500

Body:
{
  "reference": "ItemReview1",
  "name": "Item Review 1",
  "description": "A list of items for review",
  "startDate": "2018-05-14T07:54:02.3280627+01:00",
  "expiryDate": "2018-05-14T07:54:02.3280627+01:00",
  "itemList": {
    "id": 12,
    "reference": "ItemList"
  },
  "executors": [
    {
      "id": 134,
      "reference": "sample string 1"
    },
    {
      "id": 567,
      "reference": "sample string 1"
    },
    {
      "id": 25,
      "reference": "sample string 1"
    }
  ]
}

Response Body:
{
  "id": 26,
  "reference": "ItemReview1",
  "href": "https://...surpass.com/api/v2/ItemReviewTask/26",
  "errors": null,
  "serverTimeZone": null
}

Feedback and Knowledge Base