Project not found error message while Triggering Job API

I’ve been using the
curl -u ${CIRCLE_API_USER_TOKEN} \ -d build_parameters[CIRCLE_JOB]=deploy_docker \ https://circleci.com/api/v1.1/project/<vcs-type>/<org>/<repo>/tree/<branch>
command from the my terminal. And getting the error message
{
“message” : “Project not found”
}

I’m following the article https://circleci.com/docs/2.0/api-job-trigger/ I created my Circleci API token and I’ve provided the the vcs, org, repo and branch into the API. Also our config.yml is on 2.0.

Unsure how else to approach this issue. Maybe someone can clarify? Let me know if you need more information.

Thanks

Hello, did you fix it? I’m having the same issue when trying to subscribe to a project using the API. :confused:

Hey Roel I was able to fix this issue

curl -u CIRCLE_API_USER_TOKEN:
-d build_parameters[CIRCLE_JOB]=deploy_docker
https://circleci.com/api/v1.1/project/vcs-type/org/repo/tree/branch

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.