Skip to main content
POST
/
v5
/
builds
Submit Build
curl --request POST \
  --url https://api.egp.scale.com/v5/builds \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form context_archive='@example-file' \
  --form 'image_name=<string>' \
  --form image_tag=latest \
  --form 'build_args=<string>'
{
  "build_id": "<string>",
  "image_name": "<string>",
  "image_tag": "<string>",
  "image_url": "<string>",
  "account_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "created_by": {
    "id": "<string>",
    "type": "user",
    "object": "identity"
  },
  "status": "<string>",
  "object": "agentex_cloud_build",
  "build_start_time": "2023-11-07T05:31:56Z",
  "build_end_time": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Body

multipart/form-data
context_archive
file
required

tar.gz archive containing the build context (Dockerfile and any files needed for the build)

image_name
string
required

Name for the built image

image_tag
string
default:latest

Tag for the built image

build_args
string

JSON string of build arguments

Response

Successful Response

build_id
string
required
image_name
string
required
image_tag
string
required
image_url
string
required
account_id
string
required
created_at
string<date-time>
required
created_by
Identity · object
required

The identity that created the entity.

status
string
required

The current build status from the cloud provider

object
string
default:agentex_cloud_build
Allowed value: "agentex_cloud_build"
build_start_time
string<date-time>

When the cloud provider started the build

build_end_time
string<date-time>

When the cloud provider finished the build