Skip to main content
POST
Deploy Service

Authorizations

Authorization
string
header
required

Your account API token, sent as Authorization: Bearer <api_token>. Owners and admins can read the token from the LocalOps console.

Path Parameters

envId
string
required

The unique identifier of the environment

serviceId
string
required

The unique identifier of the service

Body

application/json
commit_id
string
required

The Git commit ID to deploy. Omit it, and send {}, to deploy the latest commit on the service's configured branch.

note
string

Optional note stored on the deployment

Maximum string length: 300

Response

Deployment triggered successfully

message
string
data
Standard deployment · object