Upload/Update Pre-Created Lab Test
PUT/api/v1/lab-tests/:id
Upload/Update Pre-Created Lab Test.
Updating the Product list (items / styles / materials):
- If no Product needs to be updated: do NOT send the Product list.
- If at least 1 Product needs to be updated: send ALL Products for the test in the Product list, because the whole list is REPLACED (the existing Products are replaced with the ones provided).
samplesinside a Product follows the same rule: omit it to leave that Product's samples unchanged; if provided, send ALL samples for that Product because its whole sample list is REPLACED.
Send only the Product list matching the Lab Test Form's Product Type (items, styles, or materials).
Request​
Responses​
- 204
- 400
- 401
Upload/Update Pre-Created Lab Test
Bad Request
Unauthorized