Creates a new unavailability type

Request Information

URI Parameters :

None.

Body Parameters :

user_unavailability_type
NameDescriptionTypeAdditional information
id

Primary Key

globally unique identifier
code

Field used for Embedded entity (store there your ERP PK)

string

Max length: 50

name

Name of the unavailability type

string

Required

Max length: 20

description

Long description

string

Max length: 100

sales_organization_id

FK of sales_organization. Filled if specific of one SO, empty if can be used by all

globally unique identifier
sales_organization_code

Embedded entity "sales_organization" using ERP PK when adding/updating company_type

string
sales_organization

Embedded entity "sales_organization" when adding/updating company_type

sales_organization
modified_dateutc

Readonly system field managed by database, filled with GetUtcDate when adding,updating

date

Request Formats :

application/json, text/json

Sample:
{
  "id": "4707a457-474f-4d7e-ab95-91269487cb6f",
  "code": "sample string 2",
  "name": "sample string 3",
  "description": "sample string 4",
  "sales_organization_id": "4a8234f6-8fbd-4cc5-a92d-5a747bbc54c0",
  "sales_organization_code": "sample string 6",
  "sales_organization": {
    "id": "e7ada4c9-a350-48f4-879e-33616222d252",
    "code": "sample string 2",
    "name": "sample string 3",
    "description": "sample string 4",
    "db_country_id": "953e3094-2821-43a2-8a90-77fd54a47572",
    "db_currency_id": "43ce1fce-a129-4717-a1cc-304ebb2d2fac",
    "db_language_id": "fd42cd4a-c0b5-4ccd-beec-4dc3dc1094af",
    "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-09-02T05:07:59.7480572+00:00"
  },
  "modified_dateutc": "2026-09-02T05:07:59.7480572+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.