-
Notifications
You must be signed in to change notification settings - Fork 9
Bulk items
Quadrollopo edited this page Oct 19, 2020
·
2 revisions
Request:
POST v2/bulk/add/{identifier}
Call this request to bulk add items. You must chose an identifier for the bulk. You can add ?overwrite=yes at the end if you want to replace a bulk with the same identifer.
The body must be a json array specifying for each element if is a item or a product with the parameter "type"="I"/"P"
Example:
[
{
"type": "I",
"features": {
"brand": "Olidata",
"model": "Denver 69000",
"variant": "default",
"type": "case",
"working": "yes"
},
"contents": [
{
"features": {
"brand": "ASUSTek Computer inc.",
"model": "P5KPL-VM",
"variant": "default",
"mac": "00:1a:22:52:a4:be",
"sn": "MT707BK05303585",
"type": "motherboard",
"working": "yes"
},
"contents": [
{
"code": "C251",
"features": {
"brand": "Intel",
"model": "Core 2 Duo E8200",
"variant": "default",
"type": "cpu",
"working": "yes"
}
},
{
"features": {
"brand": "Samsung",
"model": "M3 78T2863DZS-CF7",
"sn": "589442786",
"variant": "default",
"type": "ram",
"working": "yes"
}
},
{
"code": "R597",
"features": {
"brand": "Samsung",
"model": "M3 78T2953EZ3-CF7",
"sn": "1231847313",
"variant": "default",
"type": "ram",
"working": "yes"
}
}
]
}
]
},
{
"type": "P",
"brand": "Samsung",
"model": "M3 78T2953EZ3-CF7",
"variant": "default",
"features": {
"capacity-byte": 1073741824,
"color": "green",
"frequency-hertz": 800000000,
"ram-ecc": "no",
"ram-form-factor": "dimm",
"ram-timings": "6-6-6-18 as DDR2-800",
"ram-type": "ddr2",
"type": "ram"
}
},
{
"type": "P",
"brand": "Intel",
"model": "Core 2 Duo E8200",
"variant": "default",
"features": {
"core-n": 2,
"cpu-socket": "lga775",
"frequency-hertz": 2660000000,
"isa": "x86-64",
"thread-n": 2,
"type": "cpu"
}
},
{
"type": "P",
"brand": "ASUSTek Computer inc.",
"model": "P5KPL-VM",
"variant": "default",
"features": {
"color": "golden",
"cpu-socket": "lga775",
"ethernet-ports-1000m-n": 1,
"integrated-graphics-brand": "Intel",
"integrated-graphics-model": "82G33/G31 Express",
"key-bios-setup": "Del",
"mini-jack-ports-n": 3,
"motherboard-form-factor": "microatx",
"ps2-ports-n": 2,
"psu-connector-cpu": "4pin",
"psu-connector-motherboard": "atx-24pin",
"ram-form-factor": "dimm",
"ram-type": "ddr2",
"sata-ports-n": 4,
"serial-ports-n": 1,
"type": "motherboard",
"usb-ports-n": 4,
"vga-ports-n": 1
}
}
]