Create a stage for a job
POST/v1/jobs/:job_id/stages
Adds a stage to a job's pipeline.
Request
Responses
- 201
- 401
- 403
- 404
- 422
Stage created
Missing or invalid bearer token.
The public API is not enabled for this account (err_feature_not_enabled), the acting user is not allowed to edit this job, or the API key lacks the jobs:write.stages scope (err_insufficient_scope).
Job not found (err_not_found).
Validation failed. Error codes:
err_invalid_milestone- unknown milestoneerr_invalid_position-positionis past the end of the pipeline, or outside the allowed range for a required milestoneerr_invalid_stage_transition-positionwould place the stage among the stages of a different milestone