Delete a secret
DELETE
/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets/{api_secret}
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/applications/example/environments/example/secrets/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://dashboard.quantcdn.io/api/v3/organizations/example/applications/example/environments/example/secrets/example \ --header 'Authorization: Bearer <token>'Deletes the secret. The change takes effect on the next redeploy of the environment. A 200 with warnings means the deployed revision still references the secret and cannot start a replacement task until it is redeployed.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”api_organisation
required
string
The organisation ID
api_application
required
string
The application ID
api_environment
required
string
The environment ID
api_secret
required
string
The secret key
Responses
Section titled “Responses”The secret is deleted, with warnings from Quant Cloud
Media typeapplication/json
object
warnings
required
Array<string>
Examplegenerated
{ "warnings": [ "example" ]}The secret is deleted (or did not exist). It takes effect on the next redeploy.
The key is not valid
