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/schedule' \ -u 'admin:abc' \ -H 'Confirm: true' \ -X POST Cheers, Ganesh On Sun, Aug 13, 2017 at 11:38 AM, Oskar uit de Bos <oskar....@gmail.com> wrote: > 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 trying to > reach appears to be incorrect.". > > My API call looks like this: curl -u admin:abc --header > "Accept:application/vnd.go.cd.v5+json" -d "" http://localhost:8153/go/api/ > pipelines/MyFirst/schedule > > I am able to get the pipeline status from the API with the following call: > curl -u admin:abc --header "Accept:application/vnd.go.cd.v5+json" -d "" > -Xget http://localhost:8153/go/api/pipelines/MyFirst/status > The output is : {"pausedCause":"","pausedBy":"","paused":false," > schedulable":true,"locked":false} > > Anyone able to help me out with what is causing the issue? Thanks in > advance. > > Kind regards, > Oskar > > -- > You received this message because you are subscribed to the Google Groups > "go-cd" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to go-cd+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.