Templates ›
Delete template variable
DELETE
/v1/templates/{id}/secrets/variables/{name}Removes one of the template's variables. A sandbox on the template takes the change when it next starts, or when POST /v1/templates/{id}/apply names it.
RequestTypeScript
- import { Agental } from "agental-sdk";
- const agental = new Agental();
- const template = await agental.templates.get("tpl_0123456789abcdef");
- await template.secrets.delete("GITHUB_TOKEN");
Answer204 No Content
No body: the status says it was done.
Variable removed.
Path
idrequiredstring | e.g. "tpl_0123456789abcdef" |
namerequiredstring | e.g. "DATABASE_URL" |
Headers
AuthorizationrequiredBearer key | An API key that may make this call. |
Returns
204 Variable removed.
Errors and other answers
| 404 | Not found. |
Every error answers { "error": { "code", "message" } }; a key without the action a call needs answers 403 key_action_forbidden, naming it.