Tarsana docsDashboardMenu

Update a server to its newest release

Change · POST /v1/tenants/{tenant}/servers/{server_name}/update · MCP tool request-update

Sends one of your servers the release your release channel (stable unless you name another) carries now or, if that channel carries none, the newest ready build of the spec the server was created from, in a statement Tarsana signs for that server alone; if the server already has that build, nothing is sent and the answer is nothing_newer. The server fetches the release itself and installs it the next time it restarts; Tarsana does not restart it for you. If the new release does not start and report healthy, the server goes back to the release it ran before by itself. A 200 answer means the update was sent, not that it is installed: follow it with update-status. Asking again sends a channel's release again.

Roles that can call it: deployer.

Parameters

NameInRequiredDescription
tenantpathyesYour tenant ID
server_namepathyesThe server's name in your account: the action_id create-server returned, or the name you gave install-command
release_channelbodynoYour release channel to take the release from, for example stable (the default)
os_versionbodynoThe version you expect the channel to carry. If it carries another one, nothing is sent

Returns

A JSON object with these keys: tenant, server_name, update, guarantee, caller_authenticated.

Example request

curl -X POST https://api.tarsana.io/v1/tenants/acme/servers/web-1/update \
  -H "X-Tarsana-Access-Token: $ACCESS_TOKEN" \
  -H 'X-Tarsana-Tenant: acme' \
  -H "Content-Type: application/json" \
  --data '{"release_channel": "candidate", "os_version": "1.0.1"}'

Example response

{
  "tenant": "acme",
  "server_name": "web-1",
  "update": {
    "channel": "server-web-1",
    "cycle": 1,
    "expires": "2026-10-05T10:44:07Z",
    "os_version": "1.0.1",
    "requested_at": "2026-10-05T06:44:05Z",
    "source_channel": "candidate",
    "state": "requested",
    "why": "published; the server has not reported since"
  },
  "guarantee": "namespaces are separated, callers are not authenticated",
  "caller_authenticated": false
}

Errors

CodeHTTPWhat it means
invalid_parameter400A value in your request does not have the expected format, for example a submission ID that is not a spec hash. Check the value against the field's description and try again.
no_acting_tenant400Your request does not say which tenant you are acting for. Send your tenant ID in the X-Tarsana-Tenant header, or with --as on the command line.
isolation_refused403This address belongs to a tenant ID you do not have access to. Check the tenant ID in the address and in your request header.
tenant_refused400This tenant ID is not allowed or not in the expected format, or your spec names a different tenant in metadata.tenant. The message says what to change; an ID is made of lower-case letters, digits, dots, dashes and underscores.
update_not_configured503Updating servers is not available on this Tarsana deployment. Contact Tarsana support if you need it.
server_not_joined404No server with this name has joined your account, so there is nothing to update. A server joins when its install command has run; use the name create-server (its action_id) or install-command gave it.
no_release409The release channel you named carries no release a server would accept right now, and there is no build of the server's spec to take one from, so there is nothing to update to and nothing was sent. Build the spec the server was created from, name another channel, or ask Tarsana support to publish a release.
nothing_newer409The server already has the newest build of the spec it was created from, so there is nothing newer to update to and nothing was sent. Change the spec or build it again, wait until that build is ready, and ask again.
release_moved409Your release channel now carries another version than the one you asked for, so nothing was sent to your server. Check the version in the response and ask again.
update_failed502The release was refused when Tarsana tried to send it to your server, so nothing reached the server. Contact Tarsana support.
update_unavailable503Tarsana could not send the update or read its outcome right now, so nothing reached your server. Try again later; asking again sends the update.
unauthenticated401Your request has no credential, or one that Tarsana does not recognise. Sign in with login, or send a valid access token.
forbidden403Your role does not allow this operation. The response names the roles that do; ask for a credential with one of them.
rate_limited429You sent too many requests in a short time. Wait for the number of seconds in retry_after_seconds, then try again.
surface_fault500Something went wrong on our side. Try again later, and contact Tarsana support if it keeps happening.

View this page as Markdown