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-01-18T06:20:54.6569109+01:00", "2025-01-18T06:20:54.6569109+01:00", "2025-01-18T06:20:54.6569109+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-01-18T06:20:54.6569109+01:00</d2p1:dateTime> <d2p1:dateTime>2025-01-18T06:20:54.6569109+01:00</d2p1:dateTime> <d2p1:dateTime>2025-01-18T06:20:54.6569109+01:00</d2p1:dateTime> </Dates> </DateSelectionDTO>
application/x-www-form-urlencoded
Sample:
dates=2025-01-18T03%3a01%3a54.3930002%2b01%3a00&dates=2025-01-18T03%3a01%3a54.3930002%2b01%3a00&dates=2025-01-18T03%3a01%3a54.3930002%2b01%3a00