POST api/ServiceTasks/AddTask
Request Information
URI Parameters
None.
Body Parameters
ServiceTaskName | Description | Type | Additional information |
---|---|---|---|
task_code | integer |
None. |
|
task_type_code | integer |
None. |
|
service_code | integer |
None. |
|
doer_code | integer |
None. |
|
doing_date | date |
None. |
|
creator_code | integer |
None. |
|
create_date | date |
None. |
|
due_date | date |
None. |
|
remark | string |
String length: inclusive between 0 and 400 |
|
active | string |
String length: inclusive between 0 and 1 |
Request Formats
application/json, text/json
Sample:
{ "task_code": 1, "task_type_code": 2, "service_code": 3, "doer_code": 1, "doing_date": "2024-12-03T00:23:48.4429529+02:00", "creator_code": 4, "create_date": "2024-12-03T00:23:48.4429529+02:00", "due_date": "2024-12-03T00:23:48.4429529+02:00", "remark": "sample string 7", "active": "sample string 8" }
application/xml, text/xml
Sample:
<ServiceTask xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog"> <active>sample string 8</active> <create_date>2024-12-03T00:23:48.4429529+02:00</create_date> <creator_code>4</creator_code> <doer_code>1</doer_code> <doing_date>2024-12-03T00:23:48.4429529+02:00</doing_date> <due_date>2024-12-03T00:23:48.4429529+02:00</due_date> <remark>sample string 7</remark> <service_code>3</service_code> <task_code>1</task_code> <task_type_code>2</task_type_code> </ServiceTask>
application/x-www-form-urlencoded
Sample:
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
ServiceTaskName | Description | Type | Additional information |
---|---|---|---|
task_code | integer |
None. |
|
task_type_code | integer |
None. |
|
service_code | integer |
None. |
|
doer_code | integer |
None. |
|
doing_date | date |
None. |
|
creator_code | integer |
None. |
|
create_date | date |
None. |
|
due_date | date |
None. |
|
remark | string |
String length: inclusive between 0 and 400 |
|
active | string |
String length: inclusive between 0 and 1 |
Response Formats
application/json, text/json
Sample:
{ "task_code": 1, "task_type_code": 2, "service_code": 3, "doer_code": 1, "doing_date": "2024-12-03T00:23:48.4585784+02:00", "creator_code": 4, "create_date": "2024-12-03T00:23:48.4585784+02:00", "due_date": "2024-12-03T00:23:48.4585784+02:00", "remark": "sample string 7", "active": "sample string 8" }
application/xml, text/xml
Sample:
<ServiceTask xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog"> <active>sample string 8</active> <create_date>2024-12-03T00:23:48.4585784+02:00</create_date> <creator_code>4</creator_code> <doer_code>1</doer_code> <doing_date>2024-12-03T00:23:48.4585784+02:00</doing_date> <due_date>2024-12-03T00:23:48.4585784+02:00</due_date> <remark>sample string 7</remark> <service_code>3</service_code> <task_code>1</task_code> <task_type_code>2</task_type_code> </ServiceTask>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.