Hi everyone,
With the help of Ganesh I was able to pinpoint my API call problem to
either the curl client that I downloaded for Windows or the fact that the
API doesn't like to be called from localhost. Well, it turns out that the
curl client was to blame. I created a simple Powershell script t
Hi Ganesh,
The following calls all return 401 unauthorized:
curl http://localhost:8153/go/api/admin/pipelines/MyFirst -u 'admin:abc' -H
'Confirm:true' -X GET
curl http://localhost:8153/go/api/pipelines/MyFirst/status -u 'admin:abc'
-H 'Confirm:true' -X GET
However, when I tried the same command
Hello Oskar,
I tried accessing the API, I could curl it fine.
About the scenarios that you mentioned,
> If I remove the quotes around the username:password in the curl command I
get a 404 not found instead.
The quotes around username:password should not matter.
> Tried to look for a configuratio
Hi Ganesh,
Thanks for the quick reply! I changed my API call to: curl
http://localhost:8153/go/api/pipelines/MyFirst/schedule -u 'admin:abc' -H
'Confirm:true' -X POST
However, now I get a 401 unauthorized response.
What I tried myself:
- If I remove the quotes around the username:password in t
Hey Oskar
*,*
You need to specify request command to be POST and a 'Confirm: true'
header.
Also, there is no need of 'Accept:application/vnd.go.cd.v5+json' api header
and '-d "" ' option.
As per the documentation, the API request should be:
curl 'http://localhost:8153/go/api/pipelines/MyFirst/sc
Hi everyone,
I am new to the go.cd platform and I am experimenting with the API. I am
trying to trigger a pipeline, and after looking at the documentation
(https://api.gocd.org/17.8.0/#scheduling-pipelines) it looked fairly easy
to do that. However, all I am getting back is "The URL you are try