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 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "environment": "PROD"
}
'
{
  "message": "Action completed successfully."
}

Authorizations

Authorization
string
header
required

HTTP Basic Authentication using your Tiger Cloud public key and secret key.

Format: Authorization: Basic <base64(public_key:secret_key)>

Example:

curl -X GET "https://console.cloud.timescale.com/public/api/v1/projects/{project_id}/services" \
-H "Authorization: Basic $(echo -n 'your_public_key:your_secret_key' | base64)"

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."