How to update Worker secrets via REST API (or TS SDK)?
I found such undocumented endpoints in
So I tried to delete it first. And the delete one doesn't work as well saying the binding not found when it's already there:
The API access token I'm using has full read/write previlages in the scope of the worker's zone.
I'm completely out of ideas. Please help.
wrangler's source code:- To create and update Worker's secret:
https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/workers/scripts/<WORKER_NAME>/secrets - To delete Worker's secret:
https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/workers/scripts/<WORKER_NAME>/secrets/<SECRET_KEY>
So I tried to delete it first. And the delete one doesn't work as well saying the binding not found when it's already there:
The API access token I'm using has full read/write previlages in the scope of the worker's zone.
I'm completely out of ideas. Please help.
GitHub
Home to Wrangler, the CLI for Cloudflare Workers® - cloudflare/workers-sdk