Hi im having a bit of trouble trying to cancel a deployment through the API.
I can successfully perform a deployment through the API.
According to documentation i should simply perform:
POST /api/tasks/{id}/cancel
however this throws me a 404.
I pull in the tasks id from
GET /api/projects/{projectsId}/releases/{releasesId}/deployments/{deploymentsId}
Then drill down into Tasks.Id.
Reading the documentation it says that access to cancel is restricted to users in teams with taskCancel permissions.
So i tried to hit:
GET /api/teams/all
But this brings the blue ringed octopus of death page saying a controller or path was not found for /api/teams/all
Im using an API key from an admin user.
Any and all help would be greatly appreciated thanks.
Edit:
Ive just realised ive posted this in the wrong place and should be in the Questions, forum. Sorry.
This is my version info:
{
“Application”: “Octopus”,
“Version”: “1.6.3.1723”,
“ApiVersion”: “2.0.0”,
“OperatingSystem”: “Microsoft Windows NT 6.2.9200.0”,
“Links”: {
“Self”: “/api”,
“Environments”: “/api/environments”,
“Machines”: “/api/machines”,
“Projects”: “/api/projects”,
“Feeds”: “/api/feeds”,
“Tasks”: “/api/tasks”
}
}