OptionalannotationsAnnotations for the version created by this upload.
OptionalassetsConfiguration for assets within a Worker.
OptionalbindingsList of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
OptionalbindingsWhen set to "strict", the upload will fail with error 10057 if any inherit type bindings cannot be resolved against the latest uploaded version of the Worker, which may not be the deployed version. Without this, unresolvable inherit bindings are silently dropped.
Available values: "strict".
OptionalbodyName of the uploaded file that contains the script (e.g. the file adding a listener to the fetch event). Indicates a service worker syntax Worker.
OptionalcacheGlobal CacheW configuration for the Worker. When caching is on,
the platform provisions a cloudflare.app zone for the Worker.
A type: worker entry in the exports map can override this
value for a single entrypoint.
OptionalcodeChoose whether to apply Durable Object code updates immediately or defer them. When omitted, the default strategy applies.
OptionalcompatibilityDate indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
OptionalcompatibilityFlags 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 compatibilityDate.
OptionalcontentModule or Service Worker contents of the Worker. Conflicts with contentFile.
OptionalcontentPath to a file containing the Module or Service Worker contents of the Worker. Conflicts with content. Must be paired with contentSha256.
OptionalcontentSHA-256 hash of the Worker contents. Used to trigger updates when source code changes. Must be provided when contentFile is specified.
OptionalcontentContent-Type of the Worker. Required if uploading a non-JavaScript Worker (e.g. "text/x-python").
OptionalexportsPer-entrypoint export configuration. Keys are the export names; values describe the entrypoint's kind and per-entrypoint cache behavior.
OptionalfilesAdditional modules and data files to include in the multipart Worker upload. Map keys are multipart part names referenced by binding part values and module imports.
OptionalforceIf true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.
OptionalkeepRetain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token. An explicit assets upload takes precedence over keepAssets.
OptionalkeepList of binding types to keep from previous_upload.
OptionallimitsLimits to apply for this Worker.
OptionallogpushWhether Logpush is turned on for the Worker.
OptionalmainName of the uploaded file that contains the main module (e.g. the file exporting a fetch handler). Indicates a module syntax Worker.
OptionalmigrationsMigrations to apply for Durable Objects associated with this Worker.
OptionalobservabilityObservability settings for the Worker.
OptionalpackageThe list of npm packages that were installed and used when this Worker was built.
OptionalplacementConfiguration for Smart Placement. Specify mode='smart' for Smart Placement, or one of region/hostname/host.
OptionalroutesOptional list of worker route configurations to create alongside the script
Name of the script, used in URLs and route configuration.
OptionaltailList of Workers that will consume logs from the attached Worker.
OptionalusageUsage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
Identifier.