POST v1/tasks/add
save task to storage
Request Information
URI Parameters
None.
Body Parameters
ConfidenceApps.Interfaces.Tasks.ITask| Name | Description | Type | Additional information |
|---|---|---|---|
| AllowCancelation |
Indicates if the task can be canceled by the user of the metaApp. |
boolean |
None. |
| AppIcon |
The custom icon of the related CApp. |
Collection of byte |
None. |
| AppId |
The id of the app the task can be solved with. |
globally unique identifier |
None. |
| AppTitle |
The title of the CApp. |
string |
None. |
| Data |
The list of data to preallocate the related CApp. |
Collection of ConfidenceApps.Interfaces.Tasks.IDataEntry |
None. |
| DeadLine |
The deadline holds the datetime a task should be done by the assigned user. |
date |
None. |
| ForeignKey |
A key to identify an initiating process that generated the task in unknown format (PRIS). |
string |
None. |
| Info |
Additional information for the dispatched user. |
string |
None. |
| IsChanged |
Indicates if at least one property has changed since the last reset (except Id). Can be reseted by set to false. |
boolean |
None. |
| IsOpenProcess |
Indicates if the task was created after abort an process with saving data. |
boolean |
None. |
| Location |
The location, where the task can be solved. |
ConfidenceApps.Interfaces.Tasks.IWaypoint |
None. |
| Name |
The title of the task. |
string |
None. |
| ParentId |
The guid of the task´s parent. |
globally unique identifier |
None. |
| Priority |
The priority of the task indicates how important is the dispatched task. Default value is "Normal". |
ConfidenceApps.Types.Prio |
None. |
| Status |
The current status of the task. |
ConfidenceApps.Types.State |
None. |
| TimeStamp |
The timestamp gives the time of creation, when the task has been published to the cc-portal´s user. |
date |
None. |
| Type |
Template for the task. Stores configuration of a task to reuse it for several real tasks. |
ConfidenceApps.Interfaces.Tasks.ITaskType |
None. |
| User |
The user-id from the CC-Portal stores the user who is selected for solving the task. The user name (currently a 4-ciphers number). |
string |
None. |
| Version |
The used version for task exchange information. |
string |
None. |
| AllowTaskReAssign |
Defines if it is allowed to reassign tasks to another user. |
boolean |
None. |
| TaskMappingId |
The id of the associated taskmapping. |
globally unique identifier |
None. |
| ServerTimeStamp |
The last modification on the cloud portal server |
date |
None. |
| LastPosition |
contains the guid of the last active control before saving when loading a tasks, this position will be set. |
globally unique identifier |
None. |
| SyncId |
Id for synchronization |
globally unique identifier |
None. |
Request Formats
application/json, text/json
{
"allowCancelation": false,
"appId": "dd4b0b80-5f35-40bf-8dbb-26bc9b528726",
"deadLine": "0001-01-01T00:00:00",
"id": "f68b258c-8617-4a3f-bcc0-ce13d2990719",
"isOpenProcess": false,
"name": "Sample Task",
"parentId": "00000000-0000-0000-0000-000000000000",
"priority": "Low",
"status": "New",
"timeStamp": "0001-01-01T00:00:00",
"isChanged": false,
"referenceId": "00000000-0000-0000-0000-000000000000",
"createdAt": "0001-01-01T00:00:00",
"modifiedAt": "0001-01-01T00:00:00",
"allowTaskReAssign": false,
"data": []
}
Response Information
Resource Description
System.Net.Http.HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | System.Version |
None. |
|
| Content | System.Net.Http.HttpContent |
None. |
|
| StatusCode | System.Net.HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | System.Net.Http.HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |