Api ReferenceEndpointTrigger a pipeline
Trigger a pipeline
Triggers a new CI/CD pipeline run.
POST
/repos/{owner}/{repo}/pipelinesTriggers a new CI/CD pipeline run.
Path Parameters
ownerstringpathrequired
repostringpathrequired
Request Body
refstringrequired
Branch or tag to run against
variablesobject
Pipeline variables
Responses
201Pipeline triggered
idstringrequired
statusstringrequiredpending | running | success | failure | cancelled
refstring
Branch or tag ref
shastring
Commit SHA
duration_secondsinteger
created_atstring<date-time>
finished_atstring<date-time>
curl -X POST "https://drok.us/api/v1/repos/:owner/:repo/pipelines" \
-H "Authorization: Bearer $DROK_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ref": "main"
}'