PUT Api/Services/{id}

Edytuje obiekt Service

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

identyfikator modyfikowanego obiektu

integer

Required

Body Parameters

obiekt wraz ze wszystkimi wartoĊ›ciami

ServiceDto
NameDescriptionTypeAdditional 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.

Request Formats

application/json, text/json

Sample:
{
  "serviceId": 1,
  "organizationalUnitId": 2,
  "providerId": 1,
  "periodicalPayment": 3.1,
  "typeOfPeriodId": 4,
  "period": 5,
  "startDate": "2024-05-18T05:11:58.7951563+00:00",
  "endDate": "2024-05-18T05:11:58.7951563+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-18T05:11:58.7951563+00:00","endDate":"2024-05-18T05:11:58.7951563+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>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.