CreateTask

This method will create a new task against an entity.

Parameters

SessionId

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

Type

The type of the task, either as a numeric value of the task type or name of the task type. This type is mandatory.

Id

The id of the entity of the task as a numeric value (e.g. the id of a user).

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/CreateTask"

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>
        <CreateTask xmlns="http://www.pointsharp.com/netid/server/portal">
            <Info>
                <SessionId></SessionId>
                <Type>999</Type>
                <Id>3</Id>
                <Count>2</Count>
            </Info>
        </CreateTask>
    </s:Body>
</s:Envelope>
Response

The response will contain the new task with initial action.

REST implementation

Content type

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

Method

POST

URI

/api/task/create

Request
{
    "SessionId": "",
    "Type": "999",
    "Id": "3",
    "Count": "2"
}
Response

The response will contain the new task with initial action.