POST api/Vendor/Schedule/Unavailability/Add?subtypeId={subtypeId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
subtypeId

integer

Required

Body Parameters

VendorUnavailabilitySaveDTO
NameDescriptionTypeAdditional information
unavailable_date

date

None.

start_time

time interval

None.

end_time

time interval

None.

reason

string

None.

Request Formats

application/json, text/json

Sample:
{
  "unavailable_date": "2026-07-03T16:28:39.5767447+05:30",
  "start_time": "00:00:00.1234567",
  "end_time": "00:00:00.1234567",
  "reason": "sample string 2"
}

application/xml, text/xml

Sample:
<VendorUnavailabilitySaveDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Caremate_API.Models.DTOs.Vendor">
  <end_time>PT0.1234567S</end_time>
  <reason>sample string 2</reason>
  <start_time>PT0.1234567S</start_time>
  <unavailable_date>2026-07-03T16:28:39.5767447+05:30</unavailable_date>
</VendorUnavailabilitySaveDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.