POST api/Task/postTask
Creacion de Nueva tarea: se envian los datos de la tarea como el array de los colaboradores que formaran parte de ella.
Request Information
URI Parameters
None.
Body Parameters
Collection of taskInsert| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| id_creator | integer |
None. |
|
| id_farm | integer |
None. |
|
| id_corp | integer |
None. |
|
| id_participant | integer |
None. |
|
| name | string |
None. |
|
| description | string |
None. |
|
| username | string |
None. |
|
| Lastname | string |
None. |
|
| date_task | date |
None. |
|
| string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"id": 1,
"id_creator": 2,
"id_farm": 3,
"id_corp": 4,
"id_participant": 5,
"name": "sample string 6",
"description": "sample string 7",
"username": "sample string 8",
"Lastname": "sample string 9",
"date_task": "2025-12-09T18:47:57.8889516+00:00",
"email": "sample string 11"
},
{
"id": 1,
"id_creator": 2,
"id_farm": 3,
"id_corp": 4,
"id_participant": 5,
"name": "sample string 6",
"description": "sample string 7",
"username": "sample string 8",
"Lastname": "sample string 9",
"date_task": "2025-12-09T18:47:57.8889516+00:00",
"email": "sample string 11"
}
]
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| code | integer |
None. |
|
| message | string |
None. |
|
| hasError | boolean |
None. |
|
| exception | Exception |
None. |
|
| model | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"message": "sample string 2",
"hasError": true,
"exception": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
},
"model": {}
}