Skip to main content
POST
Request a host build an item

Authorizations

X-Outerlayer-App-Id
string
header
required

Factory id the request is scoped to.

Authorization
string
header
required

API key (sk_outerlayer_*)

Body

application/json
agent
string

The agent that builds the item. Leave it out for the agent key of the repository's .outerlayer/config.json. When the config names no agent, a request for an item already on Work carries the agent and the model of the item's previous request together, and only when that request named an agent. A previous request that named a model and no agent carries nothing. Otherwise the request records no agent: a self-hosted runner builds the item with its own default agent, and a fleet machine with the factory's default agent. A config that is not valid JSON, is larger than 65536 bytes, or names an agent no build can use, refuses the request with repository_config_invalid. A config that cannot be read for a reason a retry can heal, such as a rate limit or a 5xx, refuses it with repository_config_unreadable.

attestor
string
ci
object
continueSession
enum<boolean>

true asks the build to continue the agent session of the item's previous build, where the runner keeps one. Leave it out for the default, which starts a new session. Refused together with fresh, and refused as session_agent_mismatch when the build's agent differs from the agent the item's newest job ran with.

Available options:
true
fresh
enum<boolean>

true asks the build to start from a fresh disk: the runner restores no disk that the item's previous job left on its machine. Leave it out for the default, which restores that disk when the runner checks pass.

Available options:
true
instructions
string
Maximum string length: 2000
model
string

The model the agent builds with. Leave it out for the model key of the repository's .outerlayer/config.json, which applies only when the request names no agent.

note
string
Maximum string length: 2000
runner
enum<string>

managed builds the item on a managed runner, also when the requester has a personal runner. It moves a build of the requester's own that waits. Accepted only from a member, in a factory whose builds run on managed runners (else managed_runners_off). While another member's build of the item waits, or the item has an open pull request that another member asked for, it is refused as runner_choice_not_requester. Any other value is refused as invalid_request_body. Leave it out for the default.

Available options:
managed
sessionId
string
Required string length: 1 - 2000
subject
object
workItemId
string
Minimum string length: 1

Response

The build request was recorded. It feeds the implement queue, or the amend queue when the item has an open pull request.

data
object
required