Updates the unavailability with the specified key
Request Information
URI Parameters :
Name | Description | Type | Additional information |
---|---|---|---|
id | globally unique identifier |
Required |
Body Parameters :
user_unavailabilityName | 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": "ab33b8a8-51d6-42a1-87c8-f0135a29ce03", "date_start": "2025-03-16T15:01:00.9057477+00:00", "date_end": "2025-03-16T15:01:00.9057477+00:00", "modified_dateutc": "2025-03-16T15:01:00.9057477+00:00", "description": "sample string 5", "is_approved": true, "user_id": "e6a1f931-f6b0-4ecd-8068-37b5841f81eb", "user_code": "sample string 8", "user": { "id": "c8a6845c-2e7d-497b-b443-357def741a77", "db_language_id": "f9f9ef06-6c4d-4a9e-a9dd-e02c21935a88", "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-03-16T15:01:00.9057477+00:00", "skype": "sample string 16", "notes": "sample string 17", "sales_organization_id": "c488aef5-be51-42fa-afd4-7423a3d9feb5", "sales_organization": { "id": "6593e0e1-d6bc-4253-8fd5-88f5a1bfeada", "code": "sample string 2", "name": "sample string 3", "description": "sample string 4", "db_country_id": "d71a0c1f-e173-4472-9f18-de6073ffb95f", "db_currency_id": "0f4fd19f-63e0-4f42-a6b2-6e61db912ca5", "db_language_id": "874b3a12-927d-4b58-a099-41e2a05a649d", "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-03-16T15:01:00.9057477+00:00" }, "sales_organization_code": "sample string 19", "is_team_leader": true, "team_leader_user_id": "6e306a62-8d71-4e95-84d6-c2f65ea8e162", "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": "94f42099-ec7a-4e63-b025-2e513c74be8b", "private_db_country_code": "sample string 35", "modified_dateutc": "2025-03-16T15:01:00.9057477+00:00", "allow_hero_app": true, "allow_sales_app": true, "allow_service_app": true, "user_group_id": "f1bf107d-98b0-4103-ad10-9427f46e75b0" }, "user_unavailability_type_id": "f43309a4-9d48-4ba4-8518-a2dae2c0dafa", "user_unavailability_type_code": "sample string 10", "user_unavailability_type": { "id": "969821fb-2ff8-4c11-92b3-cf35cb09de2f", "code": "sample string 2", "name": "sample string 3", "description": "sample string 4", "sales_organization_id": "73a6969d-fe96-4e6c-9af8-8f46d9b59904", "sales_organization_code": "sample string 6", "sales_organization": { "id": "6593e0e1-d6bc-4253-8fd5-88f5a1bfeada", "code": "sample string 2", "name": "sample string 3", "description": "sample string 4", "db_country_id": "d71a0c1f-e173-4472-9f18-de6073ffb95f", "db_currency_id": "0f4fd19f-63e0-4f42-a6b2-6e61db912ca5", "db_language_id": "874b3a12-927d-4b58-a099-41e2a05a649d", "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-03-16T15:01:00.9057477+00:00" }, "modified_dateutc": "2025-03-16T15:01:00.9057477+00:00" } }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.