Saves a unavailability

Request Information

URI Parameters :

None.

Body Parameters :

user_unavailability
NameDescriptionTypeAdditional information
id

Primary Key

globally unique identifier

Required

date_start

Date+Time of the beginning

date

Required

date_end

Date+Time of the end

date

Required

user_unavailability_type_id

globally unique identifier
user_unavailability_type_name

string
description

Description

string

Max length: 255

sys_logical_delete

Logical delete

boolean
user_id

Assigned user

globally unique identifier
modified_dateutc

Readonly system field managed by database, filled with GetUtcDate when adding,updating

date
is_approved

is_approved

boolean
user_week_approval_id

user_week_approval_id

globally unique identifier
db_address_id

db_address_id

globally unique identifier
location

location

string

Max length: 50

holiday_id

holiday_id

globally unique identifier
archive_reason

archive_reason

string

Max length: 4000

recurrence_id

recurrence_id

globally unique identifier
time_span

time_span

string

Max length: 255

dateutc_create

dateutc_create

date
is_confirmed

comfirmed by the user

boolean

Request Formats :

application/json, text/json

Sample:
{
  "id": "f052ac13-dc12-40de-8bb2-204739c43bbe",
  "date_start": "2026-01-11T23:50:20.5576328+00:00",
  "date_end": "2026-01-11T23:50:20.5576328+00:00",
  "user_unavailability_type_id": "182a8d8a-31ec-475d-9616-2251aa1af041",
  "user_unavailability_type_name": "sample string 5",
  "description": "sample string 6",
  "sys_logical_delete": true,
  "user_id": "36813b3f-993c-4a97-8557-77fa64e4801f",
  "modified_dateutc": "2026-01-11T23:50:20.5576328+00:00",
  "is_approved": true,
  "user_week_approval_id": "094e4eed-0e04-4086-88b9-3918b1156892",
  "db_address_id": "22696de5-85a3-49ca-ac06-b5a4a7d0b59e",
  "location": "sample string 13",
  "holiday_id": "86f20d2c-3b8f-4102-92e4-d861c65a78ef",
  "archive_reason": "sample string 15",
  "recurrence_id": "7220e9b8-a794-47de-931c-d0659b036d51",
  "time_span": "sample string 17",
  "dateutc_create": "2026-01-11T23:50:20.5576328+00:00",
  "is_confirmed": true
}

application/xml, text/xml

Sample:
<user_unavailability xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <archive_reason>sample string 15</archive_reason>
  <date_end>2026-01-11T23:50:20.557Z</date_end>
  <date_start>2026-01-11T23:50:20.557Z</date_start>
  <dateutc_create>2026-01-11T23:50:20.557Z</dateutc_create>
  <db_address_id>22696de5-85a3-49ca-ac06-b5a4a7d0b59e</db_address_id>
  <description>sample string 6</description>
  <holiday_id>86f20d2c-3b8f-4102-92e4-d861c65a78ef</holiday_id>
  <id>f052ac13-dc12-40de-8bb2-204739c43bbe</id>
  <is_approved>true</is_approved>
  <is_confirmed>true</is_confirmed>
  <location>sample string 13</location>
  <modified_dateutc>2026-01-11T23:50:20.557Z</modified_dateutc>
  <recurrence_id>7220e9b8-a794-47de-931c-d0659b036d51</recurrence_id>
  <sys_logical_delete>true</sys_logical_delete>
  <time_span>sample string 17</time_span>
  <user_id>36813b3f-993c-4a97-8557-77fa64e4801f</user_id>
  <user_unavailability_type_id>182a8d8a-31ec-475d-9616-2251aa1af041</user_unavailability_type_id>
  <user_unavailability_type_name>sample string 5</user_unavailability_type_name>
  <user_week_approval_id>094e4eed-0e04-4086-88b9-3918b1156892</user_week_approval_id>
</user_unavailability>

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.