POST Api/TemplateOfPeriodicServices
Dodaje asynchronicznie nowy obiekt TemplateOfPeriodicService do bazy danych
Request Information
URI Parameters
None.
Body Parameters
nowy obiekt
TemplateOfPeriodicServiceDtoName | Description | Type | Additional information |
---|---|---|---|
TemplateOfPeriodicServiceId | integer |
Required |
|
OrganizationalUnitId | integer |
Required |
|
Name | string |
Required |
|
Description | string |
None. |
|
UnitForServiceId | integer |
Required |
|
PreviousPayment | date |
None. |
|
NextPayment | date |
None. |
|
Period | integer |
Required |
|
TypeOfPeriodId | integer |
Required |
|
PriceBasic | decimal number |
Required |
|
PricePerHour | decimal number |
Required |
|
AdditionalHourTitle | string |
None. |
|
VatForHourId | integer |
Required |
|
UnitForHourId | integer |
Required |
|
HoursInPrice | decimal number |
Required |
|
VatForServiceId | integer |
Required |
|
IsSupport | boolean |
None. |
|
CreationDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "templateOfPeriodicServiceId": 1, "organizationalUnitId": 2, "name": "sample string 3", "description": "sample string 4", "unitForServiceId": 5, "previousPayment": "2024-05-17T17:34:08.1135647+00:00", "nextPayment": "2024-05-17T17:34:08.1135647+00:00", "period": 6, "typeOfPeriodId": 7, "priceBasic": 8.1, "pricePerHour": 9.1, "additionalHourTitle": "sample string 10", "vatForHourId": 11, "unitForHourId": 12, "hoursInPrice": 13.1, "vatForServiceId": 14, "isSupport": true, "creationDate": "2024-05-17T17:34:08.1135647+00:00" }
multipart/form-data
Sample:
{"templateOfPeriodicServiceId":1,"organizationalUnitId":2,"name":"sample string 3","description":"sample string 4","unitForServiceId":5,"previousPayment":"2024-05-17T17:34:08.1135647+00:00","nextPayment":"2024-05-17T17:34:08.1135647+00:00","period":6,"typeOfPeriodId":7,"priceBasic":8.1,"pricePerHour":9.1,"additionalHourTitle":"sample string 10","vatForHourId":11,"unitForHourId":12,"hoursInPrice":13.1,"vatForServiceId":14,"isSupport":true,"creationDate":"2024-05-17T17:34:08.1135647+00:00"}
application/xml, text/xml
Sample:
<TemplateOfPeriodicServiceDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <TemplateOfPeriodicServiceId>1</TemplateOfPeriodicServiceId> <OrganizationalUnitId>2</OrganizationalUnitId> <Name>sample string 3</Name> <Description>sample string 4</Description> <UnitForServiceId>5</UnitForServiceId> <PreviousPayment /> <NextPayment /> <Period>6</Period> <TypeOfPeriodId>7</TypeOfPeriodId> <PriceBasic>8.1</PriceBasic> <PricePerHour>9.1</PricePerHour> <AdditionalHourTitle>sample string 10</AdditionalHourTitle> <VatForHourId>11</VatForHourId> <UnitForHourId>12</UnitForHourId> <HoursInPrice>13.1</HoursInPrice> <VatForServiceId>14</VatForServiceId> <IsSupport>true</IsSupport> <CreationDate /> </TemplateOfPeriodicServiceDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
identyfikator nowo dodanego obiektu
TemplateOfPeriodicServiceDtoName | Description | Type | Additional information |
---|---|---|---|
TemplateOfPeriodicServiceId | integer |
Required |
|
OrganizationalUnitId | integer |
Required |
|
Name | string |
Required |
|
Description | string |
None. |
|
UnitForServiceId | integer |
Required |
|
PreviousPayment | date |
None. |
|
NextPayment | date |
None. |
|
Period | integer |
Required |
|
TypeOfPeriodId | integer |
Required |
|
PriceBasic | decimal number |
Required |
|
PricePerHour | decimal number |
Required |
|
AdditionalHourTitle | string |
None. |
|
VatForHourId | integer |
Required |
|
UnitForHourId | integer |
Required |
|
HoursInPrice | decimal number |
Required |
|
VatForServiceId | integer |
Required |
|
IsSupport | boolean |
None. |
|
CreationDate | date |
None. |
Response Formats
application/json, text/json
Sample:
{ "templateOfPeriodicServiceId": 1, "organizationalUnitId": 2, "name": "sample string 3", "description": "sample string 4", "unitForServiceId": 5, "previousPayment": "2024-05-17T17:34:08.1448003+00:00", "nextPayment": "2024-05-17T17:34:08.1448003+00:00", "period": 6, "typeOfPeriodId": 7, "priceBasic": 8.1, "pricePerHour": 9.1, "additionalHourTitle": "sample string 10", "vatForHourId": 11, "unitForHourId": 12, "hoursInPrice": 13.1, "vatForServiceId": 14, "isSupport": true, "creationDate": "2024-05-17T17:34:08.1448003+00:00" }
multipart/form-data
Sample:
{"templateOfPeriodicServiceId":1,"organizationalUnitId":2,"name":"sample string 3","description":"sample string 4","unitForServiceId":5,"previousPayment":"2024-05-17T17:34:08.1448003+00:00","nextPayment":"2024-05-17T17:34:08.1448003+00:00","period":6,"typeOfPeriodId":7,"priceBasic":8.1,"pricePerHour":9.1,"additionalHourTitle":"sample string 10","vatForHourId":11,"unitForHourId":12,"hoursInPrice":13.1,"vatForServiceId":14,"isSupport":true,"creationDate":"2024-05-17T17:34:08.1448003+00:00"}
application/xml, text/xml
Sample:
<TemplateOfPeriodicServiceDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <TemplateOfPeriodicServiceId>1</TemplateOfPeriodicServiceId> <OrganizationalUnitId>2</OrganizationalUnitId> <Name>sample string 3</Name> <Description>sample string 4</Description> <UnitForServiceId>5</UnitForServiceId> <PreviousPayment /> <NextPayment /> <Period>6</Period> <TypeOfPeriodId>7</TypeOfPeriodId> <PriceBasic>8.1</PriceBasic> <PricePerHour>9.1</PricePerHour> <AdditionalHourTitle>sample string 10</AdditionalHourTitle> <VatForHourId>11</VatForHourId> <UnitForHourId>12</UnitForHourId> <HoursInPrice>13.1</HoursInPrice> <VatForServiceId>14</VatForServiceId> <IsSupport>true</IsSupport> <CreationDate /> </TemplateOfPeriodicServiceDto>