Unable to trigger GoCD pipeline via API #12526
mbhatia-mdsol
started this conversation in
General
Replies: 2 comments 6 replies
-
Hi @mbhatia-mdsol - other than double checking the capitalization of your pipeline name, do you have all of the headers suggested within the example at https://api.gocd.org/current/#scheduling-pipelines ? e.g curl -fsSL -X POST \
-H "Authorization: bearer $GOCD_TOKEN" \
-H 'Accept: application/vnd.go.cd+json' \
-H "Content-Type: application/json" \
https://gocd-stg.imedidata.net/go/api/pipelines/ctms_AWS_deployment_automation/schedule \
-d '{}' You'll get a 404 if you don't have the right |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks @chadlwilson , it worked ! |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am not able to trigger a pipeline using schedule option. I have checked the GoCD API document. It suggests using POST /go/api/pipelines/:pipeline_name/schedule. But on using this i am getting error: "404 Client Error: Not Found for url: https://gocd-stg.imedidata.net/go/api/pipelines/ctms_AWS_deployment_automation/schedule". The endpoint and credentials that I am using are working fine for other tasks like update and fetch pipeline details. Please help as I have tried so many things that are suggested on internet.
Beta Was this translation helpful? Give feedback.
All reactions