Builds
Start a new build
Queue a new build for the application.
The 202 response means the build request was accepted, not that a build has started. For this reason GET /builds/{build_id} can respond 404 for a short while after this endpoint has returned the build id.
workflow_id names the workflow to build. A 24-character hexadecimal id selects a workflow defined in the Workflow Editor; any other value is the id of a workflow in the repository's codemagic.yaml, as in workflows.<workflow_id>.
Exactly one of branch or tag is required - it is what the build is started from. Giving neither, or both, responds 400.
post/api/v3/apps/{app_id}/builds
Request
- Base URLhttps://codemagic.io
- AuthAPI key in header x-auth-token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
app_idstring required
Example:60a0b1c2d3e4f56789abcdef
Request body
Response
Request accepted, processing continues off-line
Example response
{
"data": {
"id": "60a0b1c2d3e4f56789abcdef"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.