Skip to content

Add / Update Kit Product

Adds a product to the user’s kit. If the product is already assigned to the user it will be updated — this endpoint behaves as an upsert.

The {user} path parameter is the internal user id (use Find User by Email to look it up).

HeaderRequiredValue
api-keyyesImport API key
Content-Typeyesapplication/json
{
"product_id": 7,
"quantity": 2,
"mandatory": true
}
FieldTypeRequiredDescription
product_idintyesMust exist in the products table
quantityintyesMin: 1
mandatorybooleannoDefaults to false

HTTP 201 Created

{
"success": true,
"entry": {
"user_id": 42,
"product_id": 7,
"quantity": 2,
"mandatory": true
}
}
StatusDescription
401Missing api-key header
403Invalid api-key value
404User not found
422Validation error (missing or invalid field)