Detach a resource from an application environment
DELETE
/api/v3/organizations/{organisation}/resources/{resource}/attachments/{application}/{environment}
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/test-org/resources/res-abc123/attachments/test-app/production';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/test-org/resources/res-abc123/attachments/test-app/production \ --header 'Authorization: Bearer <token>'Removes the injected credentials and redeploys the environment so that it stops referencing them, which interrupts the environment briefly. The resource and its contents are not deleted.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organisation
required
string
The organisation ID
Example
test-orgresource
required
string
The resource ID
Example
res-abc123application
required
string
The application ID
Example
test-appenvironment
required
string
The environment ID
Example
productionResponses
Section titled “Responses”Detached; the environment is redeploying
No such attachment
