DELETE Api/Services/{id}
Usuwa asynchronicznie obiekt Service z bazy danych
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
identyfikator obiektu |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
ServiceDtoName | Description | Type | Additional information |
---|---|---|---|
ServiceId | integer |
Required |
|
OrganizationalUnitId | integer |
Required |
|
ProviderId | integer |
None. |
|
PeriodicalPayment | decimal number |
Required |
|
TypeOfPeriodId | integer |
Required |
|
Period | integer |
Required |
|
StartDate | date |
Required |
|
EndDate | date |
None. |
|
Name | string |
Required |
|
Description | string |
None. |
|
IsOutsourcing | boolean |
None. |
|
IsMsp | boolean |
None. |
|
IsPayroll | boolean |
None. |
|
IsTraining | boolean |
None. |
|
IsOrderable | boolean |
None. |
|
AutoAssign | boolean |
None. |
|
SplitNeeds | boolean |
None. |
|
UberHROwner | boolean |
None. |
|
UberHRSubContractor | boolean |
None. |
|
ServiceTypeId | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "serviceId": 1, "organizationalUnitId": 2, "providerId": 1, "periodicalPayment": 3.1, "typeOfPeriodId": 4, "period": 5, "startDate": "2024-05-18T03:52:34.8060523+00:00", "endDate": "2024-05-18T03:52:34.8060523+00:00", "name": "sample string 7", "description": "sample string 8", "isOutsourcing": true, "isMsp": true, "isPayroll": true, "isTraining": true, "isOrderable": true, "autoAssign": true, "splitNeeds": true, "uberHROwner": true, "uberHRSubContractor": true, "serviceTypeId": 1 }
multipart/form-data
Sample:
{"serviceId":1,"organizationalUnitId":2,"providerId":1,"periodicalPayment":3.1,"typeOfPeriodId":4,"period":5,"startDate":"2024-05-18T03:52:34.8060523+00:00","endDate":"2024-05-18T03:52:34.8060523+00:00","name":"sample string 7","description":"sample string 8","isOutsourcing":true,"isMsp":true,"isPayroll":true,"isTraining":true,"isOrderable":true,"autoAssign":true,"splitNeeds":true,"uberHROwner":true,"uberHRSubContractor":true,"serviceTypeId":1}
application/xml, text/xml
Sample:
<ServiceDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <ServiceId>1</ServiceId> <OrganizationalUnitId>2</OrganizationalUnitId> <ProviderId>1</ProviderId> <PeriodicalPayment>3.1</PeriodicalPayment> <TypeOfPeriodId>4</TypeOfPeriodId> <Period>5</Period> <StartDate /> <EndDate /> <Name>sample string 7</Name> <Description>sample string 8</Description> <IsOutsourcing>true</IsOutsourcing> <IsMsp>true</IsMsp> <IsPayroll>true</IsPayroll> <IsTraining>true</IsTraining> <IsOrderable>true</IsOrderable> <AutoAssign>true</AutoAssign> <SplitNeeds>true</SplitNeeds> <UberHROwner>true</UberHROwner> <UberHRSubContractor>true</UberHRSubContractor> <ServiceTypeId>1</ServiceTypeId> </ServiceDto>