PUT /accounts/{account_id}/workers/scripts/{script_name}/content
Put script content without touching config or metadata
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 |
---|---|---|---|
CF-WORKER-MAIN-MODULE-PART |
String | No |
The multipart name of a script upload part containing script content in es module format. Alternative to including in a metadata part. |
CF-WORKER-BODY-PART |
String | No |
The multipart name of a script upload part containing script content in service worker format. Alternative to including in a metadata part. |
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.