PUT api/ClientLocationDeliveryDates

Overwrites the delivery dates of a client

Request Information

URI Parameters

None.

URI Example

api/ClientLocationDeliveryDates

Body Parameters

The delivery date data for the client

Oresto.API.Models.PUT.ClientLocationDeliveryDates.ClientDeliveryDate
NameDescriptionTypeAdditional information
ClientLocationId

The ID of the client location

integer

Primary key field

Required

DeliveryDates

A list of delivery dates. If a day is not provided, delivery for that day will not be possible. Leave blank to remove ALL delivery dates. (DO NOT use timezones for these dates)

Collection of Oresto.API.Models.PUT.ClientLocationDeliveryDates.DeliveryDate

Required

Request Formats

application/json, text/json

Sample:
{
  "ClientLocationId": 1,
  "DeliveryDates": [
    {
      "Date": "2025-12-05T06:52:19.1664522+01:00"
    },
    {
      "Date": "2025-12-05T06:52:19.1664522+01:00"
    }
  ]
}

application/xml, text/xml

Sample:
<ClientDeliveryDate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.PUT.ClientLocationDeliveryDates">
  <ClientLocationId>1</ClientLocationId>
  <DeliveryDates>
    <DeliveryDate>
      <Date>2025-12-05T06:52:19.1664522+01:00</Date>
    </DeliveryDate>
    <DeliveryDate>
      <Date>2025-12-05T06:52:19.1664522+01:00</Date>
    </DeliveryDate>
  </DeliveryDates>
</ClientDeliveryDate>

application/x-www-form-urlencoded

Sample:
ClientLocationId=value&DeliveryDates=value

Response Information

Resource Description

A wrapper with client delivery date entity data

Oresto.API.Models.PUT.ClientLocationDeliveryDates.ClientDeliveryDateData
NameDescriptionTypeAdditional information
Errors

Possible errors that were experienced when processing the request

Collection of string

None.

ModelStateErrors

Possible model errors that were experienced when validating the data

Collection of Oresto.API.Models.Shared.ModelStateError

None.

RequestInformation

Additional information about the request

Oresto.API.Models.Shared.RequestInformation

None.

Response Formats

application/json, text/json

Sample:
{
  "RequestInformation": {
    "RequestDuration": 1,
    "WholesalerId": 2,
    "UserId": 3
  },
  "ModelStateErrors": [
    {
      "Key": "sample string 1",
      "Message": "sample string 2",
      "Exception": "sample string 3"
    },
    {
      "Key": "sample string 1",
      "Message": "sample string 2",
      "Exception": "sample string 3"
    }
  ],
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ClientDeliveryDateData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.PUT.ClientLocationDeliveryDates">
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.Shared">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <ModelStateErrors xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.Shared">
    <ModelStateError>
      <Exception>sample string 3</Exception>
      <Key>sample string 1</Key>
      <Message>sample string 2</Message>
    </ModelStateError>
    <ModelStateError>
      <Exception>sample string 3</Exception>
      <Key>sample string 1</Key>
      <Message>sample string 2</Message>
    </ModelStateError>
  </ModelStateErrors>
  <RequestInformation xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.Shared">
    <RequestDuration>1</RequestDuration>
    <UserId>3</UserId>
    <WholesalerId>2</WholesalerId>
  </RequestInformation>
</ClientDeliveryDateData>