Delete an instance of tasks

delete

/services/rest/connect/latest/tasks/{id}

Request

Path Parameters

Response

Default Response

Body ()
Root Schema : No content
Type: null
Title: No content
No content returned on delete

Examples

Use DELETE with the following syntax to delete a task object:

https://your_site_interface/services/rest/connect/version/tasks/task_id

Request URI example

https://mysite.example.com/services/rest/connect/v1.4/tasks/7

Response example

The status 200 OK is returned. Then running this ROQL tabular query on task records:

https://mysite.example.com/services/rest/connect/v1.4/queryResults?
query=select id,name from tasks

returns the following:

{
  "items": [
    {
      "tableName": "tasks",
      "count": 10,
      "columnNames": [
        "id",
        "name"
      ],
      "rows": [
        [
          "1",
          "1 - qualify lead"
        ],
        [
          "2",
          "2 - request for proposal"
        ],
        [
          "3",
          "3 - sales presentation"
        ],
        [
          "4",
          "4 - negotiation"
        ],
        [
          "5",
          "5 - close sale"
        ],
        [
          "6",
          "Proof Sending"
        ],
        [
          "8",
          "Send invitations"
        ],
        [
          "9",
          "Schedule internal trial"
        ],
        [
          "10",
          "Define lead qualification process"
        ],
        [
          "11",
          "Complete external event"
        ]
      ]
    }
  ],
  "links": [
    {
      "rel": "self",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/queryResults?
       query=select%20id,name%20from%20tasks"
    },
    {
      "rel": "canonical",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/queryResults"
    },
    {
      "rel": "describedby",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/queryResults",
      "mediaType": "application/schema+json"
    }
  ]
}

Note:

Task 7 no longer exists.