Skip to main content
POST
/
v1
/
environments
/
{envId}
/
services
/
{serviceId}
/
deploy
Deploy Service
curl --request POST \
  --url https://sdk.localops.co/v1/environments/{envId}/services/{serviceId}/deploy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "commit_id": "a1b2c3d4"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

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

Response

200

Deployment triggered successfully