DockerBuilder
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{organization_id}/docker_builders/{id}/recover |
create |
Builder is already sleeping |
POST |
/api/v1/organizations/{organization_id}/docker_builders/{id}/sleep |
create |
Builder state |
POST |
/api/v1/organizations/{organization_id}/docker_builders/{id}/wake |
create |
Builder state |
POST |
/api/v1/organizations/{organization_id}/docker_builders |
create |
Builder state |
GET |
/api/v1/organizations/{organization_id}/docker_builders |
list |
Builder state |
GET |
/api/v1/organizations/{organization_id}/docker_builders/{id} |
load |
Builder state |
PATCH |
/api/v1/organizations/{organization_id}/docker_builders/{id} |
patch |
Builder state |
PUT |
/api/v1/organizations/{organization_id}/docker_builders/{id} |
update |
Success |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
docker_builders, err := client.DockerBuilder(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(docker_builders)
docker_builder, err := client.DockerBuilder(nil).Load(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(docker_builder)
created, err := client.DockerBuilder(nil).Create(map[string]any{"organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
updated, err := client.DockerBuilder(nil).Update(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
patched, err := client.DockerBuilder(nil).Patch(map[string]any{"id": "example_id", "organization_id": "example", "slug": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(patched)
Lua
Construct client as shown in the Lua setup, then call the operations:
local docker_builders, err = client:DockerBuilder():list({ organization_id = "example" })
local docker_builder, err = client:DockerBuilder():load({ id = "example_id", organization_id = "example" })
local created, err = client:DockerBuilder():create({ organization_id = "example" })
local updated, err = client:DockerBuilder():update({ id = "example_id", organization_id = "example" })
local patched, err = client:DockerBuilder():patch({ id = "example_id", organization_id = "example", slug = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$docker_builders = $client->DockerBuilder()->list(["organization_id" => "example"]);
$docker_builder = $client->DockerBuilder()->load(["id" => "example_id", "organization_id" => "example"]);
$created = $client->DockerBuilder()->create(["organization_id" => "example"]);
$updated = $client->DockerBuilder()->update(["id" => "example_id", "organization_id" => "example"]);
$patched = $client->DockerBuilder()->patch(["id" => "example_id", "organization_id" => "example", "slug" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
docker_builders = client.DockerBuilder().list({"organization_id": "example"})
docker_builder = client.DockerBuilder().load({"id": "example_id", "organization_id": "example"})
created = client.DockerBuilder().create({ "organization_id": "example" })
updated = client.DockerBuilder().update({"id": "example_id", "organization_id": "example"})
patched = client.DockerBuilder().patch({"id": "example_id", "organization_id": "example", "slug": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
docker_builders = client.DockerBuilder.list({ "organization_id" => "example" })
docker_builder = client.DockerBuilder.load({ "id" => "example_id", "organization_id" => "example" })
created = client.DockerBuilder.create({ "organization_id" => "example" })
updated = client.DockerBuilder.update({ "id" => "example_id", "organization_id" => "example" })
patched = client.DockerBuilder.patch({ "id" => "example_id", "organization_id" => "example", "slug" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const docker_builders = await client.DockerBuilder().list({ organization_id: "example" })
const docker_builder = await client.DockerBuilder().load({ id: "example_id", organization_id: "example" })
const created = await client.DockerBuilder().create({ organization_id: "example" })
const updated = await client.DockerBuilder().update({ id: "example_id", organization_id: "example" })
const patched = await client.DockerBuilder().patch({ id: "example_id", organization_id: "example", slug: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
backend |
string |
Yes | Backend |
created_at |
one,string,null |
Yes | Created At |
gateway_url |
one,string,null |
No | Organization-addressed public WSS gateway; null until configured |
generation |
integer |
Yes | Generation |
id |
string |
Yes | Id |
last_activity_at |
one,string,null |
Yes | Last Activity At |
organization_id |
string |
Yes | Organization Id |
ready_at |
one,string,null |
Yes | Ready At |
slept_at |
one,string,null |
Yes | Slept At |
slug |
string |
Yes | Slug |
startup_attempt |
integer |
Yes | Startup Attempt |
startup_failure |
one,string,null |
Yes | Safe failure reason for the most recent startup attempt |
startup_stage |
one,string,null |
Yes | Startup Stage |
status |
string |
Yes | Status |
updated_at |
one,string,null |
Yes | Updated At |
create
POST /api/v1/organizations/{organization_id}/docker_builders/{id}/recover
Operation ID: recover_api_v1_organization_docker_builder.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Builder is already sleeping
application/json
| Property | Type | Required | Description |
|---|---|---|---|
docker_builder |
object |
Yes | |
docker_builder.backend |
enum: classic, gen2 |
Yes | |
docker_builder.created_at |
string (date-time) |
Yes | |
docker_builder.gateway_url |
string |
No | Organization-addressed public WSS gateway; null until configured |
docker_builder.generation |
integer |
Yes | |
docker_builder.id |
string |
Yes | |
docker_builder.last_activity_at |
string (date-time) |
Yes | |
docker_builder.organization_id |
string |
Yes | |
docker_builder.ready_at |
string (date-time) |
Yes | |
docker_builder.slept_at |
string (date-time) |
Yes | |
docker_builder.slug |
string |
Yes | |
docker_builder.startup_attempt |
integer |
Yes | |
docker_builder.startup_failure |
string |
Yes | Safe failure reason for the most recent startup attempt |
docker_builder.startup_stage |
string |
Yes | |
docker_builder.status |
enum: sleeping, starting, ready, stopping, failed |
Yes | |
docker_builder.updated_at |
string (date-time) |
Yes |
202: Recovery scheduled
application/json
| Property | Type | Required | Description |
|---|---|---|---|
docker_builder |
object |
Yes | |
docker_builder.backend |
enum: classic, gen2 |
Yes | |
docker_builder.created_at |
string (date-time) |
Yes | |
docker_builder.gateway_url |
string |
No | Organization-addressed public WSS gateway; null until configured |
docker_builder.generation |
integer |
Yes | |
docker_builder.id |
string |
Yes | |
docker_builder.last_activity_at |
string (date-time) |
Yes | |
docker_builder.organization_id |
string |
Yes | |
docker_builder.ready_at |
string (date-time) |
Yes | |
docker_builder.slept_at |
string (date-time) |
Yes | |
docker_builder.slug |
string |
Yes | |
docker_builder.startup_attempt |
integer |
Yes | |
docker_builder.startup_failure |
string |
Yes | Safe failure reason for the most recent startup attempt |
docker_builder.startup_stage |
string |
Yes | |
docker_builder.status |
enum: sleeping, starting, ready, stopping, failed |
Yes | |
docker_builder.updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
409: Builder is starting or its generation changed
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/docker_builders/{id}/sleep
Operation ID: sleep_api_v1_organization_docker_builder.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Builder state
application/json
| Property | Type | Required | Description |
|---|---|---|---|
docker_builder |
object |
Yes | |
docker_builder.backend |
enum: classic, gen2 |
Yes | |
docker_builder.created_at |
string (date-time) |
Yes | |
docker_builder.gateway_url |
string |
No | Organization-addressed public WSS gateway; null until configured |
docker_builder.generation |
integer |
Yes | |
docker_builder.id |
string |
Yes | |
docker_builder.last_activity_at |
string (date-time) |
Yes | |
docker_builder.organization_id |
string |
Yes | |
docker_builder.ready_at |
string (date-time) |
Yes | |
docker_builder.slept_at |
string (date-time) |
Yes | |
docker_builder.slug |
string |
Yes | |
docker_builder.startup_attempt |
integer |
Yes | |
docker_builder.startup_failure |
string |
Yes | Safe failure reason for the most recent startup attempt |
docker_builder.startup_stage |
string |
Yes | |
docker_builder.status |
enum: sleeping, starting, ready, stopping, failed |
Yes | |
docker_builder.updated_at |
string (date-time) |
Yes |
202: Builder state
application/json
| Property | Type | Required | Description |
|---|---|---|---|
docker_builder |
object |
Yes | |
docker_builder.backend |
enum: classic, gen2 |
Yes | |
docker_builder.created_at |
string (date-time) |
Yes | |
docker_builder.gateway_url |
string |
No | Organization-addressed public WSS gateway; null until configured |
docker_builder.generation |
integer |
Yes | |
docker_builder.id |
string |
Yes | |
docker_builder.last_activity_at |
string (date-time) |
Yes | |
docker_builder.organization_id |
string |
Yes | |
docker_builder.ready_at |
string (date-time) |
Yes | |
docker_builder.slept_at |
string (date-time) |
Yes | |
docker_builder.slug |
string |
Yes | |
docker_builder.startup_attempt |
integer |
Yes | |
docker_builder.startup_failure |
string |
Yes | Safe failure reason for the most recent startup attempt |
docker_builder.startup_stage |
string |
Yes | |
docker_builder.status |
enum: sleeping, starting, ready, stopping, failed |
Yes | |
docker_builder.updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
409: Builder state or active solves prevent this transition
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/docker_builders/{id}/wake
Operation ID: wake_api_v1_organization_docker_builder.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Builder state
application/json
| Property | Type | Required | Description |
|---|---|---|---|
docker_builder |
object |
Yes | |
docker_builder.backend |
enum: classic, gen2 |
Yes | |
docker_builder.created_at |
string (date-time) |
Yes | |
docker_builder.gateway_url |
string |
No | Organization-addressed public WSS gateway; null until configured |
docker_builder.generation |
integer |
Yes | |
docker_builder.id |
string |
Yes | |
docker_builder.last_activity_at |
string (date-time) |
Yes | |
docker_builder.organization_id |
string |
Yes | |
docker_builder.ready_at |
string (date-time) |
Yes | |
docker_builder.slept_at |
string (date-time) |
Yes | |
docker_builder.slug |
string |
Yes | |
docker_builder.startup_attempt |
integer |
Yes | |
docker_builder.startup_failure |
string |
Yes | Safe failure reason for the most recent startup attempt |
docker_builder.startup_stage |
string |
Yes | |
docker_builder.status |
enum: sleeping, starting, ready, stopping, failed |
Yes | |
docker_builder.updated_at |
string (date-time) |
Yes |
202: Builder state
application/json
| Property | Type | Required | Description |
|---|---|---|---|
docker_builder |
object |
Yes | |
docker_builder.backend |
enum: classic, gen2 |
Yes | |
docker_builder.created_at |
string (date-time) |
Yes | |
docker_builder.gateway_url |
string |
No | Organization-addressed public WSS gateway; null until configured |
docker_builder.generation |
integer |
Yes | |
docker_builder.id |
string |
Yes | |
docker_builder.last_activity_at |
string (date-time) |
Yes | |
docker_builder.organization_id |
string |
Yes | |
docker_builder.ready_at |
string (date-time) |
Yes | |
docker_builder.slept_at |
string (date-time) |
Yes | |
docker_builder.slug |
string |
Yes | |
docker_builder.startup_attempt |
integer |
Yes | |
docker_builder.startup_failure |
string |
Yes | Safe failure reason for the most recent startup attempt |
docker_builder.startup_stage |
string |
Yes | |
docker_builder.status |
enum: sleeping, starting, ready, stopping, failed |
Yes | |
docker_builder.updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
409: Builder state or active solves prevent this transition
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/docker_builders
Operation ID: post_api_v1_organizations_organization_id_docker_builders.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
backend |
enum: classic, gen2 |
No | |
slug |
string |
No |
Responses
200: Builder state
application/json
| Property | Type | Required | Description |
|---|---|---|---|
docker_builder |
object |
Yes | |
docker_builder.backend |
enum: classic, gen2 |
Yes | |
docker_builder.created_at |
string (date-time) |
Yes | |
docker_builder.gateway_url |
string |
No | Organization-addressed public WSS gateway; null until configured |
docker_builder.generation |
integer |
Yes | |
docker_builder.id |
string |
Yes | |
docker_builder.last_activity_at |
string (date-time) |
Yes | |
docker_builder.organization_id |
string |
Yes | |
docker_builder.ready_at |
string (date-time) |
Yes | |
docker_builder.slept_at |
string (date-time) |
Yes | |
docker_builder.slug |
string |
Yes | |
docker_builder.startup_attempt |
integer |
Yes | |
docker_builder.startup_failure |
string |
Yes | Safe failure reason for the most recent startup attempt |
docker_builder.startup_stage |
string |
Yes | |
docker_builder.status |
enum: sleeping, starting, ready, stopping, failed |
Yes | |
docker_builder.updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
list
GET /api/v1/organizations/{organization_id}/docker_builders
Operation ID: api_v1_organization_docker_builders.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
slug |
query |
string |
No | Exact builder slug, resolved within the authorized organization |
Responses
200: Builder state
application/json
| Property | Type | Required | Description |
|---|---|---|---|
docker_builders |
array of object |
Yes | |
docker_builders[].backend |
enum: classic, gen2 |
Yes | |
docker_builders[].created_at |
string (date-time) |
Yes | |
docker_builders[].gateway_url |
string |
No | Organization-addressed public WSS gateway; null until configured |
docker_builders[].generation |
integer |
Yes | |
docker_builders[].id |
string |
Yes | |
docker_builders[].last_activity_at |
string (date-time) |
Yes | |
docker_builders[].organization_id |
string |
Yes | |
docker_builders[].ready_at |
string (date-time) |
Yes | |
docker_builders[].slept_at |
string (date-time) |
Yes | |
docker_builders[].slug |
string |
Yes | |
docker_builders[].startup_attempt |
integer |
Yes | |
docker_builders[].startup_failure |
string |
Yes | Safe failure reason for the most recent startup attempt |
docker_builders[].startup_stage |
string |
Yes | |
docker_builders[].status |
enum: sleeping, starting, ready, stopping, failed |
Yes | |
docker_builders[].updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/organizations/{organization_id}/docker_builders/{id}
Operation ID: api_v1_organization_docker_builder.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Builder state
application/json
| Property | Type | Required | Description |
|---|---|---|---|
docker_builder |
object |
Yes | |
docker_builder.backend |
enum: classic, gen2 |
Yes | |
docker_builder.created_at |
string (date-time) |
Yes | |
docker_builder.gateway_url |
string |
No | Organization-addressed public WSS gateway; null until configured |
docker_builder.generation |
integer |
Yes | |
docker_builder.id |
string |
Yes | |
docker_builder.last_activity_at |
string (date-time) |
Yes | |
docker_builder.organization_id |
string |
Yes | |
docker_builder.ready_at |
string (date-time) |
Yes | |
docker_builder.slept_at |
string (date-time) |
Yes | |
docker_builder.slug |
string |
Yes | |
docker_builder.startup_attempt |
integer |
Yes | |
docker_builder.startup_failure |
string |
Yes | Safe failure reason for the most recent startup attempt |
docker_builder.startup_stage |
string |
Yes | |
docker_builder.status |
enum: sleeping, starting, ready, stopping, failed |
Yes | |
docker_builder.updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
patch
PATCH /api/v1/organizations/{organization_id}/docker_builders/{id}
Operation ID: patch_api_v1_organizations_organization_id_docker_builders_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
slug |
string |
Yes |
Responses
200: Builder state
application/json
| Property | Type | Required | Description |
|---|---|---|---|
docker_builder |
object |
Yes | |
docker_builder.backend |
enum: classic, gen2 |
Yes | |
docker_builder.created_at |
string (date-time) |
Yes | |
docker_builder.gateway_url |
string |
No | Organization-addressed public WSS gateway; null until configured |
docker_builder.generation |
integer |
Yes | |
docker_builder.id |
string |
Yes | |
docker_builder.last_activity_at |
string (date-time) |
Yes | |
docker_builder.organization_id |
string |
Yes | |
docker_builder.ready_at |
string (date-time) |
Yes | |
docker_builder.slept_at |
string (date-time) |
Yes | |
docker_builder.slug |
string |
Yes | |
docker_builder.startup_attempt |
integer |
Yes | |
docker_builder.startup_failure |
string |
Yes | Safe failure reason for the most recent startup attempt |
docker_builder.startup_stage |
string |
Yes | |
docker_builder.status |
enum: sleeping, starting, ready, stopping, failed |
Yes | |
docker_builder.updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
update
PUT /api/v1/organizations/{organization_id}/docker_builders/{id}
Operation ID: put_api_v1_organizations_organization_id_docker_builders_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.