POST api/Users/{id}/dates
Set the dates the user wants to take part.
Request Information
Parameters
| Name | Description | Additional 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": [
"2025-11-09T12:46:46.6763888+01:00",
"2025-11-09T12:46:46.6763888+01:00",
"2025-11-09T12:46:46.6763888+01: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>2025-11-09T12:46:46.6763888+01:00</d2p1:dateTime>
<d2p1:dateTime>2025-11-09T12:46:46.6763888+01:00</d2p1:dateTime>
<d2p1:dateTime>2025-11-09T12:46:46.6763888+01:00</d2p1:dateTime>
</Dates>
</DateSelectionDTO>
application/x-www-form-urlencoded
Sample:
dates=2025-11-08T20%3a06%3a58.9476286%2b01%3a00&dates=2025-11-08T20%3a06%3a58.9476286%2b01%3a00&dates=2025-11-08T20%3a06%3a58.9476286%2b01%3a00