POST PriceListItems

Vytvoření nové ceníkové položky. Pouze pro admina.

Request Information

URI Parameters

None.

Body Parameters

PriceListItemCreateDTO
NameDescriptionTypeAdditional information
Code

string

None.

ValidTo

date

None.

Title

string

None.

Type

PriceListItemType

None.

Unit

PriceListItemUnit

None.

UnitPrice

decimal number

None.

Vat

decimal number

None.

ValidFrom

date

None.

Request Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "validTo": "2025-05-04T11:21:36.9173169",
  "title": "sample string 2",
  "type": "data",
  "unit": "hectare",
  "unitPrice": 3.0,
  "vat": 4.0,
  "validFrom": "2025-05-04T11:21:36.9173169"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PriceListItemPlainDTO
NameDescriptionTypeAdditional information
Code

string

None.

Title

string

None.

Type

PriceListItemType

None.

Unit

PriceListItemUnit

None.

UnitPrice

decimal number

None.

Vat

decimal number

None.

ValidFrom

date

None.

ValidTo

date

None.

CreatorId

integer

None.

EditorId

integer

None.

Created

date

None.

Edited

date

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "title": "sample string 2",
  "type": "data",
  "unit": "hectare",
  "unitPrice": 3.0,
  "vat": 4.0,
  "validFrom": "2025-05-04T11:21:36.9329145",
  "validTo": "2025-05-04T11:21:36.9329145",
  "creatorId": 6,
  "editorId": 1,
  "created": "2025-05-04T11:21:36.9329145",
  "edited": "2025-05-04T11:21:36.9329145",
  "id": 8
}