PATCH /accounts/{account_id}/workers/scripts/{script_name}/secrets-bulk
Create, update, or delete multiple secrets on a script in a single operation using JSON Merge Patch (RFC 7396).
Usage:
- To create or update a secret, set its value to a secret object.
- To delete a secret, set its value to
null. - Secrets not included in the request are left unchanged.
Servers
- https://api.cloudflare.com/client/v4
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
script_name |
String | Yes | |
account_id |
String | Yes |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
version_tags |
Object | No |
Optional version tags to apply to the new script version. |
secrets |
Object | No |
Map of secret names to secret values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.