Skip to main content

Build Image

POST 

https://cloud.agenta.ai/api/containers/build_image

Builds a Docker image from a tar file containing the application code.

Args: app_id (str): The ID of the application to build the image for. base_name (str): The base name of the image to build. tar_file (UploadFile): The tar file containing the application code. stoken_session (SessionContainer): The session container for the user making the request.

Returns: Image: The Docker image that was built.

Request

Query Parameters

    app_id App Idrequired
    base_name Base Namerequired

Body

required

    tar_file binaryrequired

Responses

Successful Response

Schema

    type Type (string)
    docker_id Docker Id (string)required
    tags Tags (string)required
    organization_id Organization Id (string)
    workspace_id Workspace Id (string)
curl -L -X POST 'https://cloud.agenta.ai/api/containers/build_image' \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
Request Collapse all
Base URL
https://cloud.agenta.ai/api
Auth
Parameters
— queryrequired
— queryrequired
Body required
required
tar_file
ResponseClear

Click the Send API Request button above and see the response here!