Retrieves the unavailability with the specified key

Request Information

URI Parameters :

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters :

None.

Response Information

Resource Description :

IHttpActionResult

user_unavailability
NameDescriptionTypeAdditional information
id

Primary Key

globally unique identifier
date_start

Date+Time of the beginning

date

Required

date_end

Date+Time of the end

date

Required

modified_dateutc

Date+Time of the modified

date

Required

description

Description of the unavailability

string

Max length: 255

is_approved

Indicate if this object has been approved using a User Week Approval

boolean
user_id

User owner of this unavailability

globally unique identifier

Optionally required : user_id, user_code or user must be provided

user_code

Embedded entity "user" using ERP PK when adding/updating user_unavailability

string

Optionally required : user_id, user_code or user must be provided

user

Embedded entity "user" using node when adding/updating user_unavailability

user

Optionally required : user_id, user_code or user must be provided

user_unavailability_type_id

Type of the unavailability, cf model user_unavailability_type

globally unique identifier

Required

Optionally required : user_unavailability_type_id, user_unavailability_type_code or user_unavailability_type must be provided

user_unavailability_type_code

Embedded entity "user_unavailability_type" using ERP PK when adding/updating user_unavailability

string

Optionally required : user_unavailability_type_id, user_unavailability_type_code or user_unavailability_type must be provided

user_unavailability_type

Embedded entity "user_unavailability_type" using node when adding/updating user_unavailability

user_unavailability_type

Optionally required : user_unavailability_type_id, user_unavailability_type_code or user_unavailability_type must be provided

Response Formats

application/json, text/json

Sample:
{
  "id": "ba61236a-1b68-483d-abe0-5a28518f7952",
  "date_start": "2026-11-26T22:38:03.2140581+00:00",
  "date_end": "2026-11-26T22:38:03.2140581+00:00",
  "modified_dateutc": "2026-11-26T22:38:03.2140581+00:00",
  "description": "sample string 5",
  "is_approved": true,
  "user_id": "400b0b4e-6d1e-4b65-bd42-59bcf2b536d4",
  "user_code": "sample string 8",
  "user": {
    "id": "a318e5bd-867e-403c-b4be-ff5ff5ca581d",
    "db_language_id": "d29874dd-02ea-47c6-8052-d90ea695b211",
    "username": "sample string 3",
    "firstname": "sample string 4",
    "lastname": "sample string 5",
    "code": "sample string 6",
    "archived": true,
    "disabled": true,
    "emergency_contact": "sample string 9",
    "bankaccount": "sample string 10",
    "social_security": "sample string 11",
    "place_of_birth": "sample string 12",
    "nationality": "sample string 13",
    "functions": "sample string 14",
    "birthdate": "2026-11-26T22:38:03.2140581+00:00",
    "skype": "sample string 16",
    "notes": "sample string 17",
    "sales_organization_id": "3fe6da3f-ae0d-42ac-afbc-c6df1a0726f4",
    "sales_organization": {
      "id": "e80b4a77-613e-4db4-b5fd-add05832262c",
      "code": "sample string 2",
      "name": "sample string 3",
      "description": "sample string 4",
      "db_country_id": "9c2b612a-a0d3-40f5-be34-9753a308d768",
      "db_currency_id": "5a5c5383-24fa-42d2-8c50-7056f48c7418",
      "db_language_id": "df2a9acf-5f84-4e04-871d-79cfd3e6a40d",
      "accountancy_code": "sample string 8",
      "archived": true,
      "default_unit_of_measure_system_type": "sample string 10",
      "street": "sample string 11",
      "street2": "sample string 12",
      "street_number": "sample string 13",
      "zip": "sample string 14",
      "city": "sample string 15",
      "email": "sample string 16",
      "phone": "sample string 17",
      "fax": "sample string 18",
      "url": "sample string 19",
      "vat_reg_code": "sample string 20",
      "modified_dateutc": "2026-11-26T22:38:03.2140581+00:00"
    },
    "sales_organization_code": "sample string 19",
    "is_team_leader": true,
    "team_leader_user_id": "81f65d34-c690-4f86-adf0-eed7b5f032bb",
    "email": "sample string 22",
    "phone": "sample string 23",
    "fax": "sample string 24",
    "mobile": "sample string 25",
    "private_email": "sample string 26",
    "private_phone": "sample string 27",
    "private_fax": "sample string 28",
    "private_mobile": "sample string 29",
    "private_street": "sample string 30",
    "private_street_number": "sample string 31",
    "private_city": "sample string 32",
    "private_zip": "sample string 33",
    "private_db_country_id": "b56e957c-e3f1-421c-974b-2517f9ce1795",
    "private_db_country_code": "sample string 35",
    "modified_dateutc": "2026-11-26T22:38:03.2140581+00:00",
    "allow_hero_app": true,
    "allow_sales_app": true,
    "allow_service_app": true,
    "user_group_id": "068ccf59-df4f-4279-ab86-7020476f4361"
  },
  "user_unavailability_type_id": "5b859bef-9436-4a56-9cf1-d5e601f3e61f",
  "user_unavailability_type_code": "sample string 10",
  "user_unavailability_type": {
    "id": "9c2ff8ab-4180-4075-bc4e-ba6555956b52",
    "code": "sample string 2",
    "name": "sample string 3",
    "description": "sample string 4",
    "sales_organization_id": "24b9c154-5495-4349-90a0-94cbc40e0b7b",
    "sales_organization_code": "sample string 6",
    "sales_organization": {
      "id": "e80b4a77-613e-4db4-b5fd-add05832262c",
      "code": "sample string 2",
      "name": "sample string 3",
      "description": "sample string 4",
      "db_country_id": "9c2b612a-a0d3-40f5-be34-9753a308d768",
      "db_currency_id": "5a5c5383-24fa-42d2-8c50-7056f48c7418",
      "db_language_id": "df2a9acf-5f84-4e04-871d-79cfd3e6a40d",
      "accountancy_code": "sample string 8",
      "archived": true,
      "default_unit_of_measure_system_type": "sample string 10",
      "street": "sample string 11",
      "street2": "sample string 12",
      "street_number": "sample string 13",
      "zip": "sample string 14",
      "city": "sample string 15",
      "email": "sample string 16",
      "phone": "sample string 17",
      "fax": "sample string 18",
      "url": "sample string 19",
      "vat_reg_code": "sample string 20",
      "modified_dateutc": "2026-11-26T22:38:03.2140581+00:00"
    },
    "modified_dateutc": "2026-11-26T22:38:03.2140581+00:00"
  }
}