Receive Sample and add to Worksheet using JSON API

So far I have been able grab a list of all sample points in a client, and create 1 new AR for each, then create a new batch and add all of these to the new batch.

Is it possible to mark these samples as received (from their UID), and add to a new Worksheet using the JSON API?

Regarding the received transition, you can make use of the do_action_for function from JSON API: https://github.com/senaite/senaite.core/blob/master/bika/lims/jsonapi/doactionfor.py#L45

Not sure about how you can add analyses to a worksheet (worksheet.addAnalysis function) using the JSON API Update call (https://github.com/senaite/senaite.core/blob/master/bika/lims/jsonapi/update.py#L44)… I think it is not implemented and mimic all the addAnalysis process will be tedious and tricky.

Have you considered extending the JSON functionality through a custom addon?