Skip to main content
PUT
Update an agent from a new archive

Authorizations

Authorization
string
header
required

Session JWT. After nasiko auth login, print it with jq -r '.clusters[.active].token' ~/.nasiko/config.json. API keys aren't supported.

Path Parameters

id
string<uuid>
required

Agent id

Body

multipart/form-data

Multipart form for PUT /{id}/update — a .zip source file plus optional version (a strategy keyword auto/patch/minor/major, or an explicit semver string greater than the current version), changelog and parking_policy fields.

source
file
required
changelog
string | null
parking_policy
string | null

auto | resident. Omit to keep the agent's stored policy.

version
string | null

Response

Build queued

agent_id
string<uuid>
required
build_id
string<uuid>
required
new_version
string
required
previous_version
string
required
status
string
required