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": "97aeb75b-06a6-42da-88a3-d2dec722a791",
"date_start": "2026-11-16T17:41:49.0283868+00:00",
"date_end": "2026-11-16T17:41:49.0283868+00:00",
"modified_dateutc": "2026-11-16T17:41:49.0283868+00:00",
"description": "sample string 5",
"is_approved": true,
"user_id": "5eb960d7-234d-407d-9867-284e8491032f",
"user_code": "sample string 8",
"user": {
"id": "71d200b9-9399-4156-98b3-a85349b9a4c4",
"db_language_id": "5a8158dd-2ebd-4194-b4e6-601a121df86a",
"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-11-16T17:41:49.0283868+00:00",
"skype": "sample string 16",
"notes": "sample string 17",
"sales_organization_id": "198eee09-0418-4591-a19a-cb2a1bf54175",
"sales_organization": {
"id": "397e83c3-c8f0-4f08-9e35-ccc1aa543e1e",
"code": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"db_country_id": "4e75e0cf-dcec-4fe9-88b7-efa0e06eb333",
"db_currency_id": "2aac9dda-3b1f-4c01-81e2-a9703780c094",
"db_language_id": "8c31dc1a-fd8f-4945-9800-c54623b9f08d",
"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-11-16T17:41:49.0283868+00:00"
},
"sales_organization_code": "sample string 19",
"is_team_leader": true,
"team_leader_user_id": "2518878b-7415-4975-a692-9d94d6d1b5d1",
"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": "8e650e0f-b980-4976-a00e-1afaedf495de",
"private_db_country_code": "sample string 35",
"modified_dateutc": "2026-11-16T17:41:49.0283868+00:00",
"allow_hero_app": true,
"allow_sales_app": true,
"allow_service_app": true,
"user_group_id": "46eeef0b-639e-4f7f-9dc2-9ec246034844"
},
"user_unavailability_type_id": "cb007e13-3d70-4915-9fd3-47e52d64f8a0",
"user_unavailability_type_code": "sample string 10",
"user_unavailability_type": {
"id": "61e92056-cb86-4d76-bde4-5a4f0ae887b3",
"code": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"sales_organization_id": "fe5f27a6-7031-4d64-93b0-2684c21f889c",
"sales_organization_code": "sample string 6",
"sales_organization": {
"id": "397e83c3-c8f0-4f08-9e35-ccc1aa543e1e",
"code": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"db_country_id": "4e75e0cf-dcec-4fe9-88b7-efa0e06eb333",
"db_currency_id": "2aac9dda-3b1f-4c01-81e2-a9703780c094",
"db_language_id": "8c31dc1a-fd8f-4945-9800-c54623b9f08d",
"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-11-16T17:41:49.0283868+00:00"
},
"modified_dateutc": "2026-11-16T17:41:49.0283868+00:00"
}
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.