POST api/user/AddAvailability

Request Information

URI Parameters

None.

Body Parameters

AvailabilityDto
NameDescriptionTypeAdditional information
UserId

integer

None.

Date

date

None.

StartTime

date

None.

EndTime

date

None.

IsAvailable

boolean

None.

Notes

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "Date": "2026-01-01T20:12:48.346168+03:00",
  "StartTime": "2026-01-01T20:12:48.346168+03:00",
  "EndTime": "2026-01-01T20:12:48.346168+03:00",
  "IsAvailable": true,
  "Notes": "sample string 6"
}

application/xml, text/xml

Sample:
<AvailabilityDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Evimpet.Common.DTOs">
  <Date>2026-01-01T20:12:48.346168+03:00</Date>
  <EndTime>2026-01-01T20:12:48.346168+03:00</EndTime>
  <IsAvailable>true</IsAvailable>
  <Notes>sample string 6</Notes>
  <StartTime>2026-01-01T20:12:48.346168+03:00</StartTime>
  <UserId>1</UserId>
</AvailabilityDto>

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 'AvailabilityDto'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.