CancelTask

This method will cancel a task.

The task will first be updated with status Cancelled and then be sent to audit-log before be deleted from the system.

Parameters

SessionId

The current session id as base64-string. This type is mandatory.

Id

The id of the task as numeric-string value. This type is mandatory.

Count

The current call-count of the session. This must be a numeric value. This type is mandatory.

SOAP implementation

Content type

text/xml; charset="utf-8";

Header

Action: "http://www.pointsharp.com/netid/server/portal/IServiceSoap/CancelTask"

Request
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
        <CancelTask xmlns="http://www.pointsharp.com/netid/server/portal">
            <Info>
                <SessionId></SessionId>
                <Id>82</Id>
                <Count>2</Count>
            </Info>
        </CancelTask>
    </s:Body>
</s:Envelope>
Response

The response will contain the current task with updated status to Cancelled.

REST implementation

Content type

application/json; charset="utf-8";

Method

POST

URI

/api/task/cancel

Request
{
    "SessionId": "",
    "Id": "82",
    "Count": "2"
}
Response

The response will contain the current task with updated status to Cancelled.