Add Material to Kit
Adds a material variation to a kit. The server creates a new
MaterialDetails record and returns it; the materialDetailsId in the
response will differ from the input materialVariationId. Use the
returned materialDetailsId for subsequent GET and DELETE operations.
Returns 201 Created.
Requires scope: kits:write
Authentication
API_KEYstring
API Key authentication via header
Path parameters
id
Kit ID.
Request
This endpoint expects an object.
materialVariationId
ID of the material variation to add. Required.
quantity
Quantity of this material required per kit unit. Required.
cost
Cost per unit for this material within the kit.
Response
This endpoint returns an object.
materialDetailsId
ID of the MaterialDetails record created when the variation was added to a kit. This is not the same as the MaterialVariation ID.
quantity
Quantity of this material required per kit unit.
material
Reference to the parent material.
variation
Reference to the material variation, if applicable.
cost
Cost per unit for this material within the kit.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error