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": "480d04cc-7f08-432f-bd0b-c3703d3e6759",
  "date_start": "2026-11-28T22:49:45.2394026+00:00",
  "date_end": "2026-11-28T22:49:45.2394026+00:00",
  "modified_dateutc": "2026-11-28T22:49:45.2394026+00:00",
  "description": "sample string 5",
  "is_approved": true,
  "user_id": "17dc8358-cbe0-49ca-987f-3d40bc24f650",
  "user_code": "sample string 8",
  "user": {
    "id": "0270a460-af0f-44ec-8a24-90a500c81141",
    "db_language_id": "06d18722-6d4d-463c-988b-da7c8dc7f125",
    "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-28T22:49:45.2394026+00:00",
    "skype": "sample string 16",
    "notes": "sample string 17",
    "sales_organization_id": "bf3cd24a-76f0-41a1-9340-5f98e26f96a6",
    "sales_organization": {
      "id": "cd358ca8-4c5d-448a-9ed3-aa7da7bbc44e",
      "code": "sample string 2",
      "name": "sample string 3",
      "description": "sample string 4",
      "db_country_id": "bd4b9b92-8733-428b-985a-3cc8c8c17c11",
      "db_currency_id": "843c99c6-f489-4ed4-945a-5557d9856606",
      "db_language_id": "a5cd0ae8-fd0f-4f92-8961-aa94584d0fec",
      "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-28T22:49:45.2394026+00:00"
    },
    "sales_organization_code": "sample string 19",
    "is_team_leader": true,
    "team_leader_user_id": "e34e5710-48e9-4b86-b37d-99c8624be166",
    "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": "0401f38c-4611-4dc0-82e2-aa2cc6cf0e09",
    "private_db_country_code": "sample string 35",
    "modified_dateutc": "2026-11-28T22:49:45.2394026+00:00",
    "allow_hero_app": true,
    "allow_sales_app": true,
    "allow_service_app": true,
    "user_group_id": "58c3e68d-592d-4c8c-8acc-6da11e2247c2"
  },
  "user_unavailability_type_id": "5f8c9183-4f68-4fc7-a8fd-ca1a0fd71d66",
  "user_unavailability_type_code": "sample string 10",
  "user_unavailability_type": {
    "id": "ba7049cb-056b-4dd0-91c3-b9c3d7541b3a",
    "code": "sample string 2",
    "name": "sample string 3",
    "description": "sample string 4",
    "sales_organization_id": "edc86087-def1-4e64-9f60-47bf12e56e94",
    "sales_organization_code": "sample string 6",
    "sales_organization": {
      "id": "cd358ca8-4c5d-448a-9ed3-aa7da7bbc44e",
      "code": "sample string 2",
      "name": "sample string 3",
      "description": "sample string 4",
      "db_country_id": "bd4b9b92-8733-428b-985a-3cc8c8c17c11",
      "db_currency_id": "843c99c6-f489-4ed4-945a-5557d9856606",
      "db_language_id": "a5cd0ae8-fd0f-4f92-8961-aa94584d0fec",
      "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-28T22:49:45.2394026+00:00"
    },
    "modified_dateutc": "2026-11-28T22:49:45.2394026+00:00"
  }
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.