PUT Api/PeriodicServices/{id}
Edytuje obiekt PeriodicService
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
identyfikator modyfikowanego obiektu |
integer |
Required |
Body Parameters
obiekt wraz ze wszystkimi wartoĊciami
PeriodicServiceDtoName | Description | Type | Additional information |
---|---|---|---|
PeriodicServiceId | integer |
Required |
|
CustomerId | integer |
Required |
|
ProviderId | 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. |
|
InvoiceId | integer |
None. |
|
CreationDate | date |
None. |
|
AllowElectronicInvoice | boolean |
None. |
|
InvoiceEmail | string |
None. |
|
PayTime | integer |
None. |
|
TypeOfPaymentDeadline | TypeOfPaymentDeadline |
None. |
|
WorkPositionIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "periodicServiceId": 1, "customerId": 2, "providerId": 3, "name": "sample string 4", "description": "sample string 5", "unitForServiceId": 6, "previousPayment": "2024-05-18T06:44:01.734759+00:00", "nextPayment": "2024-05-18T06:44:01.734759+00:00", "period": 7, "typeOfPeriodId": 8, "priceBasic": 9.1, "pricePerHour": 10.1, "additionalHourTitle": "sample string 11", "vatForHourId": 12, "unitForHourId": 13, "hoursInPrice": 14.1, "vatForServiceId": 15, "isSupport": true, "invoiceId": 1, "creationDate": "2024-05-18T06:44:01.734759+00:00", "allowElectronicInvoice": true, "invoiceEmail": "sample string 19", "payTime": 1, "typeOfPaymentDeadline": 0, "workPositionIds": [ 1, 2 ] }
multipart/form-data
Sample:
{"periodicServiceId":1,"customerId":2,"providerId":3,"name":"sample string 4","description":"sample string 5","unitForServiceId":6,"previousPayment":"2024-05-18T06:44:01.734759+00:00","nextPayment":"2024-05-18T06:44:01.734759+00:00","period":7,"typeOfPeriodId":8,"priceBasic":9.1,"pricePerHour":10.1,"additionalHourTitle":"sample string 11","vatForHourId":12,"unitForHourId":13,"hoursInPrice":14.1,"vatForServiceId":15,"isSupport":true,"invoiceId":1,"creationDate":"2024-05-18T06:44:01.734759+00:00","allowElectronicInvoice":true,"invoiceEmail":"sample string 19","payTime":1,"typeOfPaymentDeadline":0,"workPositionIds":[1,2]}
application/xml, text/xml
Sample:
<PeriodicServiceDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <PeriodicServiceId>1</PeriodicServiceId> <CustomerId>2</CustomerId> <ProviderId>3</ProviderId> <Name>sample string 4</Name> <Description>sample string 5</Description> <UnitForServiceId>6</UnitForServiceId> <PreviousPayment /> <NextPayment /> <Period>7</Period> <TypeOfPeriodId>8</TypeOfPeriodId> <PriceBasic>9.1</PriceBasic> <PricePerHour>10.1</PricePerHour> <AdditionalHourTitle>sample string 11</AdditionalHourTitle> <VatForHourId>12</VatForHourId> <UnitForHourId>13</UnitForHourId> <HoursInPrice>14.1</HoursInPrice> <VatForServiceId>15</VatForServiceId> <IsSupport>true</IsSupport> <InvoiceId>1</InvoiceId> <CreationDate /> <AllowElectronicInvoice>true</AllowElectronicInvoice> <InvoiceEmail>sample string 19</InvoiceEmail> <PayTime>1</PayTime> <TypeOfPaymentDeadline>IssueDate</TypeOfPaymentDeadline> <WorkPositionIds> <int>1</int> <int>2</int> </WorkPositionIds> </PeriodicServiceDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.