DELETE api/Tasks/{id}

Deletes a task.

Request

Parameters

Name Description Default
id Unique task ID.

Response

Body

Content Type: application/xml or application/json
Success status or an error message.

XML JSON
<Response>                     
  <Result>string</Result>      <!--Always 'Success'--> 
  <Message>string</Message>    <!--Error message--> 
</Response>                    
{                         
   "Result": "string",    // Always 'Success'
   "Message": "string"    // Error message
}                         
                          

Status Codes

Code Condition
200 OK The operation completed successfully.
400 Bad RequestInvalid task ID.
401 Unauthorized Access token is invalid, expired or not specified.
403 ForbiddenUser does not have permission to delete the task.
404 Not FoundTask not found.
406 Not Acceptable Content type specified in the Accept header isn't supported.
409 ConflictTask cannot be deleted.
500 Internal Server Error An internal error occurred.

Remarks

Tasks can be deleted only if they have been completed or are not yet commenced.