POST api/Users/{id}/dates

Set the dates the user wants to take part.

Request Information

Parameters

NameDescriptionAdditional information
id
Id of user

Define this parameter in the request URI.

dates
List of dates the user wants to participate.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Dates": [
    "2024-09-19T03:29:54.4136665+02:00",
    "2024-09-19T03:29:54.4136665+02:00",
    "2024-09-19T03:29:54.4136665+02:00"
  ]
}

application/xml, text/xml

Sample:
<DateSelectionDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LunchConnection.Models.DTOs">
  <Dates xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:dateTime>2024-09-19T03:29:54.4136665+02:00</d2p1:dateTime>
    <d2p1:dateTime>2024-09-19T03:29:54.4136665+02:00</d2p1:dateTime>
    <d2p1:dateTime>2024-09-19T03:29:54.4136665+02:00</d2p1:dateTime>
  </Dates>
</DateSelectionDTO>

application/x-www-form-urlencoded

Sample:
dates=2024-09-18T22%3a57%3a02.9505659%2b02%3a00&dates=2024-09-18T22%3a57%3a02.9505659%2b02%3a00&dates=2024-09-18T22%3a57%3a02.9505659%2b02%3a00