Delete environment variable
const url = 'https://api.deploybase.eu/api/v1/api/v1/projects/example/env/example';const options = {method: 'DELETE', headers: {Authorization: '<Authorization>'}};
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://api.deploybase.eu/api/v1/api/v1/projects/example/env/example \ --header 'Authorization: <Authorization>'Deletes a single environment variable by ID
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Project ID
Environment Variable ID
Responses
Section titled “ Responses ”No Content
Unauthorized
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
FORBIDDEN when the role is too low; on a runtime-target change, DEPLOYS_PAUSED_FOR_REVIEW when the team is held for review by a suspension case (deploys paused, sites keep serving), ACCOUNT_SUSPENDED when it is suspended
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Not Found
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Live 582ac705 built