Creates a new unavailability
Request Information
URI Parameters :
None.
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": "9c9c60a0-b9b4-490e-956e-03e17101745c", "date_start": "2025-06-07T22:28:23.1879877+00:00", "date_end": "2025-06-07T22:28:23.1879877+00:00", "modified_dateutc": "2025-06-07T22:28:23.1879877+00:00", "description": "sample string 5", "is_approved": true, "user_id": "3b73061d-c28e-4b24-8441-6a46f4445bcb", "user_code": "sample string 8", "user": { "id": "a1d5e16a-2ed4-4aa8-9746-3fafb126b3fe", "db_language_id": "840e58d0-b8db-491f-9227-5fc51263d55a", "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-06-07T22:28:23.1879877+00:00", "skype": "sample string 16", "notes": "sample string 17", "sales_organization_id": "831644b8-8c4f-490a-9a32-5edfc1980390", "sales_organization": { "id": "a4661e2a-8bde-42f9-b12e-ace838359825", "code": "sample string 2", "name": "sample string 3", "description": "sample string 4", "db_country_id": "82f80740-9123-4517-96ec-29da9bdadebe", "db_currency_id": "0105bda5-396d-4a1c-b503-b882fad8af34", "db_language_id": "514de1d1-f3cd-4204-90c2-1cb871ce0bba", "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-06-07T22:28:23.1879877+00:00" }, "sales_organization_code": "sample string 19", "is_team_leader": true, "team_leader_user_id": "83ea3264-c6d5-4bfb-9702-9561bdc9e5ad", "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": "d3725c5b-fde6-4b34-b8d9-9052bbaa7c02", "private_db_country_code": "sample string 35", "modified_dateutc": "2025-06-07T22:28:23.1879877+00:00", "allow_hero_app": true, "allow_sales_app": true, "allow_service_app": true, "user_group_id": "72f9f39b-6686-4c47-8a6a-b6d8bfdccc84" }, "user_unavailability_type_id": "e8dc8713-f235-4037-a5fe-168016044899", "user_unavailability_type_code": "sample string 10", "user_unavailability_type": { "id": "c0af6a54-63ca-4415-a9c5-cd7f22337dfa", "code": "sample string 2", "name": "sample string 3", "description": "sample string 4", "sales_organization_id": "e66c3af0-582a-4221-844f-1ee734d59f0c", "sales_organization_code": "sample string 6", "sales_organization": { "id": "a4661e2a-8bde-42f9-b12e-ace838359825", "code": "sample string 2", "name": "sample string 3", "description": "sample string 4", "db_country_id": "82f80740-9123-4517-96ec-29da9bdadebe", "db_currency_id": "0105bda5-396d-4a1c-b503-b882fad8af34", "db_language_id": "514de1d1-f3cd-4204-90c2-1cb871ce0bba", "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-06-07T22:28:23.1879877+00:00" }, "modified_dateutc": "2025-06-07T22:28:23.1879877+00:00" } }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.