Creates a new unavailability
Request Information
URI Parameters :
None.
Body Parameters :
user_unavailability| Name | Description | Type | Additional 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
{
"id": "3cfd0797-a8ff-4f1b-9747-a11ddad9d26d",
"date_start": "2026-06-07T00:09:20.8574714+00:00",
"date_end": "2026-06-07T00:09:20.8574714+00:00",
"modified_dateutc": "2026-06-07T00:09:20.8574714+00:00",
"description": "sample string 5",
"is_approved": true,
"user_id": "493dbfd1-d943-4efd-ac93-527fd848ac15",
"user_code": "sample string 8",
"user": {
"id": "4b04da3f-3ac5-407a-8c90-836f8862fe1e",
"db_language_id": "8c6bf6dd-de32-4f92-b6fd-ab7cfd75c1b4",
"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-06-07T00:09:20.8574714+00:00",
"skype": "sample string 16",
"notes": "sample string 17",
"sales_organization_id": "0276f239-7597-4b50-bc21-f9c55b27429e",
"sales_organization": {
"id": "e216b434-760f-4e6a-9768-638f433c7346",
"code": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"db_country_id": "45fe38f1-caef-465d-9d3a-ef056f58d850",
"db_currency_id": "f5418bef-5d2d-4cd6-9b1b-3252ed362afd",
"db_language_id": "a3428f67-c9f1-44c3-9354-027d3bb69c13",
"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-06-07T00:09:20.8574714+00:00"
},
"sales_organization_code": "sample string 19",
"is_team_leader": true,
"team_leader_user_id": "84b40d44-680a-4d97-ad3d-57bdd283c608",
"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": "2e20ddbf-5aeb-4f58-921e-eab11698a4ed",
"private_db_country_code": "sample string 35",
"modified_dateutc": "2026-06-07T00:09:20.8574714+00:00",
"allow_hero_app": true,
"allow_sales_app": true,
"allow_service_app": true,
"user_group_id": "bfa4832d-4024-485c-9a67-8023cf0afddf"
},
"user_unavailability_type_id": "c09df996-f535-42b5-9c16-3808b71f8fd4",
"user_unavailability_type_code": "sample string 10",
"user_unavailability_type": {
"id": "fdd15a11-f9bc-4dd5-abf9-b225aa50ea62",
"code": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"sales_organization_id": "bb84adab-0af9-4215-9c19-a1d2af551d7e",
"sales_organization_code": "sample string 6",
"sales_organization": {
"id": "e216b434-760f-4e6a-9768-638f433c7346",
"code": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"db_country_id": "45fe38f1-caef-465d-9d3a-ef056f58d850",
"db_currency_id": "f5418bef-5d2d-4cd6-9b1b-3252ed362afd",
"db_language_id": "a3428f67-c9f1-44c3-9354-027d3bb69c13",
"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-06-07T00:09:20.8574714+00:00"
},
"modified_dateutc": "2026-06-07T00:09:20.8574714+00:00"
}
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.