Skip to main content
PUT
/
environment
/
{environmentId}
/
deploymentRule
/
{deploymentRuleId}
Edit an environment deployment rule
curl --request PUT \
  --url https://api.qovery.com/environment/{environmentId}/deploymentRule/{deploymentRuleId} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "on_demand_preview": false,
  "auto_preview": false,
  "auto_stop": false,
  "timezone": "UTC",
  "start_time": "1970-01-01T08:00:00.000Z",
  "stop_time": "1970-01-01T19:00:00.000Z",
  "weekdays": [
    "MONDAY"
  ]
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "on_demand_preview": false,
  "auto_stop": false,
  "auto_preview": false,
  "timezone": "UTC",
  "start_time": "1970-01-01T08:00:00.000Z",
  "stop_time": "1970-01-01T19:00:00.000Z",
  "weekdays": [
    "MONDAY"
  ]
}

Authorizations

Authorization
string
header
required

Token API are generated by Qovery to manage machine to machine interaction and do not have a TTL. Prefix your token with "Token ". Curl Example: curl https://console.qovery.com/organization -H "Authorization: Token $qovery_token"

Path Parameters

environmentId
string<uuid>
required

Environment ID

deploymentRuleId
string<uuid>
required

Deployment Rule ID

Body

application/json
timezone
string
required
Example:

"UTC"

start_time
string<date-time>
required
Example:

"1970-01-01T08:00:00.000Z"

stop_time
string<date-time>
required
Example:

"1970-01-01T19:00:00.000Z"

weekdays
enum<string>[]
required
on_demand_preview
boolean
default:false
auto_preview
boolean
default:false
auto_stop
boolean
default:false

Response

Edit environment deployment rule

id
string<uuid>
required
created_at
string<date-time>
required
timezone
string
required
Example:

"UTC"

start_time
string<date-time>
required
Example:

"1970-01-01T08:00:00.000Z"

stop_time
string<date-time>
required
Example:

"1970-01-01T19:00:00.000Z"

weekdays
enum<string>[]
required
updated_at
string<date-time>
on_demand_preview
boolean
default:false
auto_stop
boolean
default:false
auto_preview
boolean
default:false