PATCH api/admin/drivers/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

DriverAdminPatchBody
NameDescriptionTypeAdditional information
DisplayName

string

None.

MaxActiveOrders

integer

None.

IsPromoted

boolean

None.

PromotedUntilUtc

date

None.

PromotedSortOrder

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "displayName": "sample string 1",
  "maxActiveOrders": 1,
  "isPromoted": true,
  "promotedUntilUtc": "2026-05-17T05:05:00.2360492Z",
  "promotedSortOrder": 1
}

application/xml, text/xml

Sample:
<DriverAdminPatchBody xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Del.Api.Models.Dtos">
  <DisplayName>sample string 1</DisplayName>
  <IsPromoted>true</IsPromoted>
  <MaxActiveOrders>1</MaxActiveOrders>
  <PromotedSortOrder>1</PromotedSortOrder>
  <PromotedUntilUtc>2026-05-17T00:05:00.2360492-05:00</PromotedUntilUtc>
</DriverAdminPatchBody>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DriverAdminPatchBody'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.