POST v1_0/TaskLine
Create a new taskLine for a specified project
Request Information
URI Parameters
None.
Body Parameters
The specification of the line of the app project
TaskLineWriterServiceModelName | Description | Type | Additional information |
---|---|---|---|
IdAppProject | integer |
Required Range: inclusive between 1 and 2147483647 |
|
Inputs | Collection of string |
Required |
Request Formats
application/json, text/json
Sample:
{ "IdAppProject": 1, "Inputs": [ "sample string 1", "sample string 2" ] }
text/html
Sample:
{"IdAppProject":1,"Inputs":["sample string 1","sample string 2"]}
application/xml, text/xml
Sample:
<TaskLineWriterServiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Wirk.Api.Models.TaskLine"> <IdAppProject>1</IdAppProject> <Inputs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Inputs> </TaskLineWriterServiceModel>
Response Information
Resource Description
The description of this new task line
TaskLineReaderServiceModelName | Description | Type | Additional information |
---|---|---|---|
IdTaskLine |
Taskline identifier |
integer |
None. |
IdAppProject |
AppProject identifier related to this task line |
integer |
None. |
Inputs |
The list of the different inputs of this task line |
Collection of string |
None. |
Tasks |
The list of the different tasks related to this task line |
Collection of TaskReaderServiceModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "IdTaskLine": 1, "IdAppProject": 2, "Inputs": [ "sample string 1", "sample string 2" ], "Tasks": [ { "IdTask": 1, "Outputs": { "1": "sample string 2", "3": "sample string 4" }, "UpdateDate": "2024-11-21T05:11:21.0120043+01:00" }, { "IdTask": 1, "Outputs": { "1": "sample string 2", "3": "sample string 4" }, "UpdateDate": "2024-11-21T05:11:21.0120043+01:00" } ] }
text/html
Sample:
{"IdTaskLine":1,"IdAppProject":2,"Inputs":["sample string 1","sample string 2"],"Tasks":[{"IdTask":1,"Outputs":{"1":"sample string 2","3":"sample string 4"},"UpdateDate":"2024-11-21T05:11:21.0120043+01:00"},{"IdTask":1,"Outputs":{"1":"sample string 2","3":"sample string 4"},"UpdateDate":"2024-11-21T05:11:21.0120043+01:00"}]}
application/xml, text/xml
Sample:
<TaskLineReaderServiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Wirk.Api.Models.TaskLine"> <IdAppProject>2</IdAppProject> <IdTaskLine>1</IdTaskLine> <Inputs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Inputs> <Tasks> <TaskReaderServiceModel> <IdTask>1</IdTask> <Outputs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfintstring> <d4p1:Key>1</d4p1:Key> <d4p1:Value>sample string 2</d4p1:Value> </d4p1:KeyValueOfintstring> <d4p1:KeyValueOfintstring> <d4p1:Key>3</d4p1:Key> <d4p1:Value>sample string 4</d4p1:Value> </d4p1:KeyValueOfintstring> </Outputs> <UpdateDate>2024-11-21T05:11:21.0120043+01:00</UpdateDate> </TaskReaderServiceModel> <TaskReaderServiceModel> <IdTask>1</IdTask> <Outputs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfintstring> <d4p1:Key>1</d4p1:Key> <d4p1:Value>sample string 2</d4p1:Value> </d4p1:KeyValueOfintstring> <d4p1:KeyValueOfintstring> <d4p1:Key>3</d4p1:Key> <d4p1:Value>sample string 4</d4p1:Value> </d4p1:KeyValueOfintstring> </Outputs> <UpdateDate>2024-11-21T05:11:21.0120043+01:00</UpdateDate> </TaskReaderServiceModel> </Tasks> </TaskLineReaderServiceModel>