Updates the unavailability with the specified key
Request Information
URI Parameters :
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
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": "e1ece177-ef8c-4adc-9778-7dd05c1ae288",
"date_start": "2025-11-27T09:57:53.4583076+00:00",
"date_end": "2025-11-27T09:57:53.4583076+00:00",
"modified_dateutc": "2025-11-27T09:57:53.4583076+00:00",
"description": "sample string 5",
"is_approved": true,
"user_id": "80555256-5eb4-4a00-b14c-0ffad73124a7",
"user_code": "sample string 8",
"user": {
"id": "7e48df14-98b7-47d4-8c9d-3696f002b8f3",
"db_language_id": "66a0922f-6359-40fa-916b-901e84c5f30d",
"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": "2025-11-27T09:57:53.4583076+00:00",
"skype": "sample string 16",
"notes": "sample string 17",
"sales_organization_id": "7ff6272e-0736-4c5c-bc43-1ee66c2127b8",
"sales_organization": {
"id": "4b9ceabf-7b14-4622-8a5d-11d9d0cc5706",
"code": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"db_country_id": "723f65a8-d91d-454f-8597-199138796356",
"db_currency_id": "20df1544-654d-4582-9a2c-f4dab3d17d76",
"db_language_id": "3fdf178c-82cf-4ce4-b74a-39b9bbee5c1c",
"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": "2025-11-27T09:57:53.4583076+00:00"
},
"sales_organization_code": "sample string 19",
"is_team_leader": true,
"team_leader_user_id": "89afc95b-e8a5-4105-ba45-f29d18792436",
"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": "16770926-66e8-4948-b9e6-d0b33cac4c3b",
"private_db_country_code": "sample string 35",
"modified_dateutc": "2025-11-27T09:57:53.4583076+00:00",
"allow_hero_app": true,
"allow_sales_app": true,
"allow_service_app": true,
"user_group_id": "111b1639-0d6f-42c0-acf6-e6bb7f4e9d6e"
},
"user_unavailability_type_id": "9923eaca-e3af-4d8f-9a8b-69aadcd9efc2",
"user_unavailability_type_code": "sample string 10",
"user_unavailability_type": {
"id": "f519371d-7ef0-4a54-8fb3-0bd735f62a83",
"code": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"sales_organization_id": "83e09202-4fce-4f1d-a7c9-34efadcb506a",
"sales_organization_code": "sample string 6",
"sales_organization": {
"id": "4b9ceabf-7b14-4622-8a5d-11d9d0cc5706",
"code": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"db_country_id": "723f65a8-d91d-454f-8597-199138796356",
"db_currency_id": "20df1544-654d-4582-9a2c-f4dab3d17d76",
"db_language_id": "3fdf178c-82cf-4ce4-b74a-39b9bbee5c1c",
"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": "2025-11-27T09:57:53.4583076+00:00"
},
"modified_dateutc": "2025-11-27T09:57:53.4583076+00:00"
}
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.