Skip to content

Set Environment for a Service

POST/projects/{project_id}/services/{service_id}/setEnvironment

Sets the environment type for the service.

Path ParametersExpand Collapse
project_id: string
service_id: string
Body ParametersJSONExpand Collapse
environment: "PROD" or "DEV"

The target environment for the service.

One of the following:
"PROD"
"DEV"
ReturnsExpand Collapse
message: optional string

Set Environment for a Service

curl http://localhost:8080/projects/$PROJECT_ID/services/$SERVICE_ID/setEnvironment \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $TIGER_CLOUD_API_KEY" \
    -d '{
          "environment": "PROD"
        }'
{
  "message": "Action completed successfully."
}
Returns Examples
{
  "message": "Action completed successfully."
}