SaveTask
This method will save the edited task against the server in order to continue the task later. The method is similar to ExecuteTask but the server will not process the the task in this case. This call must be encrypted.
Example of how to edit an input field in XML
<InputFieldObj>
<Id>SomeInputField</Id>
<Value>Some text... that is edited...</Value>
<Type>Text</Type>
<Policy />
<ReadOnly>false</ReadOnly>
<ValueList />
<FunctionList />
</InputFieldObj>
Example of how to edit an input field in JSON
{
"Id": "SomeInputField",
"Value": "Some text... that is edited...",
"Type": "Text",
"Policy": null,
"ReadOnly": "false",
"ValueList": null,
"FunctionList": null
}
Parameters
- SessionId
-
The current session id as base64-string. This type is mandatory.
- Task
-
The entire task that has been updated on the client. 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/SaveTask"
- 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> <SaveTask xmlns="http://www.pointsharp.com/netid/server/portal"> <Info> <SessionId></SessionId> <Task>...</Task> <Count>2</Count> </Info> </SaveTask> </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 task is still in progress by current user and can not be used by anyone else.
<Task> ... <Message> <Code>NPR_TASK_SAVED</Code> <Type>Info</Type> </Message> </Task>
REST implementation
- Content type
-
application/json; charset="utf-8";
- Method
-
POST
- URI
-
/api/task/save
- Request
-
{ "SessionId": "", "Task": "...", "Count": "2" } - Response
-
The response will contain the current task with updated message that optionally can be presented by client. Note that the task is still in progress by current user and can not be used by anyone else.
{ "Task": { "...", "Message": { "Code": "NPR_TASK_SAVED", "Type": "Info" } } }