Skip to main content

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).
  • samples inside 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​

Upload/Update Pre-Created Lab Test