---
title: Upload Worker Module
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/python)

[Workers](https://developers.cloudflare.com/api/python/resources/workers)

[Scripts](https://developers.cloudflare.com/api/python/resources/workers/subresources/scripts)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Upload Worker Module

workers.scripts.update(strscript\_name, ScriptUpdateParams\*\*kwargs) -> [ScriptUpdateResponse](<https://developers.cloudflare.com/api/python/resources/workers#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)>)

PUT/accounts/{account\_id}/workers/scripts/{script\_name}

Upload a worker module. You can find more about the multipart metadata on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Workers Scripts Write`

##### ParametersExpand Collapse

account\_id: str

Identifier.

maxLength32

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20account_id%20%3E%20(schema)>)

script\_name: str

Name of the script.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20script_name%20%3E%20(schema)>)

<details>

<summary>

metadata: <a href="https://developers.cloudflare.com/api/python/resources/workers/subresources/scripts/methods/update#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)">Metadata</a>

JSON-encoded metadata about the uploaded parts and Worker configuration.

</summary>

<details>

<summary>

annotations: Optional\[MetadataAnnotations]

Annotations for the version created by this upload.

</summary>

workers\_message: Optional\[str]

Human-readable message about the version. Truncated to 1000 bytes if longer.

maxLength1000

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20annotations%20%3E%20(property)%20workers%2Fmessage">Link to this property</a>

workers\_tag: Optional\[str]

User-provided identifier for the version. Maximum 100 bytes.

maxLength100

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20annotations%20%3E%20(property)%20workers%2Ftag">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20annotations">Link to this property</a>

<details>

<summary>

assets: Optional\[MetadataAssets]

Configuration for assets within a Worker.

</summary>

<details>

<summary>

config: Optional\[MetadataAssetsConfig]

Configuration for assets within a Worker.

</summary>

\_headers: Optional\[str]

The contents of a \_headers file (used to attach custom headers on asset responses).

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20_headers">Link to this property</a>

\_redirects: Optional\[str]

The contents of a \_redirects file (used to apply redirects or proxy paths ahead of asset serving).

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20_redirects">Link to this property</a>

base\_path: Optional\[str]

The public URL path prefix under which assets are served. A null request value resets it to <code>/</code>; responses represent the root as <code>/</code>. All versions in a gradual deployment must use the same canonical value. To change it, first deploy the version containing the change at 100%.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20base_path">Link to this property</a>

<details>

<summary>

html\_handling: Optional\[Literal\["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]]

Determines the redirects and rewrites of requests for HTML content.

</summary>

One of the following:

"auto-trailing-slash"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20html_handling%20%3E%20(member)%200">Link to this property</a>

"force-trailing-slash"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20html_handling%20%3E%20(member)%201">Link to this property</a>

"drop-trailing-slash"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20html_handling%20%3E%20(member)%202">Link to this property</a>

"none"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20html_handling%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20html_handling">Link to this property</a>

<details>

<summary>

not\_found\_handling: Optional\[Literal\["none", "404-page", "single-page-application"]]

Determines the response when a request does not match a static asset, and there is no Worker script.

</summary>

One of the following:

"none"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20not_found_handling%20%3E%20(member)%200">Link to this property</a>

"404-page"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20not_found_handling%20%3E%20(member)%201">Link to this property</a>

"single-page-application"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20not_found_handling%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20not_found_handling">Link to this property</a>

<details>

<summary>

run\_worker\_first: Optional\[Union\[Sequence\[str], bool]]

Contains a list path rules to control routing to either the Worker or assets. Glob (\*) and negative (!) rules are supported. Rules must start with either ’/’ or ’!/’. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.

</summary>

One of the following:

Sequence\[str]

Contains a list path rules to control routing to either the Worker or assets. Glob (\*) and negative (!) rules are supported. Rules must start with either ’/’ or ’!/’. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20run_worker_first%20%3E%20(variant)%200">Link to this property</a>

bool

Enables routing to always invoke the Worker script ahead of all requests. When true, this is equivalent to <code>["/*"]</code> in the string array version of this field.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20run_worker_first%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20run_worker_first">Link to this property</a>

Deprecatedserve\_directly: Optional\[bool]

When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config%20%3E%20(property)%20serve_directly">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20config">Link to this property</a>

jwt: Optional\[str]

Token provided upon successful upload of all files from a registered manifest.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets%20%3E%20(property)%20jwt">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20assets">Link to this property</a>

<details>

<summary>

bindings: Optional\[Iterable\[MetadataBinding]]

List of bindings attached to a Worker. You can find more about bindings on our docs: <a href="https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings">https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings</a>.

</summary>

One of the following:

<details>

<summary>

class MetadataBindingWorkersBindingKindAI: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["ai"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindAISearch: …

</summary>

instance\_name: str

The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20instance_name">Link to this property</a>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["ai\_search"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

namespace: Optional\[str]

The namespace the instance belongs to. Defaults to “default” if omitted. Customers who don’t use namespaces can simply omit this field.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20namespace">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindAISearchNamespace: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20name">Link to this property</a>

namespace: str

The user-chosen namespace name. Must exist before deploy — Wrangler handles auto-creation on deploy failure (R2 bucket pattern). The “default” namespace is auto-created by config-api for new accounts. Grants full access (CRUD + search + chat) to all instances within the namespace.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20namespace">Link to this property</a>

type: Literal\["ai\_search\_namespace"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindMessaging: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20name">Link to this property</a>

namespace: str

The Messaging namespace to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20namespace">Link to this property</a>

type: Literal\["messaging"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindAnalyticsEngine: …

</summary>

dataset: str

The name of the dataset to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20dataset">Link to this property</a>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["analytics\_engine"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindArtifacts: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20name">Link to this property</a>

namespace: str

The Artifacts namespace exposed to the Worker in the Worker’s account. Must be 2-63 characters, start with an ASCII alphanumeric character, contain only ASCII alphanumeric characters, dots, underscores, and hyphens, and must not end with a hyphen. The namespace does not need to be created before binding it.

maxLength63

minLength2

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20namespace">Link to this property</a>

type: Literal\["artifacts"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%205">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindAssets: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["assets"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindBrowser: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%207%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["browser"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%207%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%207">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindD1: …

</summary>

database\_id: str

Identifier of the D1 database to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%208%20%3E%20(property)%20database_id">Link to this property</a>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%208%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["d1"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%208%20%3E%20(property)%20type">Link to this property</a>

Deprecatedid: Optional\[str]

This property has been renamed to <code>database_id</code>.

Identifier of the D1 database to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%208%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%208">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindDataBlob: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%209%20%3E%20(property)%20name">Link to this property</a>

part: str

The name of the file containing the data content. Only accepted for <code>service worker syntax</code> Workers.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%209%20%3E%20(property)%20part">Link to this property</a>

Deprecatedtype: Literal\["data\_blob"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%209%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%209">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindDispatchNamespace: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(property)%20name">Link to this property</a>

namespace: str

The name of the dispatch namespace.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(property)%20namespace">Link to this property</a>

type: Literal\["dispatch\_namespace"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

outbound: Optional\[MetadataBindingWorkersBindingKindDispatchNamespaceOutbound]

Outbound worker.

</summary>

<details>

<summary>

params: Optional\[Iterable\[MetadataBindingWorkersBindingKindDispatchNamespaceOutboundParam]]

Pass information from the Dispatch Worker to the Outbound Worker through the parameters.

</summary>

name: str

Name of the parameter.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(property)%20outbound%20%3E%20(property)%20params%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(property)%20outbound%20%3E%20(property)%20params">Link to this property</a>

<details>

<summary>

worker: Optional\[MetadataBindingWorkersBindingKindDispatchNamespaceOutboundWorker]

Outbound worker.

</summary>

entrypoint: Optional\[str]

Entrypoint to invoke on the outbound worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(property)%20outbound%20%3E%20(property)%20worker%20%3E%20(property)%20entrypoint">Link to this property</a>

environment: Optional\[str]

Environment of the outbound worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(property)%20outbound%20%3E%20(property)%20worker%20%3E%20(property)%20environment">Link to this property</a>

service: Optional\[str]

Name of the outbound worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(property)%20outbound%20%3E%20(property)%20worker%20%3E%20(property)%20service">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(property)%20outbound%20%3E%20(property)%20worker">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(property)%20outbound">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2010">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindDurableObjectNamespace: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["durable\_object\_namespace"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(property)%20type">Link to this property</a>

class\_name: Optional\[str]

The exported class name of the Durable Object.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(property)%20class_name">Link to this property</a>

dispatch\_namespace: Optional\[str]

The dispatch namespace the Durable Object script belongs to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(property)%20dispatch_namespace">Link to this property</a>

environment: Optional\[str]

The environment of the script\_name to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(property)%20environment">Link to this property</a>

namespace\_id: Optional\[str]

Namespace identifier tag.

maxLength32

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(property)%20namespace_id">Link to this property</a>

script\_name: Optional\[str]

The script where the Durable Object is defined, if it is external to this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(property)%20script_name">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2011">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindHyperdrive: …

</summary>

id: str

Identifier of the Hyperdrive connection to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2012%20%3E%20(property)%20id">Link to this property</a>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2012%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["hyperdrive"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2012%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2012">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindInherit: …

</summary>

name: str

The name of the inherited binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2013%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["inherit"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2013%20%3E%20(property)%20type">Link to this property</a>

old\_name: Optional\[str]

The old name of the inherited binding. If set, the binding will be renamed from <code>old_name</code> to <code>name</code> in the new version. If not set, the binding will keep the same name between versions.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2013%20%3E%20(property)%20old_name">Link to this property</a>

version\_id: Optional\[str]

Identifier for the version to inherit the binding from, which can be the version ID or the literal “latest” to inherit from the latest version. Defaults to inheriting the binding from the latest version.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2013%20%3E%20(property)%20version_id">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2013">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindImages: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2014%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["images"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2014%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2014">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindJson: …

</summary>

json: object

JSON data to use.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20json">Link to this property</a>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["json"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2015">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindKVNamespace: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2016%20%3E%20(property)%20name">Link to this property</a>

namespace\_id: str

Namespace identifier tag.

maxLength32

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2016%20%3E%20(property)%20namespace_id">Link to this property</a>

type: Literal\["kv\_namespace"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2016%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2016">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindMedia: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["media"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2017">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindMTLSCertificate: …

</summary>

certificate\_id: str

Identifier of the certificate to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2018%20%3E%20(property)%20certificate_id">Link to this property</a>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2018%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["mtls\_certificate"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2018%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2018">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindPlainText: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2019%20%3E%20(property)%20name">Link to this property</a>

text: str

The text value to use.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2019%20%3E%20(property)%20text">Link to this property</a>

type: Literal\["plain\_text"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2019%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2019">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindPipelines: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20name">Link to this property</a>

pipeline: str

Name of the Pipeline to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20pipeline">Link to this property</a>

type: Literal\["pipelines"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2020">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindK2: …

A K2 stream binding. Available only to accounts enabled for K2.

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2021%20%3E%20(property)%20name">Link to this property</a>

stream: str

ID of a K2 stream owned by the account deploying the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2021%20%3E%20(property)%20stream">Link to this property</a>

type: Literal\["k2"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2021%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2021">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindQueue: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2022%20%3E%20(property)%20name">Link to this property</a>

queue\_name: str

Name of the Queue to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2022%20%3E%20(property)%20queue_name">Link to this property</a>

type: Literal\["queue"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2022%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2022">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindRatelimit: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2023%20%3E%20(property)%20name">Link to this property</a>

namespace\_id: str

Identifier of the rate limit namespace to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2023%20%3E%20(property)%20namespace_id">Link to this property</a>

<details>

<summary>

simple: MetadataBindingWorkersBindingKindRatelimitSimple

The rate limit configuration.

</summary>

limit: float

The limit (requests per period).

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2023%20%3E%20(property)%20simple%20%3E%20(property)%20limit">Link to this property</a>

period: int

The period in seconds.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2023%20%3E%20(property)%20simple%20%3E%20(property)%20period">Link to this property</a>

mitigation\_timeout: Optional\[int]

Duration in seconds to apply the mitigation action after the rate limit is exceeded. Valid values are 0 (disabled), 10, or multiples of 60 up to 86400. Must be greater than or equal to the period when non-zero.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2023%20%3E%20(property)%20simple%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2023%20%3E%20(property)%20simple">Link to this property</a>

type: Literal\["ratelimit"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2023%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2023">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindR2Bucket: …

</summary>

bucket\_name: str

R2 bucket to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2024%20%3E%20(property)%20bucket_name">Link to this property</a>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2024%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["r2\_bucket"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2024%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

jurisdiction: Optional\[Literal\["eu", "fedramp", "fedramp-high", "us"]]

The <a href="https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions">jurisdiction</a> of the R2 bucket.

</summary>

One of the following:

"eu"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2024%20%3E%20(property)%20jurisdiction%20%3E%20(member)%200">Link to this property</a>

"fedramp"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2024%20%3E%20(property)%20jurisdiction%20%3E%20(member)%201">Link to this property</a>

"fedramp-high"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2024%20%3E%20(property)%20jurisdiction%20%3E%20(member)%202">Link to this property</a>

"us"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2024%20%3E%20(property)%20jurisdiction%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2024%20%3E%20(property)%20jurisdiction">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2024">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindSecretText: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2025%20%3E%20(property)%20name">Link to this property</a>

text: str

The secret value to use.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2025%20%3E%20(property)%20text">Link to this property</a>

type: Literal\["secret\_text"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2025%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2025">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindSendEmail: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2026%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["send\_email"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2026%20%3E%20(property)%20type">Link to this property</a>

allowed\_destination\_addresses: Optional\[Sequence\[str]]

List of allowed destination addresses.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2026%20%3E%20(property)%20allowed_destination_addresses">Link to this property</a>

allowed\_sender\_addresses: Optional\[Sequence\[str]]

List of allowed sender addresses.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2026%20%3E%20(property)%20allowed_sender_addresses">Link to this property</a>

destination\_address: Optional\[str]

Destination address for the email.

formatemail

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2026%20%3E%20(property)%20destination_address">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2026">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindService: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2027%20%3E%20(property)%20name">Link to this property</a>

service: str

Name of Worker to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2027%20%3E%20(property)%20service">Link to this property</a>

type: Literal\["service"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2027%20%3E%20(property)%20type">Link to this property</a>

entrypoint: Optional\[str]

Entrypoint to invoke on the target Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2027%20%3E%20(property)%20entrypoint">Link to this property</a>

environment: Optional\[str]

Optional environment if the Worker utilizes one.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2027%20%3E%20(property)%20environment">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2027">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindTextBlob: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2028%20%3E%20(property)%20name">Link to this property</a>

part: str

The name of the file containing the text content. Only accepted for <code>service worker syntax</code> Workers.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2028%20%3E%20(property)%20part">Link to this property</a>

Deprecatedtype: Literal\["text\_blob"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2028%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2028">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindVectorize: …

</summary>

index\_name: str

Name of the Vectorize index to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2029%20%3E%20(property)%20index_name">Link to this property</a>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2029%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["vectorize"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2029%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2029">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindVersionMetadata: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2030%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["version\_metadata"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2030%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2030">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindSecretsStoreSecret: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2031%20%3E%20(property)%20name">Link to this property</a>

secret\_name: str

Name of the secret in the store.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2031%20%3E%20(property)%20secret_name">Link to this property</a>

store\_id: str

ID of the store containing the secret.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2031%20%3E%20(property)%20store_id">Link to this property</a>

type: Literal\["secrets\_store\_secret"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2031%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2031">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindFlagship: …

</summary>

app\_id: str

ID of the Flagship app to bind to for feature flag evaluation.

maxLength128

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2032%20%3E%20(property)%20app_id">Link to this property</a>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2032%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["flagship"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2032%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2032">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindSecretKey: …

</summary>

algorithm: object

Algorithm-specific key parameters. <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm">Learn more</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20algorithm">Link to this property</a>

<details>

<summary>

format: Literal\["raw", "pkcs8", "spki", "jwk"]

Data format of the key. <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format">Learn more</a>.

</summary>

One of the following:

"raw"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20format%20%3E%20(member)%200">Link to this property</a>

"pkcs8"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20format%20%3E%20(member)%201">Link to this property</a>

"spki"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20format%20%3E%20(member)%202">Link to this property</a>

"jwk"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20format%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20format">Link to this property</a>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["secret\_key"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

usages: List\[Literal\["encrypt", "decrypt", "sign", 5 more]]

Allowed operations with the key. <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages">Learn more</a>.

</summary>

One of the following:

"encrypt"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20usages%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"decrypt"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20usages%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"sign"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20usages%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"verify"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20usages%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

"deriveKey"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20usages%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

"deriveBits"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20usages%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

"wrapKey"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20usages%20%3E%20(items)%20%3E%20(member)%206">Link to this property</a>

"unwrapKey"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20usages%20%3E%20(items)%20%3E%20(member)%207">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20usages">Link to this property</a>

key\_base64: Optional\[str]

Base64-encoded key data. Required if <code>format</code> is “raw”, “pkcs8”, or “spki”.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20key_base64">Link to this property</a>

key\_jwk: Optional\[object]

Key data in <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#json_web_key">JSON Web Key</a> format. Required if <code>format</code> is “jwk”.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033%20%3E%20(property)%20key_jwk">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2033">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindWorkflow: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2034%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["workflow"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2034%20%3E%20(property)%20type">Link to this property</a>

workflow\_name: str

Name of the Workflow to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2034%20%3E%20(property)%20workflow_name">Link to this property</a>

class\_name: Optional\[str]

Class name of the Workflow. Should only be provided if the Workflow belongs to this script.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2034%20%3E%20(property)%20class_name">Link to this property</a>

script\_name: Optional\[str]

Script name that contains the Workflow. If not provided, defaults to this script name.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2034%20%3E%20(property)%20script_name">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2034">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindWasmModule: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2035%20%3E%20(property)%20name">Link to this property</a>

part: str

The name of the file containing the WebAssembly module content. Only accepted for <code>service worker syntax</code> Workers.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2035%20%3E%20(property)%20part">Link to this property</a>

Deprecatedtype: Literal\["wasm\_module"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2035%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2035">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindVPCService: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2036%20%3E%20(property)%20name">Link to this property</a>

service\_id: str

Identifier of the VPC service to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2036%20%3E%20(property)%20service_id">Link to this property</a>

type: Literal\["vpc\_service"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2036%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2036">Link to this property</a>

<details>

<summary>

class MetadataBindingWorkersBindingKindVPCNetwork: …

</summary>

name: str

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2037%20%3E%20(property)%20name">Link to this property</a>

type: Literal\["vpc\_network"]

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2037%20%3E%20(property)%20type">Link to this property</a>

identity: Optional\[Literal\["runtime-email-alpha"]]

Enables Gateway identity for the binding. Requires network\_id to be “cf1:network” and cannot be combined with tunnel\_id.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2037%20%3E%20(property)%20identity">Link to this property</a>

network\_id: Optional\[str]

Identifier of the network to bind to. Only “cf1:network” is currently supported. Mutually exclusive with tunnel\_id.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2037%20%3E%20(property)%20network_id">Link to this property</a>

tunnel\_id: Optional\[str]

UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network\_id.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2037%20%3E%20(property)%20tunnel_id">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings%20%3E%20(items)%20%3E%20(variant)%2037">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20bindings">Link to this property</a>

body\_part: Optional\[str]

Name of the uploaded file that contains the script (e.g. the file adding a listener to the <code>fetch</code> event). Indicates a <code>service worker syntax</code> Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20body_part">Link to this property</a>

<details>

<summary>

cache\_options: Optional\[MetadataCacheOptions]

Global CacheW configuration for the Worker. When caching is on, the platform provisions a <code>cloudflare.app</code> zone for the Worker. A <code>type: worker</code> entry in the <code>exports</code> map can override this value for a single entrypoint.

</summary>

enabled: bool

Whether caching is enabled for this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20cache_options%20%3E%20(property)%20enabled">Link to this property</a>

cross\_version\_cache: Optional\[bool]

Whether cached responses are shared across Worker version uploads. This is independent of <code>enabled</code>. It can stay true while caching is off, so the preference survives turning caching off and back on.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20cache_options%20%3E%20(property)%20cross_version_cache">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20cache_options">Link to this property</a>

compatibility\_date: Optional\[str]

Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20compatibility_date">Link to this property</a>

compatibility\_flags: Optional\[Sequence\[str]]

Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a <code>compatibility_date</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20compatibility_flags">Link to this property</a>

<details>

<summary>

exports: Optional\[Dict\[str, MetadataExports]]

Declarative exports for the Worker. Worker entrypoint entries (<code>type: worker</code>) carry cache configuration for that entrypoint.

</summary>

One of the following:

<details>

<summary>

class MetadataExportsWorkersWorkerExport: …

A named Worker entrypoint export (<code>type: worker</code>). Worker entrypoints are always live (<code>state: created</code>) and carry no storage or lifecycle fields. The optional <code>cache</code> block overrides the Worker’s global <code>cache_options.enabled</code> for this entrypoint.

</summary>

type: Literal\["worker"]

Marks this entry as a Worker entrypoint export.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

cache: Optional\[MetadataExportsWorkersWorkerExportCache]

Cache override for this entrypoint. Overrides the Worker’s global <code>cache_options.enabled</code> for this entrypoint only.

</summary>

enabled: bool

Whether caching is enabled for this entrypoint.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20cache%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20cache">Link to this property</a>

state: Optional\[Literal\["created"]]

Live export. May be omitted; defaults to <code>created</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20state">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class MetadataExportsWorkersDurableObjectExport: …

A live Durable Object export (<code>state: created</code>, the default). The platform auto-provisions the namespace on first deploy, matches it on subsequent deploys, and never mutates or deletes it as a side effect of a code-only change. <code>storage</code> is required; <code>renamed_to</code>, <code>transferred_to</code> and <code>transfer_from</code> are not allowed on a live entry.

</summary>

<details>

<summary>

storage: Literal\["sqlite", "legacy-kv"]

Durable Object storage backend. <code>sqlite</code> is the recommended (and only) backend for new namespaces. <code>legacy-kv</code> is accepted only for a class whose namespace already exists as KV-backed; the <code>exports</code> flow never provisions a new <code>legacy-kv</code> namespace.

</summary>

One of the following:

"sqlite"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20storage%20%3E%20(member)%200">Link to this property</a>

"legacy-kv"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20storage%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20storage">Link to this property</a>

type: Literal\["durable-object"]

Marks this entry as a Durable Object export.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

container: Optional\[str]

Name of the container (declared in the upload’s <code>metadata.containers</code>) that backs this Durable Object. When set, the namespace is container-enabled. Valid only on live entries.

maxLength128

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20container">Link to this property</a>

state: Optional\[Literal\["created"]]

Live export. May be omitted; defaults to <code>created</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20state">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

class MetadataExportsWorkersDurableObjectDeletedExport: …

A <code>deleted</code> tombstone: retires the provisioned namespace for this class and all of its data. The class must be absent from the uploaded code and no other Worker in the account may bind to the namespace, otherwise the deploy is rejected. No other fields are allowed. Deletion is irreversible.

</summary>

state: Literal\["deleted"]

Tombstone that deletes the namespace.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20state">Link to this property</a>

type: Literal\["durable-object"]

Marks this entry as a Durable Object export.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

class MetadataExportsWorkersDurableObjectRenamedExport: …

A <code>renamed</code> tombstone: rewrites the provisioned namespace’s class name from this map key to <code>renamed_to</code>. The source class may stay in code during the rollout window (an info notice is emitted). <code>storage</code>, <code>transferred_to</code> and <code>transfer_from</code> are not allowed.

</summary>

renamed\_to: str

The destination class name. Must differ from the source class (the map key) and must be declared as a live (<code>created</code>) entry in the same <code>exports</code> map. Write-only: never present in GET responses.

maxLength128

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20renamed_to">Link to this property</a>

state: Literal\["renamed"]

Tombstone that renames the namespace’s class.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20state">Link to this property</a>

type: Literal\["durable-object"]

Marks this entry as a Durable Object export.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

class MetadataExportsWorkersDurableObjectTransferredExport: …

A <code>transferred</code> tombstone (source side of a two-phase transfer): hands ownership of the provisioned namespace to another script in the same account, named by <code>transferred_to</code>. The target must have already deployed a matching <code>expecting-transfer</code> entry. The source class may stay in code during the rollout window (an info notice is emitted). <code>storage</code>, <code>renamed_to</code> and <code>transfer_from</code> are not allowed.

</summary>

state: Literal\["transferred"]

Tombstone that transfers the namespace to another script.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20state">Link to this property</a>

transferred\_to: str

The destination script name. Must be in the same account and the same dispatch-namespace context (or both non-dispatch). Cross-dispatch-namespace transfers are rejected. Write-only: never present in GET responses.

maxLength128

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20transferred_to">Link to this property</a>

type: Literal\["durable-object"]

Marks this entry as a Durable Object export.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

class MetadataExportsWorkersDurableObjectExpectingTransferExport: …

The target side of a two-phase transfer (<code>state: expecting-transfer</code>). Declares that this script expects to receive a namespace for this class from the <code>transfer_from</code> script. This is a live entry, not a tombstone: bindings resolve through the source’s namespace until the source commits with a <code>transferred</code> tombstone. <code>storage</code> and <code>transfer_from</code> are required; <code>renamed_to</code> and <code>transferred_to</code> are not allowed.

</summary>

state: Literal\["expecting-transfer"]

Target side of a two-phase transfer.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20state">Link to this property</a>

<details>

<summary>

storage: Literal\["sqlite", "legacy-kv"]

Durable Object storage backend. <code>sqlite</code> is the recommended (and only) backend for new namespaces. <code>legacy-kv</code> is accepted only for a class whose namespace already exists as KV-backed; the <code>exports</code> flow never provisions a new <code>legacy-kv</code> namespace.

</summary>

One of the following:

"sqlite"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20storage%20%3E%20(member)%200">Link to this property</a>

"legacy-kv"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20storage%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20storage">Link to this property</a>

transfer\_from: str

The source script name to receive the namespace from. Must be in the same account and dispatch-namespace context. Present on reads for <code>expecting-transfer</code> entries.

maxLength128

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20transfer_from">Link to this property</a>

type: Literal\["durable-object"]

Marks this entry as a Durable Object export.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20type">Link to this property</a>

container: Optional\[str]

Name of the container (declared in the upload’s <code>metadata.containers</code>) that backs this Durable Object once the transfer settles. Valid only on live entries.

maxLength128

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20container">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports">Link to this property</a>

<details>

<summary>

exports\_reconciliation: Optional\[MetadataExportsReconciliation]

Summary of the declarative exports reconciliation that ran on this upload. Populated only when the uploaded metadata included an <code>exports</code> block. Durable Object entries drive reconciliation; <code>type: worker</code> entries do not contribute to this summary.

</summary>

created: Sequence\[str]

Class names for which a new namespace was provisioned.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20created">Link to this property</a>

deleted: Sequence\[str]

Class names whose namespace was deleted by a <code>deleted</code> tombstone.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20deleted">Link to this property</a>

<details>

<summary>

info: Iterable\[MetadataExportsReconciliationInfo]

Non-blocking info entries (stale tombstones, tombstone applied with class still in code). See <code>exports_reconciliation_info</code>.

</summary>

class\_: str

The class name the info entry is about.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20class">Link to this property</a>

message: str

Human-readable explanation.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

<details>

<summary>

scenario: Literal\["code\_class\_not\_in\_exports", "provisioned\_class\_missing\_from\_config", "config\_export\_not\_in\_code", 30 more]

Stable, machine-readable tag identifying which reconciliation scenario produced an error, warning, or info entry. Clients may branch on this value instead of parsing <code>message</code>.

</summary>

One of the following:

"code\_class\_not\_in\_exports"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%200">Link to this property</a>

"provisioned\_class\_missing\_from\_config"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%201">Link to this property</a>

"config\_export\_not\_in\_code"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%202">Link to this property</a>

"config\_references\_nonexistent\_class"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%203">Link to this property</a>

"orphaned\_provisioned\_namespace"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%204">Link to this property</a>

"storage\_type\_mismatch"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%205">Link to this property</a>

"free\_tier\_requires\_sqlite"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%206">Link to this property</a>

"invalid\_export"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%207">Link to this property</a>

"tombstone\_delete\_class\_still\_in\_code"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%208">Link to this property</a>

"tombstone\_delete\_blocked\_by\_external\_bindings"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%209">Link to this property</a>

"tombstone\_renamed\_to\_occupied"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2010">Link to this property</a>

"transferred\_pending\_not\_found"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2011">Link to this property</a>

"transferred\_target\_missing"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2012">Link to this property</a>

"transferred\_target\_mismatch"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2013">Link to this property</a>

"phase\_one\_transfer\_source\_missing"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2014">Link to this property</a>

"phase\_one\_transfer\_source\_namespace\_missing"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2015">Link to this property</a>

"phase\_one\_transfer\_target\_class\_provisioned"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2016">Link to this property</a>

"phase\_one\_transfer\_after\_commit\_mismatch"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2017">Link to this property</a>

"phase\_one\_transfer\_duplicate"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2018">Link to this property</a>

"phase\_one\_transfer\_target\_in\_dispatch\_namespace"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2019">Link to this property</a>

"phase\_one\_transfer\_source\_in\_dispatch\_namespace"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2020">Link to this property</a>

"transferred\_source\_in\_dispatch\_namespace"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2021">Link to this property</a>

"transferred\_target\_in\_dispatch\_namespace"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2022">Link to this property</a>

"container\_undeclared\_reference"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2023">Link to this property</a>

"container\_class\_not\_durable\_object"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2024">Link to this property</a>

"container\_wiring\_inconsistent"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2025">Link to this property</a>

"container\_multiple\_durable\_objects"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2026">Link to this property</a>

"transfer\_container\_parity\_mismatch"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2027">Link to this property</a>

"transfer\_container\_parity\_mismatch\_on\_commit"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2028">Link to this property</a>

"tombstone\_class\_still\_in\_code"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2029">Link to this property</a>

"stale\_tombstone"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2030">Link to this property</a>

"transfer\_receive\_already\_applied"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2031">Link to this property</a>

"transfer\_receive\_cleanup\_complete"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2032">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20scenario">Link to this property</a>

namespace\_id: Optional\[str]

The provisioned namespace the entry relates to, when applicable.

formatuuid

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20namespace_id">Link to this property</a>

referencing\_scripts: Optional\[Sequence\[str]]

Other Workers in the account that still bind to the affected class. Advisory: while non-empty the tombstone is not yet safe to remove — redeploy these Workers with bindings re-pointed first.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info%20%3E%20(items)%20%3E%20(property)%20referencing_scripts">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20info">Link to this property</a>

removable\_entries: Sequence\[str]

Source class names whose tombstone entry is now stale and safe to delete from <code>exports</code> (no remaining referencing scripts).

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20removable_entries">Link to this property</a>

<details>

<summary>

renamed: Iterable\[MetadataExportsReconciliationRenamed]

Applied <code>renamed</code> tombstones.

</summary>

from\_: str

The original (source) class name.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20renamed%20%3E%20(items)%20%3E%20(property)%20from">Link to this property</a>

to: str

The new class name (<code>renamed_to</code>).

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20renamed%20%3E%20(items)%20%3E%20(property)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20renamed">Link to this property</a>

<details>

<summary>

transfer\_pending: Iterable\[MetadataExportsReconciliationTransferPending]

Phase-1 transfer hints recorded on the target side.

</summary>

class\_: str

The target-side class name awaiting transfer.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20transfer_pending%20%3E%20(items)%20%3E%20(property)%20class">Link to this property</a>

from\_: str

The source script the namespace will be transferred from.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20transfer_pending%20%3E%20(items)%20%3E%20(property)%20from">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20transfer_pending">Link to this property</a>

<details>

<summary>

transferred: Iterable\[MetadataExportsReconciliationTransferred]

Committed <code>transferred</code> tombstones (phase-2).

</summary>

class\_: str

The source class name that was transferred.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20transferred%20%3E%20(items)%20%3E%20(property)%20class">Link to this property</a>

phase: Literal\["committed"]

The transfer phase. Currently always <code>committed</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20transferred%20%3E%20(items)%20%3E%20(property)%20phase">Link to this property</a>

to: str

The destination script that now owns the namespace.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20transferred%20%3E%20(items)%20%3E%20(property)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20transferred">Link to this property</a>

updated: Sequence\[str]

Class names whose provisioned namespace was mutated in place.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20updated">Link to this property</a>

<details>

<summary>

warnings: Iterable\[MetadataExportsReconciliationWarning]

Non-blocking warnings. See <code>exports_reconciliation_warning</code>.

</summary>

class\_: str

The class name the warning is about.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20class">Link to this property</a>

message: str

Human-readable explanation of the warning.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

<details>

<summary>

scenario: Literal\["code\_class\_not\_in\_exports", "provisioned\_class\_missing\_from\_config", "config\_export\_not\_in\_code", 30 more]

Stable, machine-readable tag identifying which reconciliation scenario produced an error, warning, or info entry. Clients may branch on this value instead of parsing <code>message</code>.

</summary>

One of the following:

"code\_class\_not\_in\_exports"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%200">Link to this property</a>

"provisioned\_class\_missing\_from\_config"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%201">Link to this property</a>

"config\_export\_not\_in\_code"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%202">Link to this property</a>

"config\_references\_nonexistent\_class"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%203">Link to this property</a>

"orphaned\_provisioned\_namespace"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%204">Link to this property</a>

"storage\_type\_mismatch"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%205">Link to this property</a>

"free\_tier\_requires\_sqlite"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%206">Link to this property</a>

"invalid\_export"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%207">Link to this property</a>

"tombstone\_delete\_class\_still\_in\_code"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%208">Link to this property</a>

"tombstone\_delete\_blocked\_by\_external\_bindings"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%209">Link to this property</a>

"tombstone\_renamed\_to\_occupied"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2010">Link to this property</a>

"transferred\_pending\_not\_found"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2011">Link to this property</a>

"transferred\_target\_missing"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2012">Link to this property</a>

"transferred\_target\_mismatch"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2013">Link to this property</a>

"phase\_one\_transfer\_source\_missing"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2014">Link to this property</a>

"phase\_one\_transfer\_source\_namespace\_missing"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2015">Link to this property</a>

"phase\_one\_transfer\_target\_class\_provisioned"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2016">Link to this property</a>

"phase\_one\_transfer\_after\_commit\_mismatch"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2017">Link to this property</a>

"phase\_one\_transfer\_duplicate"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2018">Link to this property</a>

"phase\_one\_transfer\_target\_in\_dispatch\_namespace"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2019">Link to this property</a>

"phase\_one\_transfer\_source\_in\_dispatch\_namespace"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2020">Link to this property</a>

"transferred\_source\_in\_dispatch\_namespace"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2021">Link to this property</a>

"transferred\_target\_in\_dispatch\_namespace"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2022">Link to this property</a>

"container\_undeclared\_reference"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2023">Link to this property</a>

"container\_class\_not\_durable\_object"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2024">Link to this property</a>

"container\_wiring\_inconsistent"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2025">Link to this property</a>

"container\_multiple\_durable\_objects"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2026">Link to this property</a>

"transfer\_container\_parity\_mismatch"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2027">Link to this property</a>

"transfer\_container\_parity\_mismatch\_on\_commit"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2028">Link to this property</a>

"tombstone\_class\_still\_in\_code"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2029">Link to this property</a>

"stale\_tombstone"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2030">Link to this property</a>

"transfer\_receive\_already\_applied"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2031">Link to this property</a>

"transfer\_receive\_cleanup\_complete"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario%20%3E%20(member)%2032">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20scenario">Link to this property</a>

namespace\_id: Optional\[str]

The provisioned namespace the warning relates to, when applicable.

formatuuid

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings%20%3E%20(items)%20%3E%20(property)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation%20%3E%20(property)%20warnings">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20exports_reconciliation">Link to this property</a>

keep\_assets: Optional\[bool]

Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token. An explicit <code>assets</code> upload takes precedence over <code>keep_assets</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20keep_assets">Link to this property</a>

keep\_bindings: Optional\[Sequence\[str]]

List of binding types to keep from previous\_upload.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20keep_bindings">Link to this property</a>

<details>

<summary>

limits: Optional\[MetadataLimits]

Limits to apply for this Worker.

</summary>

cpu\_ms: Optional\[int]

The amount of CPU time this Worker can use in milliseconds.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20limits%20%3E%20(property)%20cpu_ms">Link to this property</a>

subrequests: Optional\[int]

The number of subrequests this Worker can make per request.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20limits%20%3E%20(property)%20subrequests">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20limits">Link to this property</a>

logpush: Optional\[bool]

Whether Logpush is turned on for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20logpush">Link to this property</a>

main\_module: Optional\[str]

Name of the uploaded file that contains the main module (e.g. the file exporting a <code>fetch</code> handler). Indicates a <code>module syntax</code> Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20main_module">Link to this property</a>

<details>

<summary>

migrations: Optional\[MetadataMigrations]

Migrations to apply for Durable Objects associated with this Worker.

</summary>

One of the following:

<details>

<summary>

class SingleStepMigration: …

A single set of migrations to apply.

</summary>

deleted\_classes: Optional\[List\[str]]

A list of classes to delete Durable Object namespaces from.

<a href="#(resource)%20workers%20%3E%20(model)%20single_step_migration%20%3E%20(schema)%20%3E%20(property)%20deleted_classes">Link to this property</a>

new\_classes: Optional\[List\[str]]

A list of classes to create Durable Object namespaces from.

<a href="#(resource)%20workers%20%3E%20(model)%20single_step_migration%20%3E%20(schema)%20%3E%20(property)%20new_classes">Link to this property</a>

new\_sqlite\_classes: Optional\[List\[str]]

A list of classes to create Durable Object namespaces with SQLite from.

<a href="#(resource)%20workers%20%3E%20(model)%20single_step_migration%20%3E%20(schema)%20%3E%20(property)%20new_sqlite_classes">Link to this property</a>

new\_tag: Optional\[str]

Tag to set as the latest migration tag.

<a href="#(resource)%20workers%20%3E%20(model)%20single_step_migration%20%3E%20(schema)%20%3E%20(property)%20new_tag">Link to this property</a>

old\_tag: Optional\[str]

Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.

<a href="#(resource)%20workers%20%3E%20(model)%20single_step_migration%20%3E%20(schema)%20%3E%20(property)%20old_tag">Link to this property</a>

<details>

<summary>

renamed\_classes: Optional\[List\[RenamedClass]]

A list of classes with Durable Object namespaces that were renamed.

</summary>

from\_: Optional\[str]

<a href="#(resource)%20workers%20%3E%20(model)%20single_step_migration%20%3E%20(schema)%20%3E%20(property)%20renamed_classes%20%3E%20(items)%20%3E%20(property)%20from">Link to this property</a>

to: Optional\[str]

<a href="#(resource)%20workers%20%3E%20(model)%20single_step_migration%20%3E%20(schema)%20%3E%20(property)%20renamed_classes%20%3E%20(items)%20%3E%20(property)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers%20%3E%20(model)%20single_step_migration%20%3E%20(schema)%20%3E%20(property)%20renamed_classes">Link to this property</a>

<details>

<summary>

transferred\_classes: Optional\[List\[TransferredClass]]

A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.

</summary>

from\_: Optional\[str]

<a href="#(resource)%20workers%20%3E%20(model)%20single_step_migration%20%3E%20(schema)%20%3E%20(property)%20transferred_classes%20%3E%20(items)%20%3E%20(property)%20from">Link to this property</a>

from\_script: Optional\[str]

<a href="#(resource)%20workers%20%3E%20(model)%20single_step_migration%20%3E%20(schema)%20%3E%20(property)%20transferred_classes%20%3E%20(items)%20%3E%20(property)%20from_script">Link to this property</a>

to: Optional\[str]

<a href="#(resource)%20workers%20%3E%20(model)%20single_step_migration%20%3E%20(schema)%20%3E%20(property)%20transferred_classes%20%3E%20(items)%20%3E%20(property)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers%20%3E%20(model)%20single_step_migration%20%3E%20(schema)%20%3E%20(property)%20transferred_classes">Link to this property</a>

</details>

<a href="#(resource)%20workers%20%3E%20(model)%20single_step_migration%20%3E%20(schema)">Link to this property</a>

<details>

<summary>

class MetadataMigrationsWorkersMultipleStepMigrations: …

</summary>

new\_tag: Optional\[str]

Tag to set as the latest migration tag.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20migrations%20%3E%20(variant)%201%20%3E%20(property)%20new_tag">Link to this property</a>

old\_tag: Optional\[str]

Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20migrations%20%3E%20(variant)%201%20%3E%20(property)%20old_tag">Link to this property</a>

<details>

<summary>

steps: Optional\[Iterable\[<a href="https://developers.cloudflare.com/api/python/resources/workers#(resource)%20workers%20%3E%20(model)%20migration_step%20%3E%20(schema)">MigrationStepParam</a>]]

Migrations to apply in order.

</summary>

deleted\_classes: Optional\[List\[str]]

A list of classes to delete Durable Object namespaces from.

<a href="#(resource)%20workers%20%3E%20(model)%20migration_step%20%3E%20(schema)%20%3E%20(property)%20deleted_classes">Link to this property</a>

new\_classes: Optional\[List\[str]]

A list of classes to create Durable Object namespaces from.

<a href="#(resource)%20workers%20%3E%20(model)%20migration_step%20%3E%20(schema)%20%3E%20(property)%20new_classes">Link to this property</a>

new\_sqlite\_classes: Optional\[List\[str]]

A list of classes to create Durable Object namespaces with SQLite from.

<a href="#(resource)%20workers%20%3E%20(model)%20migration_step%20%3E%20(schema)%20%3E%20(property)%20new_sqlite_classes">Link to this property</a>

<details>

<summary>

renamed\_classes: Optional\[List\[RenamedClass]]

A list of classes with Durable Object namespaces that were renamed.

</summary>

from\_: Optional\[str]

<a href="#(resource)%20workers%20%3E%20(model)%20migration_step%20%3E%20(schema)%20%3E%20(property)%20renamed_classes%20%3E%20(items)%20%3E%20(property)%20from">Link to this property</a>

to: Optional\[str]

<a href="#(resource)%20workers%20%3E%20(model)%20migration_step%20%3E%20(schema)%20%3E%20(property)%20renamed_classes%20%3E%20(items)%20%3E%20(property)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers%20%3E%20(model)%20migration_step%20%3E%20(schema)%20%3E%20(property)%20renamed_classes">Link to this property</a>

<details>

<summary>

transferred\_classes: Optional\[List\[TransferredClass]]

A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.

</summary>

from\_: Optional\[str]

<a href="#(resource)%20workers%20%3E%20(model)%20migration_step%20%3E%20(schema)%20%3E%20(property)%20transferred_classes%20%3E%20(items)%20%3E%20(property)%20from">Link to this property</a>

from\_script: Optional\[str]

<a href="#(resource)%20workers%20%3E%20(model)%20migration_step%20%3E%20(schema)%20%3E%20(property)%20transferred_classes%20%3E%20(items)%20%3E%20(property)%20from_script">Link to this property</a>

to: Optional\[str]

<a href="#(resource)%20workers%20%3E%20(model)%20migration_step%20%3E%20(schema)%20%3E%20(property)%20transferred_classes%20%3E%20(items)%20%3E%20(property)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers%20%3E%20(model)%20migration_step%20%3E%20(schema)%20%3E%20(property)%20transferred_classes">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20migrations%20%3E%20(variant)%201%20%3E%20(property)%20steps">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20migrations%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20migrations">Link to this property</a>

<details>

<summary>

observability: Optional\[MetadataObservability]

Observability settings for the Worker.

</summary>

enabled: bool

Whether observability is enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20enabled">Link to this property</a>

head\_sampling\_rate: Optional\[float]

The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20head_sampling_rate">Link to this property</a>

<details>

<summary>

issues: Optional\[MetadataObservabilityIssues]

Real-time Issues settings for the Worker.

</summary>

enabled: Optional\[bool]

Whether real-time Issues are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20issues%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20issues">Link to this property</a>

<details>

<summary>

logs: Optional\[MetadataObservabilityLogs]

Log settings for the Worker.

</summary>

enabled: bool

Whether logs are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20logs%20%3E%20(property)%20enabled">Link to this property</a>

invocation\_logs: bool

Whether <a href="https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs">invocation logs</a> are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20logs%20%3E%20(property)%20invocation_logs">Link to this property</a>

destinations: Optional\[Sequence\[str]]

A list of destinations where logs will be exported to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20logs%20%3E%20(property)%20destinations">Link to this property</a>

head\_sampling\_rate: Optional\[float]

The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20logs%20%3E%20(property)%20head_sampling_rate">Link to this property</a>

persist: Optional\[bool]

Whether log persistence is enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20logs%20%3E%20(property)%20persist">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20logs">Link to this property</a>

redact\_query\_string: Optional\[bool]

Whether query strings are removed from request URLs in logs and traces.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20redact_query_string">Link to this property</a>

<details>

<summary>

traces: Optional\[MetadataObservabilityTraces]

Trace settings for the Worker.

</summary>

destinations: Optional\[Sequence\[str]]

A list of destinations where traces will be exported to.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces%20%3E%20(property)%20destinations">Link to this property</a>

enabled: Optional\[bool]

Whether traces are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces%20%3E%20(property)%20enabled">Link to this property</a>

head\_sampling\_rate: Optional\[float]

The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces%20%3E%20(property)%20head_sampling_rate">Link to this property</a>

persist: Optional\[bool]

Whether trace persistence is enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces%20%3E%20(property)%20persist">Link to this property</a>

<details>

<summary>

propagation\_policy: Optional\[Literal\["authenticated", "accept"]]

Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. “authenticated” honors inbound trace context only when accompanied by a valid trace auth token. “accept” unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account.

</summary>

One of the following:

"authenticated"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces%20%3E%20(property)%20propagation_policy%20%3E%20(member)%200">Link to this property</a>

"accept"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces%20%3E%20(property)%20propagation_policy%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces%20%3E%20(property)%20propagation_policy">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20observability">Link to this property</a>

<details>

<summary>

package\_dependencies: Optional\[Iterable\[MetadataPackageDependency]]

The list of npm packages that were installed and used when this Worker version was built.

</summary>

installed\_version: str

The exact version that was resolved and installed by the package manager.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20package_dependencies%20%3E%20(items)%20%3E%20(property)%20installedVersion">Link to this property</a>

name: str

The npm package name.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20package_dependencies%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

package\_json\_version: str

The version constraint as written in package.json.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20package_dependencies%20%3E%20(items)%20%3E%20(property)%20packageJsonVersion">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20package_dependencies">Link to this property</a>

<details>

<summary>

placement: Optional\[MetadataPlacement]

Configuration for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.

</summary>

One of the following:

<details>

<summary>

class MetadataPlacementUnionMember0: …

</summary>

mode: Literal\["smart"]

Enables <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%200%20%3E%20(property)%20mode">Link to this property</a>

last\_analyzed\_at: Optional\[Union\[str, datetime]]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%200%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%200%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%200%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%200%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%200%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class MetadataPlacementUnionMember1: …

</summary>

region: str

Cloud region for targeted placement in format ‘provider:region’.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%201%20%3E%20(property)%20region">Link to this property</a>

last\_analyzed\_at: Optional\[Union\[str, datetime]]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%201%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%201%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%201%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%201%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%201%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

class MetadataPlacementUnionMember2: …

</summary>

hostname: str

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%202%20%3E%20(property)%20hostname">Link to this property</a>

last\_analyzed\_at: Optional\[Union\[str, datetime]]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%202%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%202%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%202%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%202%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%202%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

class MetadataPlacementUnionMember3: …

</summary>

host: str

TCP host and port for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%203%20%3E%20(property)%20host">Link to this property</a>

last\_analyzed\_at: Optional\[Union\[str, datetime]]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%203%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%203%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%203%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%203%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%203%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

class MetadataPlacementUnionMember4: …

</summary>

mode: Literal\["targeted"]

Targeted placement mode.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204%20%3E%20(property)%20mode">Link to this property</a>

region: str

Cloud region for targeted placement in format ‘provider:region’.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204%20%3E%20(property)%20region">Link to this property</a>

last\_analyzed\_at: Optional\[Union\[str, datetime]]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

class MetadataPlacementUnionMember5: …

</summary>

hostname: str

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205%20%3E%20(property)%20hostname">Link to this property</a>

mode: Literal\["targeted"]

Targeted placement mode.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205%20%3E%20(property)%20mode">Link to this property</a>

last\_analyzed\_at: Optional\[Union\[str, datetime]]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205">Link to this property</a>

<details>

<summary>

class MetadataPlacementUnionMember6: …

</summary>

host: str

TCP host and port for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206%20%3E%20(property)%20host">Link to this property</a>

mode: Literal\["targeted"]

Targeted placement mode.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206%20%3E%20(property)%20mode">Link to this property</a>

last\_analyzed\_at: Optional\[Union\[str, datetime]]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

class MetadataPlacementUnionMember7: …

</summary>

mode: Literal\["targeted"]

Targeted placement mode.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20mode">Link to this property</a>

<details>

<summary>

target: Iterable\[MetadataPlacementUnionMember7Target]

Array of placement targets (currently limited to single target).

</summary>

One of the following:

<details>

<summary>

class MetadataPlacementUnionMember7TargetRegion: …

</summary>

region: str

Cloud region in format ‘provider:region’.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20target%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20region">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20target%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class MetadataPlacementUnionMember7TargetHostname: …

</summary>

hostname: str

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20target%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20hostname">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20target%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

class MetadataPlacementUnionMember7TargetHost: …

</summary>

host: str

TCP host:port for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20target%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20host">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20target%20%3E%20(items)%20%3E%20(variant)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20target">Link to this property</a>

last\_analyzed\_at: Optional\[Union\[str, datetime]]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20placement">Link to this property</a>

tags: Optional\[Sequence\[str]]

List of strings to use as tags for this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20tags">Link to this property</a>

<details>

<summary>

tail\_consumers: Optional\[Iterable\[<a href="https://developers.cloudflare.com/api/python/resources/workers#(resource)%20workers.scripts.tail%20%3E%20(model)%20consumer_script%20%3E%20(schema)">ConsumerScriptParam</a>]]

List of Workers that will consume logs from the attached Worker.

</summary>

service: str

Name of Worker that is to be the consumer.

<a href="#(resource)%20workers.scripts.tail%20%3E%20(model)%20consumer_script%20%3E%20(schema)%20%3E%20(property)%20service">Link to this property</a>

environment: Optional\[str]

Optional environment if the Worker utilizes one.

<a href="#(resource)%20workers.scripts.tail%20%3E%20(model)%20consumer_script%20%3E%20(schema)%20%3E%20(property)%20environment">Link to this property</a>

namespace: Optional\[str]

Optional dispatch namespace the script belongs to.

<a href="#(resource)%20workers.scripts.tail%20%3E%20(model)%20consumer_script%20%3E%20(schema)%20%3E%20(property)%20namespace">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20tail_consumers">Link to this property</a>

<details>

<summary>

usage\_model: Optional\[Literal\["standard", "bundled", "unbound"]]

Usage model for the Worker invocations.

</summary>

One of the following:

"standard"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20usage_model%20%3E%20(member)%200">Link to this property</a>

"bundled"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20usage_model%20%3E%20(member)%201">Link to this property</a>

"unbound"

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20usage_model%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)%20%3E%20(property)%20usage_model">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20metadata%20%3E%20(schema)>)

bindings\_inherit: Optional\[Literal\["strict"]]

When set to “strict”, the upload will fail if any `inherit` type bindings cannot be resolved against the previous version of the Worker. Without this, unresolvable inherit bindings are silently dropped.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20bindings_inherit%20%3E%20(schema)>)

files: Optional\[Sequence\[FileTypes]]

An array of modules (often JavaScript files) comprising a Worker script. At least one module must be present and referenced in the metadata as `main_module` or `body_part` by filename.  
Possible Content-Type(s) are: `application/javascript+module`, `text/javascript+module`, `application/javascript`, `text/javascript`, `text/x-python`, `text/x-python-requirement`, `application/wasm`, `text/plain`, `application/octet-stream`, `application/source-map`.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20files%20%3E%20(schema)>)

##### ReturnsExpand Collapse

<details>

<summary>

class ScriptUpdateResponse: …

</summary>

startup\_time\_ms: int

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20startup_time_ms">Link to this property</a>

id: Optional\[str]

The name used to identify the script.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

cache\_options: Optional\[CacheOptions]

Global CacheW configuration for the Worker. When caching is on, the platform provisions a <code>cloudflare.app</code> zone for the Worker. A <code>type: worker</code> entry in the <code>exports</code> map can override this value for a single entrypoint.

</summary>

enabled: bool

Whether caching is enabled for this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_options%20%3E%20(property)%20enabled">Link to this property</a>

cross\_version\_cache: Optional\[bool]

Whether cached responses are shared across Worker version uploads. This is independent of <code>enabled</code>. It can stay true while caching is off, so the preference survives turning caching off and back on.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_options%20%3E%20(property)%20cross_version_cache">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20cache_options">Link to this property</a>

compatibility\_date: Optional\[str]

Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20compatibility_date">Link to this property</a>

compatibility\_flags: Optional\[List\[str]]

Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a <code>compatibility_date</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20compatibility_flags">Link to this property</a>

created\_on: Optional\[datetime]

When the script was created.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

entry\_point: Optional\[str]

The entry point for the script.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20entry_point">Link to this property</a>

etag: Optional\[str]

Hashed script content, can be used in a If-None-Match header when updating.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20etag">Link to this property</a>

<details>

<summary>

exports: Optional\[Dict\[str, Exports]]

Declarative exports for the Worker’s most recent version, including Durable Object classes (with their <code>storage</code> backend) and named Worker entrypoints. Tombstoned lifecycle entries are omitted, so only live exports (<code>created</code> and <code>expecting-transfer</code>) are returned.

</summary>

One of the following:

<details>

<summary>

class ExportsWorkersWorkerExport: …

A named Worker entrypoint export (<code>type: worker</code>). Worker entrypoints are always live (<code>state: created</code>) and carry no storage or lifecycle fields. The optional <code>cache</code> block overrides the Worker’s global <code>cache_options.enabled</code> for this entrypoint.

</summary>

type: Literal\["worker"]

Marks this entry as a Worker entrypoint export.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

cache: Optional\[ExportsWorkersWorkerExportCache]

Cache override for this entrypoint. Overrides the Worker’s global <code>cache_options.enabled</code> for this entrypoint only.

</summary>

enabled: bool

Whether caching is enabled for this entrypoint.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20cache%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20cache">Link to this property</a>

state: Optional\[Literal\["created"]]

Live export. May be omitted; defaults to <code>created</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20state">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class ExportsWorkersDurableObjectExport: …

A live Durable Object export (<code>state: created</code>, the default). The platform auto-provisions the namespace on first deploy, matches it on subsequent deploys, and never mutates or deletes it as a side effect of a code-only change. <code>storage</code> is required; <code>renamed_to</code>, <code>transferred_to</code> and <code>transfer_from</code> are not allowed on a live entry.

</summary>

<details>

<summary>

storage: Literal\["sqlite", "legacy-kv"]

Durable Object storage backend. <code>sqlite</code> is the recommended (and only) backend for new namespaces. <code>legacy-kv</code> is accepted only for a class whose namespace already exists as KV-backed; the <code>exports</code> flow never provisions a new <code>legacy-kv</code> namespace.

</summary>

One of the following:

"sqlite"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20storage%20%3E%20(member)%200">Link to this property</a>

"legacy-kv"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20storage%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20storage">Link to this property</a>

type: Literal\["durable-object"]

Marks this entry as a Durable Object export.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

container: Optional\[str]

Name of the container (declared in the upload’s <code>metadata.containers</code>) that backs this Durable Object. When set, the namespace is container-enabled. Valid only on live entries.

maxLength128

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20container">Link to this property</a>

state: Optional\[Literal\["created"]]

Live export. May be omitted; defaults to <code>created</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20state">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

class ExportsWorkersDurableObjectDeletedExport: …

A <code>deleted</code> tombstone: retires the provisioned namespace for this class and all of its data. The class must be absent from the uploaded code and no other Worker in the account may bind to the namespace, otherwise the deploy is rejected. No other fields are allowed. Deletion is irreversible.

</summary>

state: Literal\["deleted"]

Tombstone that deletes the namespace.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20state">Link to this property</a>

type: Literal\["durable-object"]

Marks this entry as a Durable Object export.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

class ExportsWorkersDurableObjectRenamedExport: …

A <code>renamed</code> tombstone: rewrites the provisioned namespace’s class name from this map key to <code>renamed_to</code>. The source class may stay in code during the rollout window (an info notice is emitted). <code>storage</code>, <code>transferred_to</code> and <code>transfer_from</code> are not allowed.

</summary>

renamed\_to: str

The destination class name. Must differ from the source class (the map key) and must be declared as a live (<code>created</code>) entry in the same <code>exports</code> map. Write-only: never present in GET responses.

maxLength128

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20renamed_to">Link to this property</a>

state: Literal\["renamed"]

Tombstone that renames the namespace’s class.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20state">Link to this property</a>

type: Literal\["durable-object"]

Marks this entry as a Durable Object export.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

class ExportsWorkersDurableObjectTransferredExport: …

A <code>transferred</code> tombstone (source side of a two-phase transfer): hands ownership of the provisioned namespace to another script in the same account, named by <code>transferred_to</code>. The target must have already deployed a matching <code>expecting-transfer</code> entry. The source class may stay in code during the rollout window (an info notice is emitted). <code>storage</code>, <code>renamed_to</code> and <code>transfer_from</code> are not allowed.

</summary>

state: Literal\["transferred"]

Tombstone that transfers the namespace to another script.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20state">Link to this property</a>

transferred\_to: str

The destination script name. Must be in the same account and the same dispatch-namespace context (or both non-dispatch). Cross-dispatch-namespace transfers are rejected. Write-only: never present in GET responses.

maxLength128

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20transferred_to">Link to this property</a>

type: Literal\["durable-object"]

Marks this entry as a Durable Object export.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

class ExportsWorkersDurableObjectExpectingTransferExport: …

The target side of a two-phase transfer (<code>state: expecting-transfer</code>). Declares that this script expects to receive a namespace for this class from the <code>transfer_from</code> script. This is a live entry, not a tombstone: bindings resolve through the source’s namespace until the source commits with a <code>transferred</code> tombstone. <code>storage</code> and <code>transfer_from</code> are required; <code>renamed_to</code> and <code>transferred_to</code> are not allowed.

</summary>

state: Literal\["expecting-transfer"]

Target side of a two-phase transfer.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20state">Link to this property</a>

<details>

<summary>

storage: Literal\["sqlite", "legacy-kv"]

Durable Object storage backend. <code>sqlite</code> is the recommended (and only) backend for new namespaces. <code>legacy-kv</code> is accepted only for a class whose namespace already exists as KV-backed; the <code>exports</code> flow never provisions a new <code>legacy-kv</code> namespace.

</summary>

One of the following:

"sqlite"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20storage%20%3E%20(member)%200">Link to this property</a>

"legacy-kv"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20storage%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20storage">Link to this property</a>

transfer\_from: str

The source script name to receive the namespace from. Must be in the same account and dispatch-namespace context. Present on reads for <code>expecting-transfer</code> entries.

maxLength128

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20transfer_from">Link to this property</a>

type: Literal\["durable-object"]

Marks this entry as a Durable Object export.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20type">Link to this property</a>

container: Optional\[str]

Name of the container (declared in the upload’s <code>metadata.containers</code>) that backs this Durable Object once the transfer settles. Valid only on live entries.

maxLength128

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(property)%20container">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports%20%3E%20(items)%20%3E%20(variant)%205">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20exports">Link to this property</a>

handlers: Optional\[List\[str]]

The names of handlers exported as part of the default export.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20handlers">Link to this property</a>

has\_assets: Optional\[bool]

Whether a Worker contains assets.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20has_assets">Link to this property</a>

has\_modules: Optional\[bool]

Whether a Worker contains modules.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20has_modules">Link to this property</a>

last\_deployed\_from: Optional\[str]

The client most recently used to deploy this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20last_deployed_from">Link to this property</a>

logpush: Optional\[bool]

Whether Logpush is turned on for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20logpush">Link to this property</a>

migration\_tag: Optional\[str]

The tag of the Durable Object migration that was most recently applied for this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20migration_tag">Link to this property</a>

modified\_on: Optional\[datetime]

When the script was last modified.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

<details>

<summary>

named\_handlers: Optional\[List\[NamedHandler]]

Named exports, such as Durable Object class implementations and named entrypoints.

</summary>

handlers: Optional\[List\[str]]

The names of handlers exported as part of the named export.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20named_handlers%20%3E%20(items)%20%3E%20(property)%20handlers">Link to this property</a>

name: Optional\[str]

The name of the export.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20named_handlers%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20named_handlers">Link to this property</a>

<details>

<summary>

observability: Optional\[Observability]

Observability settings for the Worker.

</summary>

enabled: bool

Whether observability is enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20enabled">Link to this property</a>

head\_sampling\_rate: Optional\[float]

The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20head_sampling_rate">Link to this property</a>

<details>

<summary>

issues: Optional\[ObservabilityIssues]

Real-time Issues settings for the Worker.

</summary>

enabled: Optional\[bool]

Whether real-time Issues are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20issues%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20issues">Link to this property</a>

<details>

<summary>

logs: Optional\[ObservabilityLogs]

Log settings for the Worker.

</summary>

enabled: bool

Whether logs are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20logs%20%3E%20(property)%20enabled">Link to this property</a>

invocation\_logs: bool

Whether <a href="https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs">invocation logs</a> are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20logs%20%3E%20(property)%20invocation_logs">Link to this property</a>

destinations: Optional\[List\[str]]

A list of destinations where logs will be exported to.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20logs%20%3E%20(property)%20destinations">Link to this property</a>

head\_sampling\_rate: Optional\[float]

The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20logs%20%3E%20(property)%20head_sampling_rate">Link to this property</a>

persist: Optional\[bool]

Whether log persistence is enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20logs%20%3E%20(property)%20persist">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20logs">Link to this property</a>

redact\_query\_string: Optional\[bool]

Whether query strings are removed from request URLs in logs and traces.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20redact_query_string">Link to this property</a>

<details>

<summary>

traces: Optional\[ObservabilityTraces]

Trace settings for the Worker.

</summary>

destinations: Optional\[List\[str]]

A list of destinations where traces will be exported to.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces%20%3E%20(property)%20destinations">Link to this property</a>

enabled: Optional\[bool]

Whether traces are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces%20%3E%20(property)%20enabled">Link to this property</a>

head\_sampling\_rate: Optional\[float]

The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces%20%3E%20(property)%20head_sampling_rate">Link to this property</a>

persist: Optional\[bool]

Whether trace persistence is enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces%20%3E%20(property)%20persist">Link to this property</a>

<details>

<summary>

propagation\_policy: Optional\[Literal\["authenticated", "accept"]]

Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. “authenticated” honors inbound trace context only when accompanied by a valid trace auth token. “accept” unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account.

</summary>

One of the following:

"authenticated"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces%20%3E%20(property)%20propagation_policy%20%3E%20(member)%200">Link to this property</a>

"accept"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces%20%3E%20(property)%20propagation_policy%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces%20%3E%20(property)%20propagation_policy">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability%20%3E%20(property)%20traces">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20observability">Link to this property</a>

<details>

<summary>

placement: Optional\[Placement]

Configuration for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.

</summary>

One of the following:

<details>

<summary>

class PlacementUnionMember0: …

</summary>

mode: Literal\["smart"]

Enables <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%200%20%3E%20(property)%20mode">Link to this property</a>

last\_analyzed\_at: Optional\[datetime]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%200%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%200%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%200%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%200%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%200%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class PlacementUnionMember1: …

</summary>

region: str

Cloud region for targeted placement in format ‘provider:region’.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%201%20%3E%20(property)%20region">Link to this property</a>

last\_analyzed\_at: Optional\[datetime]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%201%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%201%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%201%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%201%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%201%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

class PlacementUnionMember2: …

</summary>

hostname: str

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%202%20%3E%20(property)%20hostname">Link to this property</a>

last\_analyzed\_at: Optional\[datetime]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%202%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%202%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%202%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%202%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%202%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

class PlacementUnionMember3: …

</summary>

host: str

TCP host and port for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%203%20%3E%20(property)%20host">Link to this property</a>

last\_analyzed\_at: Optional\[datetime]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%203%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%203%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%203%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%203%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%203%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

class PlacementUnionMember4: …

</summary>

mode: Literal\["targeted"]

Targeted placement mode.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204%20%3E%20(property)%20mode">Link to this property</a>

region: str

Cloud region for targeted placement in format ‘provider:region’.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204%20%3E%20(property)%20region">Link to this property</a>

last\_analyzed\_at: Optional\[datetime]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

class PlacementUnionMember5: …

</summary>

hostname: str

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205%20%3E%20(property)%20hostname">Link to this property</a>

mode: Literal\["targeted"]

Targeted placement mode.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205%20%3E%20(property)%20mode">Link to this property</a>

last\_analyzed\_at: Optional\[datetime]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%205">Link to this property</a>

<details>

<summary>

class PlacementUnionMember6: …

</summary>

host: str

TCP host and port for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206%20%3E%20(property)%20host">Link to this property</a>

mode: Literal\["targeted"]

Targeted placement mode.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206%20%3E%20(property)%20mode">Link to this property</a>

last\_analyzed\_at: Optional\[datetime]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

class PlacementUnionMember7: …

</summary>

mode: Literal\["targeted"]

Targeted placement mode.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20mode">Link to this property</a>

<details>

<summary>

target: List\[PlacementUnionMember7Target]

Array of placement targets (currently limited to single target).

</summary>

One of the following:

<details>

<summary>

class PlacementUnionMember7TargetRegion: …

</summary>

region: str

Cloud region in format ‘provider:region’.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20target%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20region">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20target%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class PlacementUnionMember7TargetHostname: …

</summary>

hostname: str

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20target%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20hostname">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20target%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

class PlacementUnionMember7TargetHost: …

</summary>

host: str

TCP host:port for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20target%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20host">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20target%20%3E%20(items)%20%3E%20(variant)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20target">Link to this property</a>

last\_analyzed\_at: Optional\[datetime]

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

formatdate-time

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20last_analyzed_at">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement%20%3E%20(variant)%207">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement">Link to this property</a>

<details>

<summary>

Deprecatedplacement\_mode: Optional\[Literal\["smart", "targeted"]]

</summary>

One of the following:

"smart"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement_mode%20%3E%20(member)%200">Link to this property</a>

"targeted"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement_mode%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement_mode">Link to this property</a>

<details>

<summary>

Deprecatedplacement\_status: Optional\[Literal\["SUCCESS", "UNSUPPORTED\_APPLICATION", "INSUFFICIENT\_INVOCATIONS"]]

</summary>

One of the following:

"SUCCESS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement_status%20%3E%20(member)%200">Link to this property</a>

"UNSUPPORTED\_APPLICATION"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement_status%20%3E%20(member)%201">Link to this property</a>

"INSUFFICIENT\_INVOCATIONS"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement_status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20placement_status">Link to this property</a>

tag: Optional\[str]

The immutable ID of the script.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20tag">Link to this property</a>

tags: Optional\[List\[str]]

Tags associated with the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20tags">Link to this property</a>

<details>

<summary>

tail\_consumers: Optional\[List\[<a href="https://developers.cloudflare.com/api/python/resources/workers#(resource)%20workers.scripts.tail%20%3E%20(model)%20consumer_script%20%3E%20(schema)">ConsumerScript</a>]]

List of Workers that will consume logs from the attached Worker.

</summary>

service: str

Name of Worker that is to be the consumer.

<a href="#(resource)%20workers.scripts.tail%20%3E%20(model)%20consumer_script%20%3E%20(schema)%20%3E%20(property)%20service">Link to this property</a>

environment: Optional\[str]

Optional environment if the Worker utilizes one.

<a href="#(resource)%20workers.scripts.tail%20%3E%20(model)%20consumer_script%20%3E%20(schema)%20%3E%20(property)%20environment">Link to this property</a>

namespace: Optional\[str]

Optional dispatch namespace the script belongs to.

<a href="#(resource)%20workers.scripts.tail%20%3E%20(model)%20consumer_script%20%3E%20(schema)%20%3E%20(property)%20namespace">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20tail_consumers">Link to this property</a>

<details>

<summary>

usage\_model: Optional\[Literal\["standard", "bundled", "unbound"]]

Usage model for the Worker invocations.

</summary>

One of the following:

"standard"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20usage_model%20%3E%20(member)%200">Link to this property</a>

"bundled"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20usage_model%20%3E%20(member)%201">Link to this property</a>

"unbound"

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20usage_model%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)%20%3E%20(property)%20usage_model">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(model)%20script_update_response%20%3E%20(schema)>)

### Upload Worker Module

Python

HTTPTypeScriptPythonGoTerraform

```
import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_token=os.environ.get("CLOUDFLARE_API_TOKEN"),  # This is the default and can be omitted
)
script = client.workers.scripts.update(
    script_name="this-is_my_script-01",
    account_id="023e105f4ecef8ad9ca31a8372d0c353",
    metadata={},
)
print(script.id)
```

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "result": {
    "startup_time_ms": 10,
    "id": "this-is_my_script-01",
    "cache_options": {
      "enabled": true,
      "cross_version_cache": true
    },
    "compatibility_date": "2021-01-01T00:00:00Z",
    "compatibility_flags": [
      "nodejs_compat"
    ],
    "created_on": "2022-05-05T05:15:11.602148Z",
    "entry_point": "index.js",
    "etag": "777f24a43bef5f69174aa69ceaf1dea67968d510a31d1vw3e49d34a0187c06d1",
    "exports": {
      "Admin": {
        "type": "worker",
        "cache": {
          "enabled": true
        },
        "state": "created"
      },
      "Counter": {
        "storage": "sqlite",
        "type": "durable-object",
        "container": "my-container",
        "state": "created"
      },
      "OldCounter": {
        "state": "renamed",
        "type": "durable-object"
      },
      "default": {
        "type": "worker",
        "cache": {
          "enabled": false
        },
        "state": "created"
      }
    },
    "handlers": [
      "fetch"
    ],
    "has_assets": false,
    "has_modules": false,
    "last_deployed_from": "wrangler",
    "logpush": false,
    "migration_tag": "v1",
    "modified_on": "2022-05-20T19:02:56.446492Z",
    "named_handlers": [
      {
        "handlers": [
          "class"
        ],
        "name": "MyDurableObject"
      }
    ],
    "observability": {
      "enabled": true,
      "head_sampling_rate": 0.1,
      "issues": {
        "enabled": true
      },
      "logs": {
        "enabled": true,
        "invocation_logs": true,
        "destinations": [
          "cloudflare"
        ],
        "head_sampling_rate": 0.1,
        "persist": true
      },
      "redact_query_string": false,
      "traces": {
        "destinations": [
          "cloudflare"
        ],
        "enabled": true,
        "head_sampling_rate": 0.1,
        "persist": true,
        "propagation_policy": "authenticated"
      }
    },
    "placement": {
      "mode": "smart",
      "last_analyzed_at": "2025-01-01T00:00:00Z",
      "status": "SUCCESS"
    },
    "placement_mode": "smart",
    "placement_status": "SUCCESS",
    "tag": "e8f70fdbc8b1fb0b8ddb1af166186758",
    "tags": [
      "my-team",
      "my-public-api"
    ],
    "tail_consumers": [
      {
        "service": "my-log-consumer",
        "environment": "production",
        "namespace": "my-namespace"
      }
    ],
    "usage_model": "standard"
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "result": {
    "startup_time_ms": 10,
    "id": "this-is_my_script-01",
    "cache_options": {
      "enabled": true,
      "cross_version_cache": true
    },
    "compatibility_date": "2021-01-01T00:00:00Z",
    "compatibility_flags": [
      "nodejs_compat"
    ],
    "created_on": "2022-05-05T05:15:11.602148Z",
    "entry_point": "index.js",
    "etag": "777f24a43bef5f69174aa69ceaf1dea67968d510a31d1vw3e49d34a0187c06d1",
    "exports": {
      "Admin": {
        "type": "worker",
        "cache": {
          "enabled": true
        },
        "state": "created"
      },
      "Counter": {
        "storage": "sqlite",
        "type": "durable-object",
        "container": "my-container",
        "state": "created"
      },
      "OldCounter": {
        "state": "renamed",
        "type": "durable-object"
      },
      "default": {
        "type": "worker",
        "cache": {
          "enabled": false
        },
        "state": "created"
      }
    },
    "handlers": [
      "fetch"
    ],
    "has_assets": false,
    "has_modules": false,
    "last_deployed_from": "wrangler",
    "logpush": false,
    "migration_tag": "v1",
    "modified_on": "2022-05-20T19:02:56.446492Z",
    "named_handlers": [
      {
        "handlers": [
          "class"
        ],
        "name": "MyDurableObject"
      }
    ],
    "observability": {
      "enabled": true,
      "head_sampling_rate": 0.1,
      "issues": {
        "enabled": true
      },
      "logs": {
        "enabled": true,
        "invocation_logs": true,
        "destinations": [
          "cloudflare"
        ],
        "head_sampling_rate": 0.1,
        "persist": true
      },
      "redact_query_string": false,
      "traces": {
        "destinations": [
          "cloudflare"
        ],
        "enabled": true,
        "head_sampling_rate": 0.1,
        "persist": true,
        "propagation_policy": "authenticated"
      }
    },
    "placement": {
      "mode": "smart",
      "last_analyzed_at": "2025-01-01T00:00:00Z",
      "status": "SUCCESS"
    },
    "placement_mode": "smart",
    "placement_status": "SUCCESS",
    "tag": "e8f70fdbc8b1fb0b8ddb1af166186758",
    "tags": [
      "my-team",
      "my-public-api"
    ],
    "tail_consumers": [
      {
        "service": "my-log-consumer",
        "environment": "production",
        "namespace": "my-namespace"
      }
    ],
    "usage_model": "standard"
  },
  "success": true
}
```