Creates a new unavailability

Request Information

URI Parameters :

None.

Body Parameters :

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

Request Formats :

application/json, text/json

Sample:
{
  "id": "17685ce6-7381-43e2-b5a7-9737abc29a92",
  "date_start": "2026-07-08T05:54:38.2016238+00:00",
  "date_end": "2026-07-08T05:54:38.2016238+00:00",
  "modified_dateutc": "2026-07-08T05:54:38.2016238+00:00",
  "description": "sample string 5",
  "is_approved": true,
  "user_id": "26311c6d-4d7d-4299-a52b-bc6459cc44dd",
  "user_code": "sample string 8",
  "user": {
    "id": "863dc90c-0a7e-4cd0-9c17-c9a3d62a5548",
    "db_language_id": "ccf3db57-20ba-4535-9166-b73ab46f5aa6",
    "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-07-08T05:54:38.2016238+00:00",
    "skype": "sample string 16",
    "notes": "sample string 17",
    "sales_organization_id": "dfde8bda-0ded-4012-a1ec-f65adbfcc3ee",
    "sales_organization": {
      "id": "909e3143-9ee6-4f0b-b33c-9c50b771a9f1",
      "code": "sample string 2",
      "name": "sample string 3",
      "description": "sample string 4",
      "db_country_id": "de9235b1-2d83-4115-a410-ad4d6b2aabde",
      "db_currency_id": "766d1700-de64-4dd1-8ab5-96a824a55e03",
      "db_language_id": "fc3d04d3-7714-4a9c-b4ef-3f98ac0ecf73",
      "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-07-08T05:54:38.2016238+00:00"
    },
    "sales_organization_code": "sample string 19",
    "is_team_leader": true,
    "team_leader_user_id": "35330a85-5b10-4578-b0c7-e456fe5ed190",
    "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": "a3d11aba-0fbf-4734-a707-697cbbc58992",
    "private_db_country_code": "sample string 35",
    "modified_dateutc": "2026-07-08T05:54:38.2016238+00:00",
    "allow_hero_app": true,
    "allow_sales_app": true,
    "allow_service_app": true,
    "user_group_id": "4bc25e56-2af6-4732-9e1f-2441ead1047a"
  },
  "user_unavailability_type_id": "7c0dc7df-849e-4996-9fcc-ce0e075a5a33",
  "user_unavailability_type_code": "sample string 10",
  "user_unavailability_type": {
    "id": "164face0-d5bb-4092-a943-6edf21367d77",
    "code": "sample string 2",
    "name": "sample string 3",
    "description": "sample string 4",
    "sales_organization_id": "5e05ca8a-e29b-4d25-8408-460f6e7760a0",
    "sales_organization_code": "sample string 6",
    "sales_organization": {
      "id": "909e3143-9ee6-4f0b-b33c-9c50b771a9f1",
      "code": "sample string 2",
      "name": "sample string 3",
      "description": "sample string 4",
      "db_country_id": "de9235b1-2d83-4115-a410-ad4d6b2aabde",
      "db_currency_id": "766d1700-de64-4dd1-8ab5-96a824a55e03",
      "db_language_id": "fc3d04d3-7714-4a9c-b4ef-3f98ac0ecf73",
      "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-07-08T05:54:38.2016238+00:00"
    },
    "modified_dateutc": "2026-07-08T05:54:38.2172438+00:00"
  }
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.