POST api/Task
[ { "id": null, "name": "Tests", "id_orgboard_position": 123, "date_from": "2019-01-20T09:00:00", "date_to": "2019-02-20T17:00:00", "is_with_no_date": false } ]
Request Information
URI Parameters
None.
Body Parameters
Collection of ApiTaskName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
name | string |
None. |
|
description | string |
None. |
|
status |
Read only |
TaskStatus |
None. |
id_orgboard_position | integer |
None. |
|
id_person_creator |
Person who created task (Default current api person if not specified) |
integer |
None. |
id_company |
Company from CRM |
integer |
None. |
id_company_contact |
Company contact from CRM |
integer |
None. |
date_from | date |
None. |
|
date_to | date |
None. |
|
date_completed |
Read only |
date |
None. |
is_with_no_date |
Used when date is not specified, used in "To do list" |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
[ { "id": 1, "name": "sample string 2", "description": "sample string 3", "status": 0, "id_orgboard_position": 1, "id_person_creator": 1, "id_company": 1, "id_company_contact": 1, "date_from": "2024-11-16T04:43:18.6768303+00:00", "date_to": "2024-11-16T04:43:18.6768303+00:00", "date_completed": "2024-11-16T04:43:18.6768303+00:00", "is_with_no_date": true }, { "id": 1, "name": "sample string 2", "description": "sample string 3", "status": 0, "id_orgboard_position": 1, "id_person_creator": 1, "id_company": 1, "id_company_contact": 1, "date_from": "2024-11-16T04:43:18.6768303+00:00", "date_to": "2024-11-16T04:43:18.6768303+00:00", "date_completed": "2024-11-16T04:43:18.6768303+00:00", "is_with_no_date": true } ]
application/xml, text/xml
Sample:
<ArrayOfApiTask xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ApiTask> <id>1</id> <name>sample string 2</name> <description>sample string 3</description> <status>Prepared</status> <id_orgboard_position>1</id_orgboard_position> <id_person_creator>1</id_person_creator> <id_company>1</id_company> <id_company_contact>1</id_company_contact> <date_from>2024-11-16T04:43:18.6768303+00:00</date_from> <date_to>2024-11-16T04:43:18.6768303+00:00</date_to> <date_completed>2024-11-16T04:43:18.6768303+00:00</date_completed> <is_with_no_date>true</is_with_no_date> </ApiTask> <ApiTask> <id>1</id> <name>sample string 2</name> <description>sample string 3</description> <status>Prepared</status> <id_orgboard_position>1</id_orgboard_position> <id_person_creator>1</id_person_creator> <id_company>1</id_company> <id_company_contact>1</id_company_contact> <date_from>2024-11-16T04:43:18.6768303+00:00</date_from> <date_to>2024-11-16T04:43:18.6768303+00:00</date_to> <date_completed>2024-11-16T04:43:18.6768303+00:00</date_completed> <is_with_no_date>true</is_with_no_date> </ApiTask> </ArrayOfApiTask>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |