PUT https://api.cronhooks.io/environment-variables
Name | Required |
---|---|
overwrite
Overwrite existing variables
|
Required |
environmentVariables
Variables {}
|
Required |
curl "https://api.cronhooks.io/environment-variables"
-X PUT \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <YOUR_API_TOKEN>' \
-d \
'{
overwrite: false,
environmentVariables: [
{
"key": "API_SECRET",
"value": "sec_b1c4553be9dab17879b4a2ba2c5aecc2c13cafef",
"protected": true
}
]
}'
{
"items": [
{
"key": "BASE_URL",
"value": "https://api.cronhooks.io",
"protected": false
},
{
"key": "API_KEY",
"value": "key_b1c4553be9dab17879b4a2ba2c5aecc2c13cafef",
"protected": true
},
{
"key": "API_SECRET",
"value": "sec_b1c4553be9dab17879b4a2ba2c5aecc2c13cafef",
"protected": true
}
]
}