POST api/form/ADUStaffToMainForm
Request Information
URI Parameters
None.
Body Parameters
Collection of StaffName | Description | Type | Additional information |
---|---|---|---|
staff_code | integer |
None. |
|
form_num | integer |
None. |
|
template_id | string |
Required String length: inclusive between 0 and 24 |
|
empl_code | integer |
None. |
|
empl_occup | integer |
None. |
|
occup_function | integer |
None. |
|
present | string |
Required String length: inclusive between 0 and 1 |
|
enter_time | date |
None. |
|
exit_time | date |
None. |
|
arrive_time | date |
None. |
|
sign_date | date |
None. |
|
sign_code | integer |
None. |
|
creation_date | date |
None. |
|
interface_code | string |
String length: inclusive between 0 and 10 |
|
old_code | integer |
None. |
Request Formats
application/json, text/json
Sample:
[ { "staff_code": 1, "form_num": 2, "template_id": "sample string 3", "empl_code": 4, "empl_occup": 5, "occup_function": 1, "present": "sample string 6", "enter_time": "2024-11-21T11:47:13.2558173+02:00", "exit_time": "2024-11-21T11:47:13.2558173+02:00", "arrive_time": "2024-11-21T11:47:13.2558173+02:00", "sign_date": "2024-11-21T11:47:13.2558173+02:00", "sign_code": 1, "creation_date": "2024-11-21T11:47:13.2558173+02:00", "interface_code": "sample string 8", "old_code": 1 }, { "staff_code": 1, "form_num": 2, "template_id": "sample string 3", "empl_code": 4, "empl_occup": 5, "occup_function": 1, "present": "sample string 6", "enter_time": "2024-11-21T11:47:13.2558173+02:00", "exit_time": "2024-11-21T11:47:13.2558173+02:00", "arrive_time": "2024-11-21T11:47:13.2558173+02:00", "sign_date": "2024-11-21T11:47:13.2558173+02:00", "sign_code": 1, "creation_date": "2024-11-21T11:47:13.2558173+02:00", "interface_code": "sample string 8", "old_code": 1 } ]
application/xml, text/xml
Sample:
<ArrayOfStaff xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog"> <Staff> <arrive_time>2024-11-21T11:47:13.2558173+02:00</arrive_time> <creation_date>2024-11-21T11:47:13.2558173+02:00</creation_date> <empl_code>4</empl_code> <empl_occup>5</empl_occup> <enter_time>2024-11-21T11:47:13.2558173+02:00</enter_time> <exit_time>2024-11-21T11:47:13.2558173+02:00</exit_time> <form_num>2</form_num> <interface_code>sample string 8</interface_code> <occup_function>1</occup_function> <old_code>1</old_code> <present>sample string 6</present> <sign_code>1</sign_code> <sign_date>2024-11-21T11:47:13.2558173+02:00</sign_date> <staff_code>1</staff_code> <template_id>sample string 3</template_id> </Staff> <Staff> <arrive_time>2024-11-21T11:47:13.2558173+02:00</arrive_time> <creation_date>2024-11-21T11:47:13.2558173+02:00</creation_date> <empl_code>4</empl_code> <empl_occup>5</empl_occup> <enter_time>2024-11-21T11:47:13.2558173+02:00</enter_time> <exit_time>2024-11-21T11:47:13.2558173+02:00</exit_time> <form_num>2</form_num> <interface_code>sample string 8</interface_code> <occup_function>1</occup_function> <old_code>1</old_code> <present>sample string 6</present> <sign_code>1</sign_code> <sign_date>2024-11-21T11:47:13.2558173+02:00</sign_date> <staff_code>1</staff_code> <template_id>sample string 3</template_id> </Staff> </ArrayOfStaff>
application/x-www-form-urlencoded
Sample:
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
Collection of StaffName | Description | Type | Additional information |
---|---|---|---|
staff_code | integer |
None. |
|
form_num | integer |
None. |
|
template_id | string |
Required String length: inclusive between 0 and 24 |
|
empl_code | integer |
None. |
|
empl_occup | integer |
None. |
|
occup_function | integer |
None. |
|
present | string |
Required String length: inclusive between 0 and 1 |
|
enter_time | date |
None. |
|
exit_time | date |
None. |
|
arrive_time | date |
None. |
|
sign_date | date |
None. |
|
sign_code | integer |
None. |
|
creation_date | date |
None. |
|
interface_code | string |
String length: inclusive between 0 and 10 |
|
old_code | integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "staff_code": 1, "form_num": 2, "template_id": "sample string 3", "empl_code": 4, "empl_occup": 5, "occup_function": 1, "present": "sample string 6", "enter_time": "2024-11-21T11:47:13.2714269+02:00", "exit_time": "2024-11-21T11:47:13.2714269+02:00", "arrive_time": "2024-11-21T11:47:13.2714269+02:00", "sign_date": "2024-11-21T11:47:13.2714269+02:00", "sign_code": 1, "creation_date": "2024-11-21T11:47:13.2714269+02:00", "interface_code": "sample string 8", "old_code": 1 }, { "staff_code": 1, "form_num": 2, "template_id": "sample string 3", "empl_code": 4, "empl_occup": 5, "occup_function": 1, "present": "sample string 6", "enter_time": "2024-11-21T11:47:13.2714269+02:00", "exit_time": "2024-11-21T11:47:13.2714269+02:00", "arrive_time": "2024-11-21T11:47:13.2714269+02:00", "sign_date": "2024-11-21T11:47:13.2714269+02:00", "sign_code": 1, "creation_date": "2024-11-21T11:47:13.2714269+02:00", "interface_code": "sample string 8", "old_code": 1 } ]
application/xml, text/xml
Sample:
<ArrayOfStaff xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog"> <Staff> <arrive_time>2024-11-21T11:47:13.2714269+02:00</arrive_time> <creation_date>2024-11-21T11:47:13.2714269+02:00</creation_date> <empl_code>4</empl_code> <empl_occup>5</empl_occup> <enter_time>2024-11-21T11:47:13.2714269+02:00</enter_time> <exit_time>2024-11-21T11:47:13.2714269+02:00</exit_time> <form_num>2</form_num> <interface_code>sample string 8</interface_code> <occup_function>1</occup_function> <old_code>1</old_code> <present>sample string 6</present> <sign_code>1</sign_code> <sign_date>2024-11-21T11:47:13.2714269+02:00</sign_date> <staff_code>1</staff_code> <template_id>sample string 3</template_id> </Staff> <Staff> <arrive_time>2024-11-21T11:47:13.2714269+02:00</arrive_time> <creation_date>2024-11-21T11:47:13.2714269+02:00</creation_date> <empl_code>4</empl_code> <empl_occup>5</empl_occup> <enter_time>2024-11-21T11:47:13.2714269+02:00</enter_time> <exit_time>2024-11-21T11:47:13.2714269+02:00</exit_time> <form_num>2</form_num> <interface_code>sample string 8</interface_code> <occup_function>1</occup_function> <old_code>1</old_code> <present>sample string 6</present> <sign_code>1</sign_code> <sign_date>2024-11-21T11:47:13.2714269+02:00</sign_date> <staff_code>1</staff_code> <template_id>sample string 3</template_id> </Staff> </ArrayOfStaff>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.