Products API
Create, read, update, and delete products in your organization's catalog.
GET /api/v1/products
Returns a paginated list of products from your organization's catalog. Use query parameters to filter and search.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page |
integer | 1 | Page number |
pageSize |
integer | 20 | Items per page (max 100) |
search |
string | Search by Part# or Model | |
category |
string | Filter by category | |
productType |
string | Filter by product type | |
activeOnly |
boolean | true | Only return active products |
Example Request
GET /api/v1/products?page=1&pageSize=10&search=microphone
Authorization: Bearer YOUR_JWT_TOKEN
Response (200 - Success)
{
"success": true,
"data": {
"products": [
{
"id": 123,
"make": "Shure",
"model": "MXA910",
"description": "Ceiling array microphone",
"price": 2999.00,
"productType": "Microphone",
"part": "MXA910-60CM",
"category": "Audio",
"isActive": true
}
],
"pagination": {
"currentPage": 1,
"pageSize": 10,
"totalCount": 150,
"totalPages": 15,
"hasPrevious": false,
"hasNext": true
}
},
"timestamp": "2024-12-25T12:00:00Z"
}
GET /api/v1/products/{id}
Returns a single product by its unique identifier.
Response (200 - Success)
{
"success": true,
"data": {
"product": {
"id": 123,
"make": "Shure",
"model": "MXA910",
"description": "Ceiling array microphone",
"longDescription": "Professional ceiling array microphone with 60cm pickup pattern...",
"enrichedDescription": "AI-generated detailed description...",
"price": 2999.00,
"vendor": "TD SYNNEX",
"imageUrl": "https://example.com/mxa910.jpg",
"productType": "Microphone",
"part": "MXA910-60CM",
"category": "Audio",
"roomType": "Conference Room",
"tags": "microphone,ceiling,array,beamforming",
"specifications": "60cm pickup pattern, 8 lobes, PoE+",
"isActive": true,
"dateUpdated": "2024-12-20T10:30:00Z",
"hasEmbedding": true
}
},
"timestamp": "2024-12-25T12:00:00Z"
}
Error Responses
| Status | Code | Description |
|---|---|---|
| 404 | PRODUCT_NOT_FOUND |
Product with specified ID does not exist |
Variant Group Fields
A variant group links catalog products that are the same device in different finishes. Each product in the responses of GET /api/v1/products and GET /api/v1/products/{id} carries four fields that describe its group. All four are null when the product is in no group.
| Field | Type | Description |
|---|---|---|
variantGroupId |
integer or null | The ID of the product's variant group |
variantGroupName |
string or null | The name of the group, for example C-IC6LP |
variantOption |
string or null | The group's option name, which says what differs between its members, for example Color |
variantLabel |
string or null | This product's value for that option, for example White |
A product that is in a group, with its other fields left out:
{
"id": 412,
"make": "Biamp",
"model": "C-IC6LP-W",
"variantGroupId": 12,
"variantGroupName": "C-IC6LP",
"variantOption": "Color",
"variantLabel": "White"
}
The four fields are read-only on products. To change a product's group or label, use the Variant Groups API.
PUT /api/v1/products/{id}refuses a body that names any of the four fields. It returns400 UNKNOWN_FIELDSand changes nothing.POST /api/v1/productsdoes not read the four fields. A new product is always created in no group.- The make of a product that is in a group cannot be changed.
PUT /api/v1/products/{id}with a differentmakereturns400 VARIANT_GROUP_RULEwith the problemUngroup this product before changing its make.Remove the product from its group first. A change of letter case or of surrounding spaces is the same make, so it is accepted.
Device Category Fields
A product's device category is the category its device tags are named from, such as Display / DISP. It is separate from the free-text category and productType. Each product in the responses of GET /api/v1/products and GET /api/v1/products/{id} carries the fields below. cadCategoryId and cadCategory are null when the product is unclassified, and cadBlocks is empty when the product has no CAD block of its own.
| Field | Type | Description |
|---|---|---|
cadCategoryId |
integer or null | The ID of the product's device category, from GET /api/v1/cad-categories |
cadCategory |
object or null | The category's id, name and abbreviation |
cadBlocks |
array | The product's own CAD block for each view it sets, in view order: view, id (the block's ID), name, blockName and visibilityState (null for the block's default state). A view it does not list uses the category's default block. A block archived since it was chosen is still listed but no longer used. Set with PUT /api/v1/products/{id}/cad-blocks below. |
A classified product with a block for the plan view, its other fields left out:
{
"id": 123,
"make": "Samsung",
"model": "QM65C",
"cadCategoryId": 7,
"cadCategory": { "id": 7, "name": "Display", "abbreviation": "DISP" },
"cadBlocks": [
{ "view": "plan", "id": 9, "name": "Display wall", "blockName": "AVS_DISP_WALL", "visibilityState": "TOP" }
]
}
POST /api/v1/products and PUT /api/v1/products/{id} take cadCategoryId. On PUT, a null or missing value leaves the category unchanged, so clear it with PUT /api/v1/products/{id}/category below. A cadCategoryId that is not one of your categories returns 404 NOT_FOUND and nothing is written. The category list itself is in the Device Tags API.
Device Role Field
A product's device role is the kind of device it is, such as a ceiling microphone or a speaker. A certified system's slot lists only products of the slot's device role; see deviceRole in the Certified Systems API. Each product in the responses of GET /api/v1/products and GET /api/v1/products/{id} carries the field below.
| Field | Type | Description |
|---|---|---|
deviceRole |
string or null | The product's device role, one of the keys below, or null when the product has none |
The device role keys, with the name the app shows for each, what belongs in it and the device categories it is grouped under. A name ending in (any) is a general role, for a product whose details do not say which kind it is.
| Key | Name | What belongs in it | Device categories |
|---|---|---|---|
display | Display (any) | A screen that shows the picture, when the details do not say which kind; prefer a specific display role. | Display |
flatPanelDisplay | Flat-panel display | A flat-panel LCD or OLED display or TV; not a video wall panel. | Display |
interactiveDisplay | Interactive display | A touch-screen display made for writing on or interacting with. | Display |
ledDisplay | LED display / video wall | A direct-view LED display or LED wall, or an LCD video wall panel; not the controller that drives it. | Display |
projector | Projector | A projector of any throw distance. | Projector |
projectionScreen | Projection screen | A screen a projector shows onto: electric, fixed-frame, manual or portable. | Projection Screen |
videoBar | Video bar (any) | An all-in-one camera, microphone and speaker bar, when the details do not say how it joins the meeting. | Video Bar |
videoBarOnboard | Video bar: onboard conferencing | A video bar that runs the meeting software itself and cannot work as a USB device for a PC. | Video Bar |
videoBarUsb | Video bar: USB only (needs a PC) | A video bar that is a USB peripheral to a PC or laptop and runs no meeting software itself. | Video Bar |
videoBarBoth | Video bar: both | A video bar that runs the meeting software itself and can also work as a USB device for a room PC or laptop. | Video Bar |
camera | Camera (any) | A camera, when the details do not say which kind; prefer a specific camera role. | Camera |
ptzCamera | PTZ camera | A camera with a motor that pans, tilts and zooms, whatever its connection. | Camera |
fixedCamera | Fixed camera | A wall- or display-mounted conference camera with no pan-tilt motor, including one that frames people digitally; not a table camera. | Camera |
tableCamera | Table camera | A camera that sits at the centre of the meeting table, such as Logitech Sight. | Camera |
documentCamera | Document camera | A camera that shows documents or objects laid under it. | Camera |
contentCamera | Whiteboard / content camera | A camera that captures a whiteboard or wall for sharing, such as Logitech Scribe. | Camera |
codec | Codec or room PC (any) | The device that runs the room's video meeting, when the details do not say whether it is a codec or a PC. | Codec |
vcCodec | Video conferencing codec | A dedicated video conferencing codec or appliance, including Android-based ones, with cameras and displays attached; not a Windows or Linux PC. | Codec |
roomPc | Meeting-room PC | A small Windows or Linux PC or compute appliance that runs the room's meeting software, such as Teams Rooms, Zoom Rooms or Google Meet. | Codec, Computer |
mediaPlayer | Media / signage player | A player that plays media or digital signage to a display. | Computer |
speaker | Speaker (any) | A loudspeaker, when the details do not say which kind; prefer a specific speaker role. | Speaker |
ceilingSpeaker | Ceiling speaker | A loudspeaker in or on the ceiling fed speaker-level audio by an amplifier. | Speaker |
pendantSpeaker | Pendant speaker | A loudspeaker that hangs from the ceiling on a cable, fed by an amplifier. | Speaker |
surfaceSpeaker | Wall / surface speaker | A loudspeaker mounted on a wall or surface, fed by an amplifier. | Speaker |
columnSpeaker | Column / line array | A tall column or line-array loudspeaker. | Speaker |
networkedSpeaker | Networked speaker (Dante / PoE) | A loudspeaker with its own amplifier, fed audio over the network (Dante, AES67 or AVB) and powered by PoE, wherever it is mounted; this role wins over the mounting roles. | Speaker |
soundbarPassive | Soundbar (passive) | A soundbar with no amplifier inside, fed speaker-level audio. | Speaker |
soundbarPowered | Soundbar (powered) | A soundbar with its own amplifier, fed line, digital or HDMI audio. | Speaker |
subwoofer | Subwoofer | A low-frequency loudspeaker. | Subwoofer |
amplifier | Amplifier (any) | An amplifier that drives loudspeakers, when the details do not say which kind. | Amplifier |
powerAmplifier | Power amplifier | A mains-powered amplifier fed analog audio, for low-impedance or 70/100 V speakers. | Amplifier |
networkedAmplifier | Networked amplifier (Dante / AVB) | A mains-powered amplifier fed audio over the network (Dante, AES67 or AVB). | Amplifier |
poeAmplifier | PoE amplifier | An amplifier powered by PoE; this role wins over networked when both apply. | Amplifier |
microphone | Microphone (any) | A microphone, when the details do not say which kind; prefer a specific microphone role. | Microphone |
ceilingMic | Ceiling microphone | A microphone in or on the ceiling, such as a ceiling array or ceiling tile microphone. | Microphone |
tableMic | Table / boundary microphone | A microphone that lies on the table, such as a table array or boundary microphone; not a gooseneck, not a video bar's mic pod. | Microphone |
gooseneckMic | Gooseneck microphone | A microphone on a flexible gooseneck stem. | Microphone |
micPod | Mic pod / mic pod hub | A video bar maker's own add-on table mic pod or its hub, such as the Logitech Rally Mic Pod. | Microphone |
wirelessMicReceiver | Wireless mic receiver | The receiver of a wireless microphone system, sold on its own. | Microphone, Receiver |
wirelessMicTransmitter | Wireless mic transmitter (handheld / bodypack) | A wireless handheld microphone or bodypack transmitter, sold on its own. | Microphone, Transmitter |
wirelessMicSystem | Wireless mic system (receiver + mics) | A wireless microphone set sold as one product: a receiver and one or more transmitters. | Microphone |
dsp | DSP (any) | An audio digital signal processor (DSP) with echo cancellation and mixing, when the details do not say which kind. | DSP |
fixedIoDsp | Fixed I/O DSP | A DSP with a fixed set of audio inputs and outputs in one box. | DSP |
dspCore | DSP core / server | A DSP whose inputs and outputs come from cards or networked expanders. | DSP |
audioInterface | Audio I/O expander / interface | A box that adds audio inputs or outputs to a DSP or the network (USB, Bluetooth, Dante or AVB) and is not a DSP itself. | DSP |
switcher | Switcher (any) | A video switcher, when the details do not say which kind. | Switcher |
presentationSwitcher | Presentation switcher | A switcher, often scaling, that picks which source goes to a room's displays. | Switcher |
matrixSwitcher | Matrix switcher | A switcher that routes any of several inputs to any of several outputs. | Switcher |
byodHub | BYOD hub (laptop table box) | The table-side box that connects a guest laptop to the room system over USB and HDMI, such as Logitech Swytch. | Switcher |
presentationSystem | All-in-one presentation system | One box that switches video, runs room control and often amplifies audio. | Switcher, Control Processor |
hdbtTransmitter | HDBaseT transmitter | Sends HDMI, and often USB, control and power, over twisted-pair cable to an HDBaseT or HDBaseT-compatible receiver (such as Extron DTP), in a box or a wall plate. | Extender, Transmitter, Wall Plate |
hdbtReceiver | HDBaseT receiver | Receives HDBaseT from a transmitter and outputs HDMI, in a box or a wall plate. | Extender, Receiver, Wall Plate |
extenderSet | Extender set (transmitter + receiver) | A matched transmitter and receiver sold as one product, of any kind; this role wins over fiber and USB extender for a set. | Extender, Transmitter, Receiver |
fiberExtender | Fiber extender | Sends AV signals over fiber optic cable: a transmitter, a receiver or a set. | Extender, Transmitter, Receiver |
usbExtender | USB extender | Carries USB over a longer cable or the network. | Extender, Transmitter, Receiver |
avoipEncoder | AV-over-IP encoder | Puts video and audio onto the network for AV-over-IP decoders; encode only. | Extender, Transmitter, Wall Plate |
avoipDecoder | AV-over-IP decoder | Takes AV-over-IP video off the network to a display; decode only. | Extender, Receiver, Wall Plate |
avoipEncoderDecoder | AV-over-IP encoder / decoder (configurable) | An AV-over-IP endpoint that can be set to encoder or decoder in software. | Extender, Transmitter, Receiver, Wall Plate |
wirelessPresentation | Wireless presentation system | Lets laptops share their screen wirelessly to the room display: a base unit, buttons or both. | Extender, Transmitter, Receiver |
controlProcessor | Control processor | A processor that runs the room's control program and has no buttons of its own. | Control Processor |
keypadController | Keypad controller (buttons + processor) | A keypad or button panel with a control processor built in. | Control Processor, Keypad |
touchController | Meeting touch controller | The touch screen that starts and runs video meetings, such as Logitech Tap. | Touch Panel |
roomControlPanel | Room-control touch panel | A touch screen that controls the room's AV system through a control processor. | Touch Panel |
touchPanelBoth | Meeting + room-control touch panel | A touch screen that runs video meetings and also controls the room's AV system through a control processor. | Touch Panel |
keypad | Keypad | A button panel that sends commands to a separate control processor. | Keypad |
scheduler | Room scheduler | A panel outside the room that shows and books its schedule. | Scheduling Panel |
occupancySensor | Occupancy sensor | A sensor that detects people in the room. | Occupancy Sensor |
networkSwitch | Network switch (no PoE) | An Ethernet switch with no PoE on any port. | Network Switch |
poeSwitch | PoE switch | An Ethernet switch that powers devices on some or all ports (PoE, PoE+ or PoE++). | Network Switch |
poeInjector | PoE injector | A single-port device that adds PoE power to one network cable. | Network Switch |
accessPoint | Wireless access point | A Wi-Fi access point. | Wireless Access Point |
rack | Rack | An equipment rack or rack frame. | Rack |
ups | UPS | An uninterruptible power supply (battery backup). | UPS |
powerDistribution | PDU / power conditioner | A power strip, PDU, power conditioner or sequencer. | Power Distribution |
wallPlate | Passive wall plate / floor box / table box | A wall plate, floor box or table box with connectors only and no electronics. | Wall Plate |
displayMount | Display mount | A mount, bracket, stand or cart that holds a display; not one for a video bar, camera, speaker or microphone. | Mount |
cable | Cable | A cable, active cables included. | Cable |
connector | Connector / adapter | A connector, coupler or adapter. | Connector |
other | Other | A product that no other role on its category's list describes. | Every category that has device roles |
A product with a device role, its other fields left out:
{
"id": 123,
"make": "Shure",
"model": "MXA920",
"deviceRole": "ceilingMic"
}
POST /api/v1/products and PUT /api/v1/products/{id} take deviceRole. Spaces before and after it are trimmed, and letter case matters: ceilingMic is a key, ceilingmic is not. On POST, leaving it out, or sending null or an empty string, creates the product with no device role. On PUT, a null or missing value leaves the device role unchanged, and an empty string clears it. A value that is not one of the keys returns 400 INVALID_DEVICE_ROLE, whose message names every key, and nothing is written:
{
"success": false,
"error": {
"code": "INVALID_DEVICE_ROLE",
"message": "'ceilingmic' is not a device role. The device roles are: display, flatPanelDisplay, interactiveDisplay, ledDisplay, projector, projectionScreen, videoBar, videoBarOnboard, videoBarUsb, videoBarBoth, camera, ptzCamera, fixedCamera, tableCamera, documentCamera, contentCamera, codec, vcCodec, roomPc, mediaPlayer, speaker, ceilingSpeaker, pendantSpeaker, surfaceSpeaker, columnSpeaker, networkedSpeaker, soundbarPassive, soundbarPowered, subwoofer, amplifier, powerAmplifier, networkedAmplifier, poeAmplifier, microphone, ceilingMic, tableMic, gooseneckMic, micPod, wirelessMicReceiver, wirelessMicTransmitter, wirelessMicSystem, dsp, fixedIoDsp, dspCore, audioInterface, switcher, presentationSwitcher, matrixSwitcher, byodHub, presentationSystem, hdbtTransmitter, hdbtReceiver, extenderSet, fiberExtender, usbExtender, avoipEncoder, avoipDecoder, avoipEncoderDecoder, wirelessPresentation, controlProcessor, keypadController, touchController, roomControlPanel, touchPanelBoth, keypad, scheduler, occupancySensor, networkSwitch, poeSwitch, poeInjector, accessPoint, rack, ups, powerDistribution, wallPlate, displayMount, cable, connector, other.",
"details": null
},
"timestamp": "2026-11-12T15:30:00Z"
}
A device role must also be one the product's device category takes. Each device category is linked to one of the role lists in the table above, named in its Device categories column, or to none; the link is roleGroup in the Device Tags API. A product with no category, or with a category that is not linked, takes any role. On POST, the role is checked against the request's cadCategoryId. On PUT, it is checked against the request's cadCategoryId, or against the product's own category when the request has none. Sending the role the product already has changes nothing and is not checked, and setting only cadCategoryId never changes the device role. A key the category does not take returns 400 DEVICE_ROLE_NOT_FOR_CATEGORY, whose message names the roles the category takes, each as its name with its key in brackets, and nothing is written:
{
"success": false,
"error": {
"code": "DEVICE_ROLE_NOT_FOR_CATEGORY",
"message": "Ceiling speaker is not a Projector role; Projector takes: Projector (projector), Other (other).",
"details": null
},
"timestamp": "2026-11-13T15:30:00Z"
}
Library Link Fields
AVstackr keeps a device library: one list of manufacturers and the devices they make, with each device's ports, shared by every company. A product in your catalog can be linked to one of the library's manufacturers, and also to one of that manufacturer's devices. Each product in the responses of GET /api/v1/products and GET /api/v1/products/{id} carries the three fields below. All three are null when the product is not linked.
| Field | Type | Description |
|---|---|---|
manufacturerId |
integer or null | The ID of the library manufacturer the product is linked to |
libraryDeviceId |
integer or null | The ID of the library device the product is linked to. It is a device in the library, not a device placed on a schematic. null when the product is linked to a manufacturer only. |
portsFromRevision |
integer or null | The library revision of the device that the product's ports were copied from. null when your company owns the product's ports: the product was never given the library's ports, or its ports were edited after they were copied. |
A product linked to a library device, with its other fields left out:
{
"id": 412,
"make": "Logitech",
"model": "Tap IP",
"manufacturerId": 1,
"libraryDeviceId": 12,
"portsFromRevision": 1
}
The three fields are read-only. Products are linked on the Products page (Link manufacturer) and the Import page (Link to).
PUT /api/v1/products/{id}refuses a body that names any of the three fields. It returns400 UNKNOWN_FIELDSand changes nothing.POST /api/v1/productsdoes not read the three fields. A new product is always created unlinked.
Stock Fields
Warehouse stock is the equipment and cable your company keeps on its own shelves and in its own vans, as opposed to equipment bought for one job. A product only takes part once you have said how its stock is kept. Each product in the responses of GET /api/v1/products and GET /api/v1/products/{id} carries the four fields below. All four are null on a product nobody has marked. The same four fields are accepted by POST /api/v1/products and PUT /api/v1/products/{id}. See Warehouse Stock for what they do in the app.
| Field | Type | Description |
|---|---|---|
stockTracking |
string or null | How stock of the product is kept: "Equipment" for items counted one by one, each with its own record, or "Bulk" for stock counted in a unit such as feet. null when the product is not marked. When you send it, "None" or "" clears it. Any other word is refused with 400 INVALID_STOCK_TRACKING |
upc |
string or null | The product's UPC (the barcode number printed on its box), up to 40 characters. A scan on the Inventory page that matches it finds this product. When you send it, "" clears it |
stockUnitName |
string or null | For a "Bulk" product, the unit its stock is counted in, such as "ft", up to 20 characters. Kept only on a Bulk product: it is cleared when the product is Equipment or not marked. When you send it, "" clears it |
stockUnitsPerListUnit |
decimal or null | For a "Bulk" product, how many stock units make one list unit, the unit the product is priced and bought in. A 1,000 ft spool priced per spool has stockUnitName "ft" and stockUnitsPerListUnit 1000. Must be greater than zero on a Bulk product. Kept only on a Bulk product |
Example Request
PUT /api/v1/products/123
Authorization: Bearer YOUR_JWT_TOKEN
Content-Type: application/json
{
"stockTracking": "Bulk",
"upc": "012345678905",
"stockUnitName": "ft",
"stockUnitsPerListUnit": 1000
}
Rules for Sending the Fields
- Leaving a field out keeps the stored value. On
PUTa field you do not send is not changed. OnlystockTrackingaccepts"None"to clear it, and clearing it also clearsstockUnitNameandstockUnitsPerListUnit. - A Bulk product needs a unit size. If the result would be Bulk with
stockUnitsPerListUnitmissing or not above zero, the request is refused with 400STOCK_SETTINGS_REFUSEDand the message "A bulk product needs a unit size greater than zero: how many stock units make one list unit (for example 1000 ft in a spool)." Nothing is saved. - While the product has stock, its kind and unit size are locked. Once any stock item or bulk lot of the product exists, changing
stockTrackingorstockUnitsPerListUnitis refused with 400STOCK_SETTINGS_REFUSEDand the message "This product has stock, so its stock tracking and unit size can't change. The UPC can still change." Sending the values the product already has is not a change.upcandstockUnitNamecan change at any time.
Error Responses
| Status | Code | Description |
|---|---|---|
| 400 | INVALID_STOCK_TRACKING |
stockTracking is not Equipment, Bulk or None |
| 400 | STOCK_SETTINGS_REFUSED |
A Bulk product without a unit size above zero, or a change of kind or unit size on a product that has stock. The message says which |
POST /api/v1/products
Creates a new product in your organization's catalog.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
make |
string | Yes | Manufacturer name (max 100 chars) |
model |
string | Yes | Model number (max 100 chars) |
description |
string | No | Short description (max 255 chars) |
longDescription |
string | No | Extended description (max 2000 chars) |
price |
decimal | No | MSRP price (0-9,999,999) |
vendor |
string | No | Distributor or vendor name |
part |
string | No | Part number / SKU |
productType |
string | No | Equipment type (e.g., Microphone, Display) |
category |
string | No | Product category (e.g., Audio, Video) |
roomType |
string | No | Suggested room type for this product |
imageUrl |
string | No | URL to product image |
tags |
string | No | Comma-separated tags for search |
specifications |
string | No | Technical specifications text |
cadCategoryId |
integer | No | The device category to classify the product with (see Device Category Fields above). Leave it out to create the product unclassified. |
deviceRole |
string | No | The device role key, the kind of device the product is (see Device Role Field above). Leave it out to create the product with no device role. |
stockTracking |
string | No | "Equipment" or "Bulk"; "None", an empty string or leaving it out creates the product unmarked (see Stock Fields above) |
upc |
string | No | UPC, the barcode number on the box (max 40 chars) |
stockUnitName |
string | No | The unit a Bulk product's stock is counted in, such as "ft" (max 20 chars); ignored unless stockTracking is "Bulk" |
stockUnitsPerListUnit |
decimal | Required when stockTracking is "Bulk" |
How many stock units make one list unit, above zero (for example 1000 for a 1,000 ft spool); ignored unless stockTracking is "Bulk" |
isActive |
boolean | No | Whether product is active (default: true) |
Response (201 - Created)
{
"success": true,
"productId": 124,
"message": "Product created successfully",
"timestamp": "2024-12-25T12:00:00Z"
}
PUT /api/v1/products/{id}
Updates an existing product. All fields from the POST request body are accepted. The four stock fields are merged onto the product's stored values, so a field you leave out is not changed; see Stock Fields above for what is refused while the product has stock.
DELETE /api/v1/products/{id}
Permanently removes a product from your catalog.
Response (200 - Success)
{
"success": true,
"productId": 123,
"message": "Product deleted successfully"
}
Error Responses
| Status | Code | Description |
|---|---|---|
| 404 | PRODUCT_NOT_FOUND |
Product with specified ID does not exist |
| 409 | PRODUCT_HAS_STOCK |
Inventory holds at least one bulk lot of the product, so nothing was deleted. A lot counts in any status, including written off. Stock items of an Equipment product never block the delete: they stay in inventory with the Make and Model they were stocked as |
{
"success": false,
"error": {
"code": "PRODUCT_HAS_STOCK",
"message": "This product can't be deleted because inventory holds stock lots of it.",
"details": null
},
"timestamp": "2024-12-25T12:00:00Z"
}
PUT /api/v1/products/{id}/metadata
Replace a product's connection metadata — input/output ports, device type, category, and power requirements. Used to configure products for schematic wiring.
Request Body
Send a full ConnectionMetadata JSON object. Port types are validated against the port type registry — use GET /api/v1/products/port-types to see valid options; an invalid one fails the whole request (see Error Responses below).
A port states its PoE with two fields, and it carries at most one of them:
poeSource— the tier this jack supplies to whatever plugs into it:"PoE","PoE+","PoE++", or"none"to state that it supplies nothing. Omit it, or sendnull, when the jack was never described.poeDraw— the tier this jack draws from the far end. This jack is the one being powered.
Neither field fails the request. Both are checked against the port type registry and saved as null when the connector cannot carry PoE — only rj45 and ethercon can. A port that arrives with both set keeps poeDraw and has its poeSource cleared: a jack being powered is what decides which way the watts run.
The device-level power is derived from the jacks on save. When any port draws, power becomes the strongest tier drawn, whatever you sent. When no port draws, the power you sent is kept as-is — and a PoE tier sent with no drawing jack behind it raises a notice on the wiring report, because nothing says which jack is fed. In the example below, the AVB/Ctrl jack is what backs the "power": "PoE+".
{
"category": "Processing",
"deviceType": "Digital Signal Processor",
"power": "PoE+",
"inputPorts": [
{ "portType": "rj45", "innerLabel": "AVB/Ctrl", "poeDraw": "PoE+" },
{ "portType": "dante_rj45", "innerLabel": "DANTE IN 1" },
{ "portType": "xlr_3pin_female", "innerLabel": "MIC 1" }
],
"outputPorts": [
{ "portType": "dante_rj45", "innerLabel": "DANTE OUT 1" },
{ "portType": "speakon_nl4", "innerLabel": "AMP OUT" }
]
}
A kit product sends its boxes in subDevices: one entry per box, with its own name, category, deviceType, ports and power. An entry may also carry partNumber, the box's own part number. It is optional. Spaces before and after it are trimmed, and a blank partNumber is stored as absent, so that box has no part number. The number is display text: a schematic draws it in the header of the box's block, and nothing is matched or ordered by it.
Response (200 — Success)
{
"success": true,
"data": {
"success": true,
"productId": 157,
"message": "Product metadata updated"
}
}
Error Responses
| Status | Code | Description |
|---|---|---|
| 400 | INVALID_PORT_TYPES | One or more port types are not valid |
| 404 | PRODUCT_NOT_FOUND | Product ID not found for your tenant |
POST /api/v1/products/{id}/metadata/apply-to-variants
Copies this product's saved connection metadata onto other members of its variant group. The copy replaces the metadata of each target. Each copy keeps the target's own make and model, and the target's own description when it has one. It also keeps the target's own kit part numbers: each entry of the copy's subDevices takes the partNumber of the target's entry with the same name, and none when the target has no entry of that name or more than one.
The product in the URL is the source. It must be in a variant group, and it must have connection metadata. The endpoint copies the metadata that is saved, so save the source first with PUT /api/v1/products/{id}/metadata. Devices already placed on drawings keep their own copy of the metadata.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id |
integer | Yes | The catalog product ID of the source product, whose metadata is copied |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
targetProductIds |
array of integer | No | The product IDs to copy onto. Each one must be another member of the source's variant group. An ID that is not one is skipped, not refused. When the list is empty or left out, nothing is copied and the response is still 200. |
includeBlockSkin |
boolean | No | Also copies the source's block skin, which is the custom device block pinned to the product. The default is true. When the source has no block skin, each target keeps its own. |
Example Request
{
"targetProductIds": [413, 77],
"includeBlockSkin": true
}
Response (200 - Success)
{
"success": true,
"data": {
"sourceProductId": 412,
"updatedProductIds": [413],
"skippedProductIds": [77],
"skinNotCopied": false
},
"message": "Metadata applied to 1 variants; 1 skipped",
"timestamp": "2026-10-08T15:30:00Z"
}
| Field | Type | Description |
|---|---|---|
sourceProductId |
integer | The product the metadata was copied from |
updatedProductIds |
array of integer | The targets that received the metadata |
skippedProductIds |
array of integer | The requested targets that were left untouched, because they are not another member of the source's variant group. The source's own ID is skipped too. |
skinNotCopied |
boolean | true when includeBlockSkin was true and the source has no block skin, so the targets kept their own. false when the skin was copied or was not requested. |
Error Responses
| Status | Code | Description |
|---|---|---|
| 400 | VARIANT_GROUP_RULE | The source product has no connection metadata. Nothing is copied. The body is described under Errors in the Variant Groups API. |
| 403 | READ_ONLY_ACCESS | The caller has read-only access |
| 404 | PRODUCT_NOT_FOUND | The source product does not exist, or it is in no variant group |
PUT /api/v1/products/{id}/category
Sets or clears one product's device category. This is the way to clear a category: PUT /api/v1/products/{id} reads a null cadCategoryId as "unchanged". Existing device tags of the product's units never change; units tagged afterwards use the new category.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id |
integer | Yes | The catalog product ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
cadCategoryId |
integer or null | No | The category to set. null, or leaving the field out, clears the category. Any other field name is refused with 400 UNKNOWN_FIELDS, so a misspelling cannot clear a category by accident. |
Example Request
{
"cadCategoryId": 7
}
Response (200 - Success)
{
"success": true,
"data": {
"productId": 123,
"cadCategoryId": 7,
"cadCategory": { "id": 7, "name": "Display", "abbreviation": "DISP" }
},
"message": "Category set to Display",
"timestamp": "2026-10-11T15:30:00Z"
}
When the category is cleared, cadCategoryId and cadCategory are null and the message is Category cleared.
Error Responses
| Status | Code | Description |
|---|---|---|
| 400 | UNKNOWN_FIELDS | The body names a field other than cadCategoryId |
| 403 | READ_ONLY_ACCESS | The caller has read-only access |
| 404 | NOT_FOUND | The product or the category does not exist. The message says which, for example Category 99 not found. |
POST /api/v1/products/set-category
Sets one device category on many products in one save, or clears it from all of them. IDs that are not your products are skipped.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
productIds |
array of integer | Yes | The products to set. Must not be empty. |
cadCategoryId |
integer or null | No | The category to set on every listed product. null, or leaving the field out, clears it. |
Example Request
{
"productIds": [123, 124, 130],
"cadCategoryId": 7
}
Response (200 - Success)
{
"success": true,
"data": {
"updatedCount": 3,
"cadCategoryId": 7,
"cadCategory": { "id": 7, "name": "Display", "abbreviation": "DISP" }
},
"message": "Category set on 3 products",
"timestamp": "2026-10-11T15:30:00Z"
}
updatedCount is how many of the listed IDs are your products. All of them now carry the category, including any that already had it.
Error Responses
| Status | Code | Description |
|---|---|---|
| 400 | INVALID_INPUT | productIds is missing or empty |
| 400 | UNKNOWN_FIELDS | The body names a field other than productIds and cadCategoryId |
| 403 | READ_ONLY_ACCESS | The caller has read-only access |
| 404 | NOT_FOUND | cadCategoryId is not one of your categories. Nothing is written. |
PUT /api/v1/products/{id}/cad-blocks
Replaces the product's own CAD block for each view. A view you leave out is cleared and uses the category's default block again, or a generic box when the category has none; an empty array clears every view. The block library and the views are in the CAD Blocks API.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id |
integer | Yes | The catalog product ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
assignments |
array of object | Yes | One item per view the product sets, each view at most once: view (plan, ceiling, elevation or schematic, any case), blockId, and an optional visibilityState, one of a dynamic block's states (null or empty for the block's default state). Any other field name, on the body or on an item, is refused with 400 UNKNOWN_FIELDS. |
Example Request
{
"assignments": [
{ "view": "plan", "blockId": 9, "visibilityState": "TOP" },
{ "view": "elevation", "blockId": 9, "visibilityState": "FRONT" }
]
}
Response (200 - Success)
{
"success": true,
"data": [
{ "view": "plan", "blockId": 9, "blockName": "AVS_DISP_WALL", "name": "Display wall", "visibilityState": "TOP" },
{ "view": "elevation", "blockId": 9, "blockName": "AVS_DISP_WALL", "name": "Display wall", "visibilityState": "FRONT" }
],
"message": "CAD blocks set for 2 view(s)",
"timestamp": "2026-10-12T15:30:00Z"
}
The product's blocks as saved, in view order. An empty array returns "data": [] with the message CAD blocks cleared. The product's cadBlocks field reports the same set, with the block's ID as id.
Error Responses
| Status | Code | Description |
|---|---|---|
| 400 | INVALID_INPUT | The body or assignments is missing, or an item is null, has no view or an unknown one, has no blockId, or repeats a view |
| 400 | UNKNOWN_FIELDS | The body or an item names a field not listed above |
| 400 | BLOCK_ARCHIVED | A new or changed item names an archived block. An item that repeats the product's saved block and state for its view passes, even when the block was archived since. |
| 400 | VIEW_MISMATCH | The block does not list the item's view |
| 400 | INVALID_VISIBILITY_STATE | The block has no visibility state of that name; the message lists the ones it has |
| 403 | READ_ONLY_ACCESS | The caller has read-only access |
| 404 | PRODUCT_NOT_FOUND | The product is not one of yours |
| 404 | BLOCK_NOT_FOUND | A blockId is not one of your blocks |
GET /api/v1/products/port-types
Returns all valid port types grouped by category (Video, Audio, Data, Fiber, Power, Control). Use these IDs in the portType field when setting connection metadata.
Response (200 — Success)
{
"success": true,
"data": {
"port_types": {
"Video": [
{ "id": "hdmi_a", "name": "HDMI Type A" },
{ "id": "displayport", "name": "DisplayPort" }
],
"Audio": [
{ "id": "xlr_3pin_male", "name": "XLR 3-Pin Male" },
{ "id": "speakon_nl4", "name": "Speakon NL4" }
],
"Data": [
{ "id": "rj45", "name": "RJ-45 (Ethernet)" },
{ "id": "usb_c", "name": "USB Type-C" }
]
}
}
}