Hello community. I’m wondering if anyone has had success using the beta update Secrets API endpoint?
Below is a sample of how my request is structured.
curl --request POST \
--url https://api.doppler.com/v3/configs/config/secrets \
--header 'accept: application/json' \
--header 'authorization: Bearer my_service_key' \
--header 'content-type: application/json' \
--data '
{
"project": "my_project_name",
"config": "my_config_name",
"secrets": {
"my_secret_name: "my_secret_value"
}
}
'
After sending the request I receive a 400 Bad Request
and the following response.
{
"messages": [
"Either secrets or change_requests must be specified"
],
"success": false
}
There is a section in the API documentation that states:
The
change_requests
parameter is a new parameter that is an array whose elements are objects matching the following format. This endpoint must receive either asecrets
orchange_requests
parameter (but not both).
I’ve not had success structuring my request to successfully update a secret. Any help would be greatly appreciated.