Is there an API which updates status of the monitor? I want to update the status based off of my Selenium Java tests, if the tests pass it sets the status to '1 (UP)' and if few tests fail then set status to 'Critical'.
It is not possible to update status of a monitor using an API. Only our monitoring service updates the status.
Can you explain your use case in detail such as how frequently you will be running those tests?
You can also check our custom Plugin Integration where you can define the required data to be monitored by yourself.