Skip to content

Docs feedback: Header Token Name is wrong for Release API

On this page release-api example request should be;

curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases"

Instead of using "PRIVATE-TOKEN" as header, so original documentation does not work for "CI_JOB_TOKEN", but above example does.

P.s. We don't want to create & maintain project tokens for each gitlab repos in order to use release API, hence here's the solution. (personal git: serkanyazici)

Edited by Serkan Yazici