Skip to navigation

Deploy a computer asset to a preview URL

Beta

Deploy a computer asset’s running application to a shareable, persistent preview URL — the same action the Deploy button in the Olympus UI performs. Auto-starts the computer if it is stopped, validates that the requested port is reachable, records the deployment in the asset’s metadata (so the UI stays in sync), and returns the Marathon preview URL for the exposed port. Call it with different ports to deploy multiple services from the same computer. Ports reserved by the computer runtime (such as the internal developer-agent port) are rejected with a 400 and can never be deployed. A 409 means the port cannot be exposed on this computer’s runtime as currently booted (the detail explains how to proceed); a 502 means the runtime’s port validation failed; a 503 means the deploy couldn’t be checked, so nothing was recorded and it can be sent again. A credential a runtime holds is refused with a 403 where the port would be served beyond the workspace (a public or SSO computer, a port in raw proxy mode, a public custom domain that would serve the port, whether pinned to it or a legacy one with no port, which follows the deployed port, or a stored policy or custom domains this server can’t read), unless its workspace’s decision_authority.agent_widening setting admits its agent. For now a staff impersonation (dashboard or in-app) is refused there too, whatever that setting says, until the central staff-acts-for-customer verdict admits a verified staff impersonation.

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

asset_idstringRequired

Headers

X-Athena-Session-CredentialstringOptional

Request

This endpoint expects an object.
portintegerOptional1-65535Defaults to 3000
Port inside the computer to expose publicly. Defaults to 3000. Each port gets its own deterministic preview subdomain, so you can deploy multiple services from the same computer by calling this endpoint with different ports.

Response

Successful Response
deployed_portslist of integers
All ports currently deployed for this computer asset.
portinteger
Port that was deployed and exposed on the preview URL.
urlstring

Persistent Marathon preview URL for the deployed port (https://{uuid}—{port}.{marathon_app_domain}). Does not expire.

Errors

401
Unauthorized Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
502
Bad Gateway Error