POST api/form/ADUStaffToMainForm

Request Information

URI Parameters

None.

Body Parameters

Collection of Staff
NameDescriptionTypeAdditional 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.

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": "2019-10-14T06:19:27.611664+03:00",
    "exit_time": "2019-10-14T06:19:27.611664+03:00",
    "arrive_time": "2019-10-14T06:19:27.611664+03:00",
    "sign_date": "2019-10-14T06:19:27.611664+03:00",
    "sign_code": 1,
    "creation_date": "2019-10-14T06:19:27.611664+03:00"
  },
  {
    "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": "2019-10-14T06:19:27.611664+03:00",
    "exit_time": "2019-10-14T06:19:27.611664+03:00",
    "arrive_time": "2019-10-14T06:19:27.611664+03:00",
    "sign_date": "2019-10-14T06:19:27.611664+03:00",
    "sign_code": 1,
    "creation_date": "2019-10-14T06:19:27.611664+03:00"
  }
]

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>2019-10-14T06:19:27.611664+03:00</arrive_time>
    <creation_date>2019-10-14T06:19:27.611664+03:00</creation_date>
    <empl_code>4</empl_code>
    <empl_occup>5</empl_occup>
    <enter_time>2019-10-14T06:19:27.611664+03:00</enter_time>
    <exit_time>2019-10-14T06:19:27.611664+03:00</exit_time>
    <form_num>2</form_num>
    <occup_function>1</occup_function>
    <present>sample string 6</present>
    <sign_code>1</sign_code>
    <sign_date>2019-10-14T06:19:27.611664+03:00</sign_date>
    <staff_code>1</staff_code>
    <template_id>sample string 3</template_id>
  </Staff>
  <Staff>
    <arrive_time>2019-10-14T06:19:27.611664+03:00</arrive_time>
    <creation_date>2019-10-14T06:19:27.611664+03:00</creation_date>
    <empl_code>4</empl_code>
    <empl_occup>5</empl_occup>
    <enter_time>2019-10-14T06:19:27.611664+03:00</enter_time>
    <exit_time>2019-10-14T06:19:27.611664+03:00</exit_time>
    <form_num>2</form_num>
    <occup_function>1</occup_function>
    <present>sample string 6</present>
    <sign_code>1</sign_code>
    <sign_date>2019-10-14T06:19:27.611664+03:00</sign_date>
    <staff_code>1</staff_code>
    <template_id>sample string 3</template_id>
  </Staff>
</ArrayOfStaff>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

Collection of Staff
NameDescriptionTypeAdditional 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.

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": "2019-10-14T06:19:27.611664+03:00",
    "exit_time": "2019-10-14T06:19:27.611664+03:00",
    "arrive_time": "2019-10-14T06:19:27.611664+03:00",
    "sign_date": "2019-10-14T06:19:27.611664+03:00",
    "sign_code": 1,
    "creation_date": "2019-10-14T06:19:27.611664+03:00"
  },
  {
    "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": "2019-10-14T06:19:27.611664+03:00",
    "exit_time": "2019-10-14T06:19:27.611664+03:00",
    "arrive_time": "2019-10-14T06:19:27.611664+03:00",
    "sign_date": "2019-10-14T06:19:27.611664+03:00",
    "sign_code": 1,
    "creation_date": "2019-10-14T06:19:27.611664+03:00"
  }
]

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>2019-10-14T06:19:27.611664+03:00</arrive_time>
    <creation_date>2019-10-14T06:19:27.611664+03:00</creation_date>
    <empl_code>4</empl_code>
    <empl_occup>5</empl_occup>
    <enter_time>2019-10-14T06:19:27.611664+03:00</enter_time>
    <exit_time>2019-10-14T06:19:27.611664+03:00</exit_time>
    <form_num>2</form_num>
    <occup_function>1</occup_function>
    <present>sample string 6</present>
    <sign_code>1</sign_code>
    <sign_date>2019-10-14T06:19:27.611664+03:00</sign_date>
    <staff_code>1</staff_code>
    <template_id>sample string 3</template_id>
  </Staff>
  <Staff>
    <arrive_time>2019-10-14T06:19:27.611664+03:00</arrive_time>
    <creation_date>2019-10-14T06:19:27.611664+03:00</creation_date>
    <empl_code>4</empl_code>
    <empl_occup>5</empl_occup>
    <enter_time>2019-10-14T06:19:27.611664+03:00</enter_time>
    <exit_time>2019-10-14T06:19:27.611664+03:00</exit_time>
    <form_num>2</form_num>
    <occup_function>1</occup_function>
    <present>sample string 6</present>
    <sign_code>1</sign_code>
    <sign_date>2019-10-14T06:19:27.611664+03: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.