I am trying to update the LABORATORY INFORMATION configuration using the senaite.jsonapi. The response status is 400, and the response text is {"_runtime": 0.011113166809082031, “message”: “No Objects could be updated”, “success”: false}. I am having success creating other config items, such as LAB CONTACTS, LAB DEPARTMENTS, etc., but I can’t seem to update the LABORATORY INFORMATION values. Any ideas why?
After searching the online documentation, I believe that the LABORATORY INFORMATION cannot be updated using the api, because the container for Laboratory is ‘/senaite/bika_setup’.
According to the documentation…
SENAITE.JSONAPI does not allow the update of objects when:
the container is the portal root (senaite path)
the container is senaite’s setup (senaite/bika_setup path)
Thank you for the response. I have been able to create departments without issues, using the API. I have also been able to create other configuration items with the API. I only have issues with the LABORATORY INFORMATION, and I believe that it is because it lies in a path that is restricted…
SENAITE.JSONAPI does not allow the update of objects when:
the container is the portal root (senaite path)
the container is senaite’s setup (senaite/bika_setup path)
I am sorry for misunderstanding the question.
Yes, the bika_setup cannot be updated via API, the way I do it is usually via updating the files manually as you’ve suggested.