PUT api/clients/{clientId}/servicetype/{serviceTypeId}

Adds or updates a service type on a client

Request Information

URI Parameters

NameDescriptionTypeAdditional 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
NameDescriptionTypeAdditional 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": "2024-12-23",
      "toDate": "2024-12-23"
    },
    {
      "fromDate": "2024-12-23",
      "toDate": "2024-12-23"
    }
  ],
  "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>2024-12-23T12:19:59.8696571-07:00</FromDate>
      <ToDate>2024-12-23T12:19:59.8696571-07:00</ToDate>
    </ServiceTypeDateWindow>
    <ServiceTypeDateWindow>
      <FromDate>2024-12-23T12:19:59.8696571-07:00</FromDate>
      <ToDate>2024-12-23T12:19:59.8696571-07:00</ToDate>
    </ServiceTypeDateWindow>
  </ValidDates>
</ClientService>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.