Skip to main content
Artifacts endpoint

Create Artifact Build

POST/artifact-builds/

Request body

application/json

See the request guidance below for a valid body.

Handler-checked behavior​

Upload the build context first and use its returned digest as contextDigest; artifactVersionId must identify a saved artifact version. Required fields are id, artifactVersionId, contextDigest, recipeDigest, and cacheKey. An existing cache key returns that build with 200 OK; a new specification returns 201 Created. Creating a specification does not start a build run. See Build an executable for the simpler Docker-image path.

See the Artifacts guide for related tasks and context.