Checking for failed deployment via the api

I’m using the client api and the rest api. I can find all my deployments etc but how do I find out if any deployment to an environment has failed? ta

Hi,

Thanks for reaching out. Doing a GET against this URL should give you all the failed deployments for an environment

/api/deployments?environments=Environments-1&taskState=failed

Make sure to adjust the Environment ID

Thanks

Dalmiro