POST Api/TypeOfAbsences
Dodaje asynchronicznie nowy obiekt TypeOfAbsence do bazy danych
Request Information
URI Parameters
None.
Body Parameters
nowy obiekt
TypeOfAbsenceDtoName | Description | Type | Additional information |
---|---|---|---|
TypeOfAbsenceId | integer |
Required |
|
Name | string |
Required |
|
ExportCode | string |
Required |
|
OrganizationalUnitId | integer |
Required |
|
Excused | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "typeOfAbsenceId": 1, "name": "sample string 2", "exportCode": "sample string 3", "organizationalUnitId": 4, "excused": true }
multipart/form-data
Sample:
{"typeOfAbsenceId":1,"name":"sample string 2","exportCode":"sample string 3","organizationalUnitId":4,"excused":true}
application/xml, text/xml
Sample:
<TypeOfAbsenceDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <TypeOfAbsenceId>1</TypeOfAbsenceId> <Name>sample string 2</Name> <ExportCode>sample string 3</ExportCode> <OrganizationalUnitId>4</OrganizationalUnitId> <Excused>true</Excused> </TypeOfAbsenceDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
identyfikator nowo dodanego obiektu
TypeOfAbsenceDtoName | Description | Type | Additional information |
---|---|---|---|
TypeOfAbsenceId | integer |
Required |
|
Name | string |
Required |
|
ExportCode | string |
Required |
|
OrganizationalUnitId | integer |
Required |
|
Excused | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "typeOfAbsenceId": 1, "name": "sample string 2", "exportCode": "sample string 3", "organizationalUnitId": 4, "excused": true }
multipart/form-data
Sample:
{"typeOfAbsenceId":1,"name":"sample string 2","exportCode":"sample string 3","organizationalUnitId":4,"excused":true}
application/xml, text/xml
Sample:
<TypeOfAbsenceDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <TypeOfAbsenceId>1</TypeOfAbsenceId> <Name>sample string 2</Name> <ExportCode>sample string 3</ExportCode> <OrganizationalUnitId>4</OrganizationalUnitId> <Excused>true</Excused> </TypeOfAbsenceDto>