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": "7bd2b57a-f6ff-4429-b6fe-b771413bac6c",
"date_start": "2026-10-05T09:38:07.1968576+00:00",
"date_end": "2026-10-05T09:38:07.1968576+00:00",
"modified_dateutc": "2026-10-05T09:38:07.1968576+00:00",
"description": "sample string 5",
"is_approved": true,
"user_id": "5686a47d-73a1-4ba3-8d23-e4dcd897e184",
"user_code": "sample string 8",
"user": {
"id": "bab7dce8-f2dc-4577-b9ad-cd05bebc7dad",
"db_language_id": "c6c1ad72-29a0-4484-bef4-9fc2484bd9af",
"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-10-05T09:38:07.1968576+00:00",
"skype": "sample string 16",
"notes": "sample string 17",
"sales_organization_id": "6420c6db-7ea0-410b-99b5-fec1211a0f97",
"sales_organization": {
"id": "5363fcda-76e3-4e76-9f51-d73ba2bf24c7",
"code": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"db_country_id": "68e47657-00e7-4df4-af92-121110dabb2d",
"db_currency_id": "b4531d7d-b5c4-4f78-bf9f-6aba5ed10b56",
"db_language_id": "6aed38e8-027c-43ad-b598-9b8dbe2c010e",
"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-10-05T09:38:07.1968576+00:00"
},
"sales_organization_code": "sample string 19",
"is_team_leader": true,
"team_leader_user_id": "a1467639-ca8c-4f8f-8070-5c52cea23552",
"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": "a7245abd-fc75-4734-ba93-e7ad9125339c",
"private_db_country_code": "sample string 35",
"modified_dateutc": "2026-10-05T09:38:07.2099091+00:00",
"allow_hero_app": true,
"allow_sales_app": true,
"allow_service_app": true,
"user_group_id": "3260ab89-34df-41ed-884a-b2d4e6879cf7"
},
"user_unavailability_type_id": "44403886-8fa9-46da-aee1-4e2f10c1698c",
"user_unavailability_type_code": "sample string 10",
"user_unavailability_type": {
"id": "284c66c6-121c-4be8-9fd9-90c999c3afa2",
"code": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"sales_organization_id": "689f2198-4f5c-41da-bfcd-c48379f89cd2",
"sales_organization_code": "sample string 6",
"sales_organization": {
"id": "5363fcda-76e3-4e76-9f51-d73ba2bf24c7",
"code": "sample string 2",
"name": "sample string 3",
"description": "sample string 4",
"db_country_id": "68e47657-00e7-4df4-af92-121110dabb2d",
"db_currency_id": "b4531d7d-b5c4-4f78-bf9f-6aba5ed10b56",
"db_language_id": "6aed38e8-027c-43ad-b598-9b8dbe2c010e",
"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-10-05T09:38:07.1968576+00:00"
},
"modified_dateutc": "2026-10-05T09:38:07.2099091+00:00"
}
}
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.