Skip to main content
POST
/
projects
/
{project_id}
/
services
/
{service_id}
/
setEnvironment
Set Environment for a Service
curl --request POST \
  --url https://console.cloud.timescale.com/public/api/v1/projects/{project_id}/services/{service_id}/setEnvironment \
  --header 'Content-Type: application/json' \
  --data '{
  "environment": "PROD"
}'
{
  "message": "Action completed successfully."
}

Path Parameters

project_id
string
required

The unique identifier of the project.

Example:

"rp1pz7uyae"

service_id
string
required

The unique identifier of the service.

Example:

"d1k5vk7hf2"

Body

application/json
environment
enum<string>
required

The target environment for the service.

Available options:
PROD,
DEV

Response

The action was completed successfully.

message
string
Example:

"Action completed successfully."