API

AppService

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/hosting/apps/{app_id}/services/{id}/archive create Updated app service
POST /api/v1/hosting/apps/{app_id}/services/{id}/pause create Updated app service
POST /api/v1/hosting/apps/{app_id}/services/{id}/resume create Updated app service
POST /api/v1/hosting/apps/{app_id}/services create App service created
GET /api/v1/hosting/apps/{app_id}/services/{id} load Success
GET /api/v1/hosting/apps/{app_id}/services load Success
PATCH /api/v1/hosting/apps/{app_id}/services/{id} patch Updated app service
DELETE /api/v1/hosting/apps/{app_id}/services/{id} remove Success
PUT /api/v1/hosting/apps/{app_id}/services/{id} update Updated app service

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:

app_service, err := client.AppService(nil).Load(map[string]any{"app_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(app_service)
created, err := client.AppService(nil).Create(map[string]any{"app_id": "example", "auto_deploy": true, "desired_instances": 1, "kind": "example", "name": "example", "publicly_accessible": true, "runtime": "example", "runtime_adapter_kind": "example", "slug": "example", "source_path": "example", "start_command": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.AppService(nil).Update(map[string]any{"id": "example_id", "app_id": "example", "auto_deploy": true}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
patched, err := client.AppService(nil).Patch(map[string]any{"id": "example_id", "app_id": "example", "auto_deploy": true}, nil)
if err != nil {
    panic(err)
}
fmt.Println(patched)
removed, err := client.AppService(nil).Remove(map[string]any{"app_id": "example", "id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

Construct client as shown in the Lua setup, then call the operations:

local app_service, err = client:AppService():load({ app_id = "example" })
local created, err = client:AppService():create({ app_id = "example", auto_deploy = true, desired_instances = 1, kind = "example", name = "example", publicly_accessible = true, runtime = "example", runtime_adapter_kind = "example", slug = "example", source_path = "example", start_command = "example" })
local updated, err = client:AppService():update({ id = "example_id", app_id = "example", auto_deploy = true })
local patched, err = client:AppService():patch({ id = "example_id", app_id = "example", auto_deploy = true })
local removed, err = client:AppService():remove({ app_id = "example", id = "example_id" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$app_service = $client->AppService()->load(["app_id" => "example"]);
$created = $client->AppService()->create(["app_id" => "example", "auto_deploy" => true, "desired_instances" => 1, "kind" => "example", "name" => "example", "publicly_accessible" => true, "runtime" => "example", "runtime_adapter_kind" => "example", "slug" => "example", "source_path" => "example", "start_command" => "example"]);
$updated = $client->AppService()->update(["id" => "example_id", "app_id" => "example", "auto_deploy" => true]);
$patched = $client->AppService()->patch(["id" => "example_id", "app_id" => "example", "auto_deploy" => true]);
$client->AppService()->remove(["app_id" => "example", "id" => "example_id"]);

Python

Construct client as shown in the Python setup, then call the operations:

app_service = client.AppService().load({"app_id": "example"})
created = client.AppService().create({ "app_id": "example", "auto_deploy": True, "desired_instances": 1, "kind": "example", "name": "example", "publicly_accessible": True, "runtime": "example", "runtime_adapter_kind": "example", "slug": "example", "source_path": "example", "start_command": "example" })
updated = client.AppService().update({"id": "example_id", "app_id": "example", "auto_deploy": True})
patched = client.AppService().patch({"id": "example_id", "app_id": "example", "auto_deploy": True})
client.AppService().remove({"app_id": "example", "id": "example_id"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

app_service = client.AppService.load({ "app_id" => "example" })
created = client.AppService.create({ "app_id" => "example", "auto_deploy" => true, "desired_instances" => 1, "kind" => "example", "name" => "example", "publicly_accessible" => true, "runtime" => "example", "runtime_adapter_kind" => "example", "slug" => "example", "source_path" => "example", "start_command" => "example" })
updated = client.AppService.update({ "id" => "example_id", "app_id" => "example", "auto_deploy" => true })
patched = client.AppService.patch({ "id" => "example_id", "app_id" => "example", "auto_deploy" => true })
client.AppService.remove({ "app_id" => "example", "id" => "example_id" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const app_service = await client.AppService().load({ app_id: "example" })
const created = await client.AppService().create({ app_id: "example", auto_deploy: true, desired_instances: 1, kind: "example", name: "example", publicly_accessible: true, runtime: "example", runtime_adapter_kind: "example", slug: "example", source_path: "example", start_command: "example" })
const updated = await client.AppService().update({ id: "example_id", app_id: "example", auto_deploy: true })
const patched = await client.AppService().patch({ id: "example_id", app_id: "example", auto_deploy: true })
await client.AppService().remove({ app_id: "example", id: "example_id" })

Fields

Field Type Required Description
auto_deploy boolean Yes Auto Deploy
bindings array Yes Bindings
build_command one,string,null Yes Build Command
cpu_label one,string,null Yes Cpu Label
cpu_mhz one,integer,null Yes Cpu Mhz
created_at string Yes Created At
created_at_label one,string,null Yes Created At Label
deploy_paths array Yes Explicit repo-root-relative path prefixes/globs a push must touch to auto-deploy.
desired_instances integer Yes Desired Instances
disk_label one,string,null Yes Disk Label
disk_mb one,integer,null Yes Disk Mb
effective_deploy_paths array Yes Tracked paths actually applied by the auto-deploy trigger (explicit deploy_paths, else [root_path]).
healthcheck_path one,string,null Yes Healthcheck Path
hosted_app_id string Yes Hosted App Id
id string Yes Id
internal_port one,integer,null Yes Internal Port
kind string Yes Kind
memory_label one,string,null Yes Memory Label
memory_max_label one,string,null Yes Memory Max Label
memory_max_mb one,integer,null Yes Hard memory limit in MB the task may burst to (Nomad MemoryMaxMB).
memory_mb one,integer,null Yes Memory Mb
name string Yes Name
nomad_constraints_json one,string,null Yes Nomad Constraints Json
nomad_kill_timeout_seconds one,integer,null Yes Seconds the task gets after SIGTERM before SIGKILL.
nomad_namespace one,string,null Yes Nomad Namespace
nomad_region one,string,null Yes Nomad Region
nomad_shutdown_delay_seconds one,integer,null Yes Seconds Nomad waits between deregistering the group's services and sending SIGTERM, so the edge stops routing new requests to the allocation before it is signalled.
nomad_ulimits_json one,string,null Yes Docker task ulimits as a JSON object of rlimit name to "soft:hard" (for example
nomad_update_strategy_json one,string,null Yes Nomad Update Strategy Json
prestart_command one,string,null Yes Prestart Command
publicly_accessible boolean Yes Publicly Accessible
release_command one,string,null Yes Release Command
repo_source_path string Yes Repo Source Path
runtime string Yes Runtime
runtime_adapter_kind string Yes Runtime Adapter Kind
runtime_adapter_settings_json one,string,null Yes Runtime Adapter Settings Json
schedule one,string,null Yes Schedule
slug string Yes Slug
source_path string Yes Source Path
start_command one,string,null Yes Start Command
updated_at string Yes Updated At
updated_at_label one,string,null Yes Updated At Label

create

POST /api/v1/hosting/apps/{app_id}/services/{id}/archive

Operation ID: archive_api_v1_app_service.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Updated app service

application/json

Property Type Required Description
service object Yes
service.auto_deploy boolean Yes
service.bindings array of object Yes
service.bindings[].app_service_id string Yes
service.bindings[].bindable_id string Yes
service.bindings[].bindable_type string Yes
service.bindings[].binding_type string Yes
service.bindings[].created_at string (date-time) Yes
service.bindings[].hosted_app_id string Yes
service.bindings[].id string Yes
service.bindings[].mount_path string Yes
service.bindings[].name string Yes
service.bindings[].read_only boolean Yes
service.bindings[].required boolean Yes
service.bindings[].updated_at string (date-time) Yes
service.build_command string Yes
service.cpu_label string Yes
service.cpu_mhz integer Yes
service.created_at string (date-time) Yes
service.created_at_label string Yes
service.deploy_paths array of string Yes Explicit repo-root-relative path prefixes/globs a push must touch to auto-deploy. Empty means default to the app root_path.
service.desired_instances integer Yes
service.disk_label string Yes
service.disk_mb integer Yes
service.effective_deploy_paths array of string Yes Tracked paths actually applied by the auto-deploy trigger (explicit deploy_paths, else [root_path]).
service.healthcheck_path string Yes
service.hosted_app_id string Yes
service.id string Yes
service.internal_port integer Yes
service.kind enum: web, worker, cron, static, private Yes
service.memory_label string Yes
service.memory_max_label string Yes
service.memory_max_mb integer Yes Hard memory limit in MB the task may burst to (Nomad MemoryMaxMB). memory_mb stays the reservation the scheduler places against, so raising this does not make a rollout harder to place. Must be >= memory_mb. Memory above the reservation is oversubscribed and best effort: under node pressure the kernel reclaims it and can OOM-kill the task. Null/absent renders no limit beyond the reservation.
service.memory_mb integer Yes
service.name string Yes
service.nomad_constraints_json string Yes
service.nomad_kill_timeout_seconds integer Yes Seconds the task gets after SIGTERM before SIGKILL. Null/absent leaves Nomad's 5s default. Capped at 30 because a Nomad client silently clamps kill_timeout to its own max_kill_timeout (default 30s).
service.nomad_namespace string Yes
service.nomad_region string Yes
service.nomad_shutdown_delay_seconds integer Yes Seconds Nomad waits between deregistering the group's services and sending SIGTERM, so the edge stops routing new requests to the allocation before it is signalled. Null/absent leaves Nomad's 0s default.
service.nomad_ulimits_json string Yes Docker task ulimits as a JSON object of rlimit name to "soft:hard" (for example {"nofile":"65536:65536"}). Null/absent leaves the container on the daemon default.
service.nomad_update_strategy_json string Yes
service.prestart_command string Yes
service.publicly_accessible boolean Yes
service.release_command string Yes
service.repo_source_path string Yes
service.runtime enum: docker, node, ruby, python, go, rust, ... Yes
service.runtime_adapter_kind enum: nomad, database Yes
service.runtime_adapter_settings_json string Yes
service.schedule string Yes
service.slug string Yes
service.source_path string Yes
service.start_command string Yes
service.updated_at string (date-time) Yes
service.updated_at_label string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/hosting/apps/{app_id}/services/{id}/pause

Operation ID: pause_api_v1_app_service.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Updated app service

application/json

Property Type Required Description
service object Yes
service.auto_deploy boolean Yes
service.bindings array of object Yes
service.bindings[].app_service_id string Yes
service.bindings[].bindable_id string Yes
service.bindings[].bindable_type string Yes
service.bindings[].binding_type string Yes
service.bindings[].created_at string (date-time) Yes
service.bindings[].hosted_app_id string Yes
service.bindings[].id string Yes
service.bindings[].mount_path string Yes
service.bindings[].name string Yes
service.bindings[].read_only boolean Yes
service.bindings[].required boolean Yes
service.bindings[].updated_at string (date-time) Yes
service.build_command string Yes
service.cpu_label string Yes
service.cpu_mhz integer Yes
service.created_at string (date-time) Yes
service.created_at_label string Yes
service.deploy_paths array of string Yes Explicit repo-root-relative path prefixes/globs a push must touch to auto-deploy. Empty means default to the app root_path.
service.desired_instances integer Yes
service.disk_label string Yes
service.disk_mb integer Yes
service.effective_deploy_paths array of string Yes Tracked paths actually applied by the auto-deploy trigger (explicit deploy_paths, else [root_path]).
service.healthcheck_path string Yes
service.hosted_app_id string Yes
service.id string Yes
service.internal_port integer Yes
service.kind enum: web, worker, cron, static, private Yes
service.memory_label string Yes
service.memory_max_label string Yes
service.memory_max_mb integer Yes Hard memory limit in MB the task may burst to (Nomad MemoryMaxMB). memory_mb stays the reservation the scheduler places against, so raising this does not make a rollout harder to place. Must be >= memory_mb. Memory above the reservation is oversubscribed and best effort: under node pressure the kernel reclaims it and can OOM-kill the task. Null/absent renders no limit beyond the reservation.
service.memory_mb integer Yes
service.name string Yes
service.nomad_constraints_json string Yes
service.nomad_kill_timeout_seconds integer Yes Seconds the task gets after SIGTERM before SIGKILL. Null/absent leaves Nomad's 5s default. Capped at 30 because a Nomad client silently clamps kill_timeout to its own max_kill_timeout (default 30s).
service.nomad_namespace string Yes
service.nomad_region string Yes
service.nomad_shutdown_delay_seconds integer Yes Seconds Nomad waits between deregistering the group's services and sending SIGTERM, so the edge stops routing new requests to the allocation before it is signalled. Null/absent leaves Nomad's 0s default.
service.nomad_ulimits_json string Yes Docker task ulimits as a JSON object of rlimit name to "soft:hard" (for example {"nofile":"65536:65536"}). Null/absent leaves the container on the daemon default.
service.nomad_update_strategy_json string Yes
service.prestart_command string Yes
service.publicly_accessible boolean Yes
service.release_command string Yes
service.repo_source_path string Yes
service.runtime enum: docker, node, ruby, python, go, rust, ... Yes
service.runtime_adapter_kind enum: nomad, database Yes
service.runtime_adapter_settings_json string Yes
service.schedule string Yes
service.slug string Yes
service.source_path string Yes
service.start_command string Yes
service.updated_at string (date-time) Yes
service.updated_at_label string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/hosting/apps/{app_id}/services/{id}/resume

Operation ID: resume_api_v1_app_service.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Updated app service

application/json

Property Type Required Description
service object Yes
service.auto_deploy boolean Yes
service.bindings array of object Yes
service.bindings[].app_service_id string Yes
service.bindings[].bindable_id string Yes
service.bindings[].bindable_type string Yes
service.bindings[].binding_type string Yes
service.bindings[].created_at string (date-time) Yes
service.bindings[].hosted_app_id string Yes
service.bindings[].id string Yes
service.bindings[].mount_path string Yes
service.bindings[].name string Yes
service.bindings[].read_only boolean Yes
service.bindings[].required boolean Yes
service.bindings[].updated_at string (date-time) Yes
service.build_command string Yes
service.cpu_label string Yes
service.cpu_mhz integer Yes
service.created_at string (date-time) Yes
service.created_at_label string Yes
service.deploy_paths array of string Yes Explicit repo-root-relative path prefixes/globs a push must touch to auto-deploy. Empty means default to the app root_path.
service.desired_instances integer Yes
service.disk_label string Yes
service.disk_mb integer Yes
service.effective_deploy_paths array of string Yes Tracked paths actually applied by the auto-deploy trigger (explicit deploy_paths, else [root_path]).
service.healthcheck_path string Yes
service.hosted_app_id string Yes
service.id string Yes
service.internal_port integer Yes
service.kind enum: web, worker, cron, static, private Yes
service.memory_label string Yes
service.memory_max_label string Yes
service.memory_max_mb integer Yes Hard memory limit in MB the task may burst to (Nomad MemoryMaxMB). memory_mb stays the reservation the scheduler places against, so raising this does not make a rollout harder to place. Must be >= memory_mb. Memory above the reservation is oversubscribed and best effort: under node pressure the kernel reclaims it and can OOM-kill the task. Null/absent renders no limit beyond the reservation.
service.memory_mb integer Yes
service.name string Yes
service.nomad_constraints_json string Yes
service.nomad_kill_timeout_seconds integer Yes Seconds the task gets after SIGTERM before SIGKILL. Null/absent leaves Nomad's 5s default. Capped at 30 because a Nomad client silently clamps kill_timeout to its own max_kill_timeout (default 30s).
service.nomad_namespace string Yes
service.nomad_region string Yes
service.nomad_shutdown_delay_seconds integer Yes Seconds Nomad waits between deregistering the group's services and sending SIGTERM, so the edge stops routing new requests to the allocation before it is signalled. Null/absent leaves Nomad's 0s default.
service.nomad_ulimits_json string Yes Docker task ulimits as a JSON object of rlimit name to "soft:hard" (for example {"nofile":"65536:65536"}). Null/absent leaves the container on the daemon default.
service.nomad_update_strategy_json string Yes
service.prestart_command string Yes
service.publicly_accessible boolean Yes
service.release_command string Yes
service.repo_source_path string Yes
service.runtime enum: docker, node, ruby, python, go, rust, ... Yes
service.runtime_adapter_kind enum: nomad, database Yes
service.runtime_adapter_settings_json string Yes
service.schedule string Yes
service.slug string Yes
service.source_path string Yes
service.start_command string Yes
service.updated_at string (date-time) Yes
service.updated_at_label string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/hosting/apps/{app_id}/services

Operation ID: post_api_v1_hosting_apps_app_id_services.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes

Request body

application/json

Property Type Required Description
auto_deploy boolean Yes
build_command string No
cpu_mhz integer No
deploy_paths array of string No
desired_instances integer Yes
disk_mb integer No
healthcheck_path string No
internal_port integer No
kind enum: web, worker, cron, static, private Yes
memory_max_mb integer No Hard memory limit in MB the task may burst to (Nomad MemoryMaxMB). Must be >= memory_mb, which stays the scheduler reservation. Omit to render no limit beyond the reservation.
memory_mb integer No
name string Yes
nomad_constraints_json string No
nomad_kill_timeout_seconds integer No Seconds the task gets after SIGTERM before SIGKILL. Omit to leave Nomad's 5s default.
nomad_namespace string No
nomad_region string No
nomad_shutdown_delay_seconds integer No Seconds Nomad waits between deregistering the group's services and sending SIGTERM. Omit to leave Nomad's 0s default.
nomad_ulimits_json string No Docker task ulimits as a JSON object of rlimit name to "soft:hard" (for example {"nofile":"65536:65536"}).
nomad_update_strategy_json string No
prestart_command string No
publicly_accessible boolean Yes
release_command string No
runtime enum: docker, node, ruby, python, go, rust, ... Yes
runtime_adapter_kind enum: nomad, database Yes
runtime_adapter_settings_json string No
schedule string No
slug string Yes
source_path string Yes
start_command string Yes

Responses

200: App service created

application/json

Property Type Required Description
service object Yes
service.auto_deploy boolean Yes
service.bindings array of object Yes
service.bindings[].app_service_id string Yes
service.bindings[].bindable_id string Yes
service.bindings[].bindable_type string Yes
service.bindings[].binding_type string Yes
service.bindings[].created_at string (date-time) Yes
service.bindings[].hosted_app_id string Yes
service.bindings[].id string Yes
service.bindings[].mount_path string Yes
service.bindings[].name string Yes
service.bindings[].read_only boolean Yes
service.bindings[].required boolean Yes
service.bindings[].updated_at string (date-time) Yes
service.build_command string Yes
service.cpu_label string Yes
service.cpu_mhz integer Yes
service.created_at string (date-time) Yes
service.created_at_label string Yes
service.deploy_paths array of string Yes Explicit repo-root-relative path prefixes/globs a push must touch to auto-deploy. Empty means default to the app root_path.
service.desired_instances integer Yes
service.disk_label string Yes
service.disk_mb integer Yes
service.effective_deploy_paths array of string Yes Tracked paths actually applied by the auto-deploy trigger (explicit deploy_paths, else [root_path]).
service.healthcheck_path string Yes
service.hosted_app_id string Yes
service.id string Yes
service.internal_port integer Yes
service.kind enum: web, worker, cron, static, private Yes
service.memory_label string Yes
service.memory_max_label string Yes
service.memory_max_mb integer Yes Hard memory limit in MB the task may burst to (Nomad MemoryMaxMB). memory_mb stays the reservation the scheduler places against, so raising this does not make a rollout harder to place. Must be >= memory_mb. Memory above the reservation is oversubscribed and best effort: under node pressure the kernel reclaims it and can OOM-kill the task. Null/absent renders no limit beyond the reservation.
service.memory_mb integer Yes
service.name string Yes
service.nomad_constraints_json string Yes
service.nomad_kill_timeout_seconds integer Yes Seconds the task gets after SIGTERM before SIGKILL. Null/absent leaves Nomad's 5s default. Capped at 30 because a Nomad client silently clamps kill_timeout to its own max_kill_timeout (default 30s).
service.nomad_namespace string Yes
service.nomad_region string Yes
service.nomad_shutdown_delay_seconds integer Yes Seconds Nomad waits between deregistering the group's services and sending SIGTERM, so the edge stops routing new requests to the allocation before it is signalled. Null/absent leaves Nomad's 0s default.
service.nomad_ulimits_json string Yes Docker task ulimits as a JSON object of rlimit name to "soft:hard" (for example {"nofile":"65536:65536"}). Null/absent leaves the container on the daemon default.
service.nomad_update_strategy_json string Yes
service.prestart_command string Yes
service.publicly_accessible boolean Yes
service.release_command string Yes
service.repo_source_path string Yes
service.runtime enum: docker, node, ruby, python, go, rust, ... Yes
service.runtime_adapter_kind enum: nomad, database Yes
service.runtime_adapter_settings_json string Yes
service.schedule string Yes
service.slug string Yes
service.source_path string Yes
service.start_command string Yes
service.updated_at string (date-time) Yes
service.updated_at_label string Yes
201: App service created

application/json

Property Type Required Description
service object Yes
service.auto_deploy boolean Yes
service.bindings array of object Yes
service.bindings[].app_service_id string Yes
service.bindings[].bindable_id string Yes
service.bindings[].bindable_type string Yes
service.bindings[].binding_type string Yes
service.bindings[].created_at string (date-time) Yes
service.bindings[].hosted_app_id string Yes
service.bindings[].id string Yes
service.bindings[].mount_path string Yes
service.bindings[].name string Yes
service.bindings[].read_only boolean Yes
service.bindings[].required boolean Yes
service.bindings[].updated_at string (date-time) Yes
service.build_command string Yes
service.cpu_label string Yes
service.cpu_mhz integer Yes
service.created_at string (date-time) Yes
service.created_at_label string Yes
service.deploy_paths array of string Yes Explicit repo-root-relative path prefixes/globs a push must touch to auto-deploy. Empty means default to the app root_path.
service.desired_instances integer Yes
service.disk_label string Yes
service.disk_mb integer Yes
service.effective_deploy_paths array of string Yes Tracked paths actually applied by the auto-deploy trigger (explicit deploy_paths, else [root_path]).
service.healthcheck_path string Yes
service.hosted_app_id string Yes
service.id string Yes
service.internal_port integer Yes
service.kind enum: web, worker, cron, static, private Yes
service.memory_label string Yes
service.memory_max_label string Yes
service.memory_max_mb integer Yes Hard memory limit in MB the task may burst to (Nomad MemoryMaxMB). memory_mb stays the reservation the scheduler places against, so raising this does not make a rollout harder to place. Must be >= memory_mb. Memory above the reservation is oversubscribed and best effort: under node pressure the kernel reclaims it and can OOM-kill the task. Null/absent renders no limit beyond the reservation.
service.memory_mb integer Yes
service.name string Yes
service.nomad_constraints_json string Yes
service.nomad_kill_timeout_seconds integer Yes Seconds the task gets after SIGTERM before SIGKILL. Null/absent leaves Nomad's 5s default. Capped at 30 because a Nomad client silently clamps kill_timeout to its own max_kill_timeout (default 30s).
service.nomad_namespace string Yes
service.nomad_region string Yes
service.nomad_shutdown_delay_seconds integer Yes Seconds Nomad waits between deregistering the group's services and sending SIGTERM, so the edge stops routing new requests to the allocation before it is signalled. Null/absent leaves Nomad's 0s default.
service.nomad_ulimits_json string Yes Docker task ulimits as a JSON object of rlimit name to "soft:hard" (for example {"nofile":"65536:65536"}). Null/absent leaves the container on the daemon default.
service.nomad_update_strategy_json string Yes
service.prestart_command string Yes
service.publicly_accessible boolean Yes
service.release_command string Yes
service.repo_source_path string Yes
service.runtime enum: docker, node, ruby, python, go, rust, ... Yes
service.runtime_adapter_kind enum: nomad, database Yes
service.runtime_adapter_settings_json string Yes
service.schedule string Yes
service.slug string Yes
service.source_path string Yes
service.start_command string Yes
service.updated_at string (date-time) Yes
service.updated_at_label string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Infrastructure request failed validation

application/json

Property Type Required Description
details array of string No
error string Yes
502: Bad gateway

load

GET /api/v1/hosting/apps/{app_id}/services/{id}

Operation ID: api_v1_app_service.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/hosting/apps/{app_id}/services

Operation ID: api_v1_app_services.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

patch

PATCH /api/v1/hosting/apps/{app_id}/services/{id}

Operation ID: patch_api_v1_hosting_apps_app_id_services_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
auto_deploy boolean No
build_command string No
cpu_mhz integer No
deploy_paths array of string No Repo-root-relative path prefixes/globs a push must touch for the service to auto-deploy. Empty array clears the override (default to app root_path).
desired_instances integer No
disk_mb integer No
healthcheck_path string No
internal_port integer No
kind enum: web, worker, cron, static, private No
memory_max_mb integer No Hard memory limit in MB the task may burst to (Nomad MemoryMaxMB). Must be >= memory_mb, which stays the scheduler reservation. Memory above the reservation is oversubscribed and best effort. Null clears the override.
memory_mb integer No
name string No
nomad_constraints_json string No
nomad_kill_timeout_seconds integer No Seconds the task gets after SIGTERM before SIGKILL. Null clears the override and leaves Nomad's 5s default. Capped at 30 because a Nomad client silently clamps kill_timeout to its own max_kill_timeout (default 30s).
nomad_namespace string No
nomad_region string No
nomad_shutdown_delay_seconds integer No Seconds Nomad waits between deregistering the group's services and sending SIGTERM, so the edge stops routing new requests to the allocation before it is signalled. Null clears the override.
nomad_ulimits_json string No Docker task ulimits as a JSON object of rlimit name to "soft:hard" (for example {"nofile":"65536:65536"}). Null/absent leaves the container on the daemon default.
nomad_update_strategy_json string No
prestart_command string No
publicly_accessible boolean No
release_command string No
runtime enum: docker, node, ruby, python, go, rust, ... No
runtime_adapter_kind enum: nomad, database No
runtime_adapter_settings_json string No
schedule string No
slug string No
source_path string No
start_command string No

Responses

200: Updated app service

application/json

Property Type Required Description
service object Yes
service.auto_deploy boolean Yes
service.bindings array of object Yes
service.bindings[].app_service_id string Yes
service.bindings[].bindable_id string Yes
service.bindings[].bindable_type string Yes
service.bindings[].binding_type string Yes
service.bindings[].created_at string (date-time) Yes
service.bindings[].hosted_app_id string Yes
service.bindings[].id string Yes
service.bindings[].mount_path string Yes
service.bindings[].name string Yes
service.bindings[].read_only boolean Yes
service.bindings[].required boolean Yes
service.bindings[].updated_at string (date-time) Yes
service.build_command string Yes
service.cpu_label string Yes
service.cpu_mhz integer Yes
service.created_at string (date-time) Yes
service.created_at_label string Yes
service.deploy_paths array of string Yes Explicit repo-root-relative path prefixes/globs a push must touch to auto-deploy. Empty means default to the app root_path.
service.desired_instances integer Yes
service.disk_label string Yes
service.disk_mb integer Yes
service.effective_deploy_paths array of string Yes Tracked paths actually applied by the auto-deploy trigger (explicit deploy_paths, else [root_path]).
service.healthcheck_path string Yes
service.hosted_app_id string Yes
service.id string Yes
service.internal_port integer Yes
service.kind enum: web, worker, cron, static, private Yes
service.memory_label string Yes
service.memory_max_label string Yes
service.memory_max_mb integer Yes Hard memory limit in MB the task may burst to (Nomad MemoryMaxMB). memory_mb stays the reservation the scheduler places against, so raising this does not make a rollout harder to place. Must be >= memory_mb. Memory above the reservation is oversubscribed and best effort: under node pressure the kernel reclaims it and can OOM-kill the task. Null/absent renders no limit beyond the reservation.
service.memory_mb integer Yes
service.name string Yes
service.nomad_constraints_json string Yes
service.nomad_kill_timeout_seconds integer Yes Seconds the task gets after SIGTERM before SIGKILL. Null/absent leaves Nomad's 5s default. Capped at 30 because a Nomad client silently clamps kill_timeout to its own max_kill_timeout (default 30s).
service.nomad_namespace string Yes
service.nomad_region string Yes
service.nomad_shutdown_delay_seconds integer Yes Seconds Nomad waits between deregistering the group's services and sending SIGTERM, so the edge stops routing new requests to the allocation before it is signalled. Null/absent leaves Nomad's 0s default.
service.nomad_ulimits_json string Yes Docker task ulimits as a JSON object of rlimit name to "soft:hard" (for example {"nofile":"65536:65536"}). Null/absent leaves the container on the daemon default.
service.nomad_update_strategy_json string Yes
service.prestart_command string Yes
service.publicly_accessible boolean Yes
service.release_command string Yes
service.repo_source_path string Yes
service.runtime enum: docker, node, ruby, python, go, rust, ... Yes
service.runtime_adapter_kind enum: nomad, database Yes
service.runtime_adapter_settings_json string Yes
service.schedule string Yes
service.slug string Yes
service.source_path string Yes
service.start_command string Yes
service.updated_at string (date-time) Yes
service.updated_at_label string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Deployment request failed validation

application/json

Property Type Required Description
details array of string No
error string Yes
502: Bad gateway

remove

DELETE /api/v1/hosting/apps/{app_id}/services/{id}

Operation ID: delete_api_v1_hosting_apps_app_id_services_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

update

PUT /api/v1/hosting/apps/{app_id}/services/{id}

Operation ID: put_api_v1_hosting_apps_app_id_services_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
app_id path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
auto_deploy boolean No
build_command string No
cpu_mhz integer No
deploy_paths array of string No Repo-root-relative path prefixes/globs a push must touch for the service to auto-deploy. Empty array clears the override (default to app root_path).
desired_instances integer No
disk_mb integer No
healthcheck_path string No
internal_port integer No
kind enum: web, worker, cron, static, private No
memory_max_mb integer No Hard memory limit in MB the task may burst to (Nomad MemoryMaxMB). Must be >= memory_mb, which stays the scheduler reservation. Memory above the reservation is oversubscribed and best effort. Null clears the override.
memory_mb integer No
name string No
nomad_constraints_json string No
nomad_kill_timeout_seconds integer No Seconds the task gets after SIGTERM before SIGKILL. Null clears the override and leaves Nomad's 5s default. Capped at 30 because a Nomad client silently clamps kill_timeout to its own max_kill_timeout (default 30s).
nomad_namespace string No
nomad_region string No
nomad_shutdown_delay_seconds integer No Seconds Nomad waits between deregistering the group's services and sending SIGTERM, so the edge stops routing new requests to the allocation before it is signalled. Null clears the override.
nomad_ulimits_json string No Docker task ulimits as a JSON object of rlimit name to "soft:hard" (for example {"nofile":"65536:65536"}). Null/absent leaves the container on the daemon default.
nomad_update_strategy_json string No
prestart_command string No
publicly_accessible boolean No
release_command string No
runtime enum: docker, node, ruby, python, go, rust, ... No
runtime_adapter_kind enum: nomad, database No
runtime_adapter_settings_json string No
schedule string No
slug string No
source_path string No
start_command string No

Responses

200: Updated app service

application/json

Property Type Required Description
service object Yes
service.auto_deploy boolean Yes
service.bindings array of object Yes
service.bindings[].app_service_id string Yes
service.bindings[].bindable_id string Yes
service.bindings[].bindable_type string Yes
service.bindings[].binding_type string Yes
service.bindings[].created_at string (date-time) Yes
service.bindings[].hosted_app_id string Yes
service.bindings[].id string Yes
service.bindings[].mount_path string Yes
service.bindings[].name string Yes
service.bindings[].read_only boolean Yes
service.bindings[].required boolean Yes
service.bindings[].updated_at string (date-time) Yes
service.build_command string Yes
service.cpu_label string Yes
service.cpu_mhz integer Yes
service.created_at string (date-time) Yes
service.created_at_label string Yes
service.deploy_paths array of string Yes Explicit repo-root-relative path prefixes/globs a push must touch to auto-deploy. Empty means default to the app root_path.
service.desired_instances integer Yes
service.disk_label string Yes
service.disk_mb integer Yes
service.effective_deploy_paths array of string Yes Tracked paths actually applied by the auto-deploy trigger (explicit deploy_paths, else [root_path]).
service.healthcheck_path string Yes
service.hosted_app_id string Yes
service.id string Yes
service.internal_port integer Yes
service.kind enum: web, worker, cron, static, private Yes
service.memory_label string Yes
service.memory_max_label string Yes
service.memory_max_mb integer Yes Hard memory limit in MB the task may burst to (Nomad MemoryMaxMB). memory_mb stays the reservation the scheduler places against, so raising this does not make a rollout harder to place. Must be >= memory_mb. Memory above the reservation is oversubscribed and best effort: under node pressure the kernel reclaims it and can OOM-kill the task. Null/absent renders no limit beyond the reservation.
service.memory_mb integer Yes
service.name string Yes
service.nomad_constraints_json string Yes
service.nomad_kill_timeout_seconds integer Yes Seconds the task gets after SIGTERM before SIGKILL. Null/absent leaves Nomad's 5s default. Capped at 30 because a Nomad client silently clamps kill_timeout to its own max_kill_timeout (default 30s).
service.nomad_namespace string Yes
service.nomad_region string Yes
service.nomad_shutdown_delay_seconds integer Yes Seconds Nomad waits between deregistering the group's services and sending SIGTERM, so the edge stops routing new requests to the allocation before it is signalled. Null/absent leaves Nomad's 0s default.
service.nomad_ulimits_json string Yes Docker task ulimits as a JSON object of rlimit name to "soft:hard" (for example {"nofile":"65536:65536"}). Null/absent leaves the container on the daemon default.
service.nomad_update_strategy_json string Yes
service.prestart_command string Yes
service.publicly_accessible boolean Yes
service.release_command string Yes
service.repo_source_path string Yes
service.runtime enum: docker, node, ruby, python, go, rust, ... Yes
service.runtime_adapter_kind enum: nomad, database Yes
service.runtime_adapter_settings_json string Yes
service.schedule string Yes
service.slug string Yes
service.source_path string Yes
service.start_command string Yes
service.updated_at string (date-time) Yes
service.updated_at_label string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Deployment request failed validation

application/json

Property Type Required Description
details array of string No
error string Yes
502: Bad gateway