Add new entity to Features
POST/Features
Add new entity to Features
Request
- application/json
Body
required
New entity
name string
articleCode string
type
salesPrice decimal
disallowDiscount boolean
minValue decimal
maxValue decimal
stepValue decimal
packingUnit decimal
categoryId uuid
marginPct decimal
cardImageUrl string
vatId uuid
unitOfMeasurementId uuid
tags string[]
_subcategoryIds uuid[]
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
id uuid
createdDate date-time
updatedDate date-time
organizationId uuid
reference string
creatorId uuid
customField1 string
customField2 string
customField3 string
customField4 string
customField5 string
category
organization
Responses
- 201
- default
Created entity
- application/json
- Schema
- Example (from schema)
Schema
name string
articleCode string
type
salesPrice decimal
disallowDiscount boolean
minValue decimal
maxValue decimal
stepValue decimal
packingUnit decimal
categoryId uuid
marginPct decimal
cardImageUrl string
vatId uuid
unitOfMeasurementId uuid
tags string[]
_subcategoryIds uuid[]
Possible values: Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
id uuid
createdDate date-time
updatedDate date-time
organizationId uuid
reference string
creatorId uuid
customField1 string
customField2 string
customField3 string
customField4 string
customField5 string
category
organization
{
"name": "string",
"articleCode": "string",
"type": {},
"salesPrice": 0,
"disallowDiscount": true,
"minValue": 0,
"maxValue": 0,
"stepValue": 0,
"packingUnit": 0,
"categoryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"marginPct": 0,
"cardImageUrl": "string",
"vatId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"unitOfMeasurementId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tags": [
"string"
],
"_subcategoryIds": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"createdDate": "2024-06-06T15:30:37.341Z",
"updatedDate": "2024-06-06T15:30:37.341Z",
"organizationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reference": "string",
"creatorId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"customField1": "string",
"customField2": "string",
"customField3": "string",
"customField4": "string",
"customField5": "string",
"category": {},
"organization": {}
}
error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
error
object
required
code stringrequired
message stringrequired
target string
details
object[]
code stringrequired
message stringrequired
target string
innererror object
The structure of this object is service-specific
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
],
"innererror": {}
}
}
Loading...