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"
}
'Trigger a deployment for a specific service within an environment.
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"
}
'Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the environment
The unique identifier of the service
The Git commit ID to deploy
Deployment triggered successfully
Was this page helpful?