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": "b2ce746b-010a-40ca-9e48-b422aa193a1d",
"date_start": "2026-05-23T20:52:32.9112521+00:00",
"date_end": "2026-05-23T20:52:32.9112521+00:00",
"modified_dateutc": "2026-05-23T20:52:32.9112521+00:00",
"description": "sample string 5",
"is_approved": true,
"user_id": "8c616e60-ae4f-4c9d-b34e-4debd47f8ab2",
"user_code": "sample string 8",
"user": {
"id": "4489097b-2d64-456d-af8d-a03bdbe86cf9",
"db_language_id": "941c969b-8338-4668-a30b-eca442b3b2f5",
"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-05-23T20:52:32.9112521+00:00",
"skype": "sample string 16",
"notes": "sample string 17",
"sales_organization_id": "87ba3cd1-f8c3-415b-bd76-ac6612479e3a",
"sales_organization": {
"id": "28ddad58-1e0a-44d0-8519-faab5d53cf68",
"code": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"db_country_id": "5c2a8389-5101-4477-9d3d-200d156fc2a5",
"db_currency_id": "6cf7e1b7-9624-43b5-add8-79a322987ae9",
"db_language_id": "b9de01f9-75d1-42a6-a29a-13cba2a6fc87",
"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-05-23T20:52:32.9112521+00:00"
},
"sales_organization_code": "sample string 19",
"is_team_leader": true,
"team_leader_user_id": "3f95b121-74e3-4357-adfc-bd062af93310",
"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": "7ab9de44-7497-4c0d-8985-0d06b94bedb6",
"private_db_country_code": "sample string 35",
"modified_dateutc": "2026-05-23T20:52:32.9112521+00:00",
"allow_hero_app": true,
"allow_sales_app": true,
"allow_service_app": true,
"user_group_id": "f7826670-22ed-4866-a292-b54d79bb7920"
},
"user_unavailability_type_id": "50d4b07f-5294-4cdd-8289-71e6fbf55535",
"user_unavailability_type_code": "sample string 10",
"user_unavailability_type": {
"id": "744d95ca-4f96-40cc-9eec-abbb639d851f",
"code": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"sales_organization_id": "34ffd0af-3d24-4195-a534-73846c0e8247",
"sales_organization_code": "sample string 6",
"sales_organization": {
"id": "28ddad58-1e0a-44d0-8519-faab5d53cf68",
"code": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"db_country_id": "5c2a8389-5101-4477-9d3d-200d156fc2a5",
"db_currency_id": "6cf7e1b7-9624-43b5-add8-79a322987ae9",
"db_language_id": "b9de01f9-75d1-42a6-a29a-13cba2a6fc87",
"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-05-23T20:52:32.9112521+00:00"
},
"modified_dateutc": "2026-05-23T20:52:32.9112521+00:00"
}
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.