| Required role: | Admin |
| POST | /ItemsAdd |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ItemsList | body | List<PushItem> | No | |
| UpdateMode | body | UpdateMode | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UserName | form | string | Yes | |
| Uid | form | string | Yes | |
| ItemType | form | ItemType | Yes | |
| Code | form | string | Yes | |
| Name | form | string | Yes | |
| Quality | form | PushItemQuality | Yes | |
| Unit | form | PushItemUnit | Yes | |
| AdditionalUnits | form | List<PushItemUnit> | No | |
| Stock | form | double | No | |
| Characteristic | form | PushItemCharacteristic | No | |
| Series | form | PushItemSeries | No |
| item | |
| tool | |
| uniform |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Uid | form | string | Yes | |
| Code | form | string | No | |
| Name | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Uid | form | string | Yes | |
| Code | form | string | No | |
| Name | form | string | Yes | |
| Coefficients | form | double | Yes | value >= 1 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Uid | form | string | Yes | |
| Code | form | string | No | |
| Name | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Uid | form | string | Yes | |
| Code | form | string | No | |
| Name | form | string | Yes | |
| ShelfLife | form | string | No | |
| SerialNumber | form | string | No |
| PushItems | |
| CleanAllBeforePush | |
| CleanByUsersBeforePush |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ItemsAdd HTTP/1.1
Host: s10.tdfkm.ru
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
itemsList:
[
{
userName: String,
uid: String,
itemType: item,
code: String,
name: String,
quality:
{
uid: String,
code: String,
name: String
},
unit:
{
uid: String,
code: String,
name: String,
coefficients: 0
},
additionalUnits:
[
{
uid: String,
code: String,
name: String,
coefficients: 0
}
],
stock: 0,
characteristic:
{
uid: String,
code: String,
name: String
},
series:
{
uid: String,
code: String,
name: String,
shelfLife: String,
serialNumber: String
}
}
],
updateMode: PushItems
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
processedCount: 0,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}