API to set worker environment variable?

Hey folks, I'm looking for an HTTP API to set a Worker's environment variable. Digging into Wrangler, another member of the community found this for secrets: /accounts/account_id/workers/scripts/script_name/secrets https://github.com/cloudflare/workers-sdk/blob/main/packages/wrangler/src/secret/index.ts#L170-L185 But I'm not sure if it can apply to regular plain text env vars, and am not finding anything else documented anywhere.
GitHub
workers-sdk/packages/wrangler/src/secret/index.ts at main · cloudfl...
⛅️ Home to Wrangler, the CLI for Cloudflare Workers® - cloudflare/workers-sdk
2 Replies
Hello, I’m Allie!
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
xeon06
xeon06OP4w ago
@HardlyWorkin' thanks for the answer, I looked at that one but couldn't see which body param? I went through all the bindings too. I see KV, service bindings, DOs, queues, D1... no env?
Want results from more Discord servers?
Add your server