PUT api/clients/{clientId}/servicetype/{serviceTypeId}
Adds or updates a service type on a client
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| clientId |
The client to update the service type for |
integer |
Required |
| serviceTypeId |
The id of the service type. |
integer |
Required |
Body Parameters
The service type to add/update
ClientService| Name | Description | Type | Additional information |
|---|---|---|---|
| ServiceTypeId |
Gets or sets the ID of the service type. |
integer |
None. |
| ValidDates |
Gets or sets the list of date ranges during which this service type is valid for the client. |
Collection of ServiceTypeDateWindow |
None. |
| IsDefault |
Gets or sets whether this is the default service type for the passenger. |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"serviceTypeId": 1,
"validDates": [
{
"fromDate": "2025-12-10",
"toDate": "2025-12-10"
},
{
"fromDate": "2025-12-10",
"toDate": "2025-12-10"
}
],
"isDefault": true
}
application/xml, text/xml
Sample:
<ClientService xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources">
<IsDefault>true</IsDefault>
<ServiceTypeId>1</ServiceTypeId>
<ValidDates>
<ServiceTypeDateWindow>
<FromDate>2025-12-10T06:33:35.0420396-07:00</FromDate>
<ToDate>2025-12-10T06:33:35.0420396-07:00</ToDate>
</ServiceTypeDateWindow>
<ServiceTypeDateWindow>
<FromDate>2025-12-10T06:33:35.0420396-07:00</FromDate>
<ToDate>2025-12-10T06:33:35.0420396-07:00</ToDate>
</ServiceTypeDateWindow>
</ValidDates>
</ClientService>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.