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
| Name | In | Required | Description |
|---|---|---|---|
tenant | path | yes | Your tenant ID |
server_name | path | yes | The server's name in your account: the action_id create-server returned, or the name you gave install-command |
release_channel | body | no | Your release channel to take the release from, for example stable (the default) |
os_version | body | no | The 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
| Code | HTTP | What it means |
|---|---|---|
invalid_parameter | 400 | A 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_tenant | 400 | Your 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_refused | 403 | This 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_refused | 400 | This 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_configured | 503 | Updating servers is not available on this Tarsana deployment. Contact Tarsana support if you need it. |
server_not_joined | 404 | No 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_release | 409 | The 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_newer | 409 | The 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_moved | 409 | Your 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_failed | 502 | The release was refused when Tarsana tried to send it to your server, so nothing reached the server. Contact Tarsana support. |
update_unavailable | 503 | Tarsana could not send the update or read its outcome right now, so nothing reached your server. Try again later; asking again sends the update. |
unauthenticated | 401 | Your request has no credential, or one that Tarsana does not recognise. Sign in with login, or send a valid access token. |
forbidden | 403 | Your role does not allow this operation. The response names the roles that do; ask for a credential with one of them. |
rate_limited | 429 | You sent too many requests in a short time. Wait for the number of seconds in retry_after_seconds, then try again. |
surface_fault | 500 | Something went wrong on our side. Try again later, and contact Tarsana support if it keeps happening. |