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": "0ee28aec-3805-49f0-a379-f77459065efa",
  "date_start": "2026-03-07T14:49:34.2893644+00:00",
  "date_end": "2026-03-07T14:49:34.2893644+00:00",
  "user_unavailability_type_id": "a73b0fa6-2d18-41fd-bdec-c0cb0197c840",
  "user_unavailability_type_name": "sample string 5",
  "description": "sample string 6",
  "sys_logical_delete": true,
  "user_id": "a3a50969-02ae-43d4-951e-28d61d4ca360",
  "modified_dateutc": "2026-03-07T14:49:34.2893644+00:00",
  "is_approved": true,
  "user_week_approval_id": "3558e36d-1c65-414e-9eb0-0eb802cb56eb",
  "db_address_id": "4a2cdf75-6eeb-4c46-87ae-92b7a052d95b",
  "location": "sample string 13",
  "holiday_id": "a7bc3d0d-5a86-435a-8c4c-1fe9209d67c7",
  "archive_reason": "sample string 15",
  "recurrence_id": "578c850c-c898-4dc0-a19c-895428bc2dc8",
  "time_span": "sample string 17",
  "dateutc_create": "2026-03-07T14:49:34.2893644+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-03-07T14:49:34.289Z</date_end>
  <date_start>2026-03-07T14:49:34.289Z</date_start>
  <dateutc_create>2026-03-07T14:49:34.289Z</dateutc_create>
  <db_address_id>4a2cdf75-6eeb-4c46-87ae-92b7a052d95b</db_address_id>
  <description>sample string 6</description>
  <holiday_id>a7bc3d0d-5a86-435a-8c4c-1fe9209d67c7</holiday_id>
  <id>0ee28aec-3805-49f0-a379-f77459065efa</id>
  <is_approved>true</is_approved>
  <is_confirmed>true</is_confirmed>
  <location>sample string 13</location>
  <modified_dateutc>2026-03-07T14:49:34.289Z</modified_dateutc>
  <recurrence_id>578c850c-c898-4dc0-a19c-895428bc2dc8</recurrence_id>
  <sys_logical_delete>true</sys_logical_delete>
  <time_span>sample string 17</time_span>
  <user_id>a3a50969-02ae-43d4-951e-28d61d4ca360</user_id>
  <user_unavailability_type_id>a73b0fa6-2d18-41fd-bdec-c0cb0197c840</user_unavailability_type_id>
  <user_unavailability_type_name>sample string 5</user_unavailability_type_name>
  <user_week_approval_id>3558e36d-1c65-414e-9eb0-0eb802cb56eb</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.