I want to update a deployment task state using the REST API. I have the task ID. I have tried the following: data=‘{“State”:[“1”]}’
and data=‘{“State”:“1”}’
and data=‘{“State”:“Failed”}’
using curl -X POST -d “$data” “xxxxxxxxxxx.com” -H “accept: application/json” -H “X-Octopus-ApiKey: API-xxxxxxxxxxxxxxxxxxxxxx”
I get the following error:
{
“ErrorMessage”: “There was a problem with your request.”,
“Errors”: [
“No state was provided.”
],
“ParsedHelpLinks”:
}