Skip to content

Using API to build service with codefresh.yml

Nikolai edited this page Jul 14, 2016 · 1 revision

Using API for build service with codefresh.yml

Post request: https://g.codefresh.io/api/workflow/{repoOwner}/{repoName}/file

Header: X-Access-Token, Content-Type:application/json

Body:

{
   "branch":"name of the branch",
   "revision":"revision of commit",
   "variables":{
       "KEY":"VALUE"
   }
}