ReleaseTask

This method will release the task from current user. This means that other users can continue working with the task. This call must be encrypted.

Parameters

SessionId

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

Id

The id of current task that should be released. 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/ReleaseTask"

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

The response will contain the current task with updated message that optionally can be presented by client. Note that the status of the task is updated to Ready and can be loaded from another user.

<Task>
    <Id>10434</Id>
    <OrganizationId>2</OrganizationId>
    <RequestorId>21</RequestorId>
    <BehalfOfId>0</BehalfOfId>
    <ProcessorId>0</ProcessorId>
    <EntityId>5</EntityId>
    <EntityType>User</EntityType>
    <EntityDescription>John Doe</EntityDescription>
    <ValidFrom>2023-09-13 12:26:58</ValidFrom>
    <ValidTo>2023-09-20 12:26:58</ValidTo>
    <DateTime>2023-09-13 12:27:59</DateTime>
    <Type>
        <Id>123</Id>
        <Name>Updateuser</Name>
    </Type>
    <Status>
        <Id>10</Id>
        <Name>Ready</Name>
        <DateTime>2023-09-13 12:27:59</DateTime>
    </Status>
    <Message>
        <Code>NPR_TASK_RELEASED</Code>
        <Type>Info</Type>
    </Message>
</Task>

REST implementation

Content type

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

Method

POST

URI

/api/task/release

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

The response will contain the current task with updated message that optionally can be presented by client. Note that the status of the task is updated to Ready and can be loaded from another user.

{
    "Task": {
        "Id": "10434",
        "OrganizationId": "2",
        "RequestorId": "21",
        "BehalfOfId": "0",
        "ProcessorId": "0",
        "EntityId": "5",
        "EntityType": "User",
        "EntityDescription": "John Doe",
        "ValidFrom": "2023-09-13 12:26:58",
        "ValidTo": "2023-09-20 12:26:58",
        "DateTime": "2023-09-13 12:27:59",
        "Type": {
            "Id": "123",
            "Name": "Updateuser"
        },
        "Status": {
            "Id": "10",
            "Name": "Ready",
            "DateTime": "2023-09-13 12:27:59"
        },
        "Message": {
            "Code": "NPR_TASK_RELEASED",
            "Type": "Info"
        }
    }
}