{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Add or update one tag key/value on a script uploaded to a Workers for Platforms dispatch namespace without replacing its other tags.\n\nThis operation requires an `api-version` on or after `2026-10-01`.\n","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/workers_identifier"},"dispatch_namespace":{"$ref":"#/definitions/workers_dispatch_namespace_name"},"script_name":{"$ref":"#/definitions/workers_script_name"},"tag":{"$ref":"#/definitions/workers_typed_tag_key","description":"Tag key. Cloudflare-reserved prefixes are not accepted."}},"required":["account_id","dispatch_namespace","script_name","tag"],"additionalProperties":false},"headers":{"type":"object","properties":{"api-version":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(\\.[a-z]+)?$","examples":["2026-10-01.epoch"],"description":"Requested API compatibility date in `YYYY-MM-DD[.release]` format (UTC). The optional release suffix contains lowercase letters; for example, `2026-10-01.epoch`.\n\nTyped Worker tag operations require a date on or after `2026-10-01`.\n"}},"required":[],"additionalProperties":false},"body":{"$ref":"#/definitions/workers_tag_patch"}},"required":["path","body"],"additionalProperties":false,"definitions":{"workers_identifier":{"description":"Identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"workers_dispatch_namespace_name":{"description":"Name of the Workers for Platforms dispatch namespace.","type":"string","pattern":"^.+$","examples":["my-dispatch-namespace"]},"workers_script_name":{"description":"Name of the script.","type":"string","pattern":"^[a-z0-9_][a-z0-9-_]*$","examples":["this-is_my_script-01"]},"workers_typed_tag_key":{"description":"A typed tag key containing only Unicode letters or numbers, underscores, periods, or hyphens. The complete UTF-8 encoded tag (the key plus `=` and the value when the value is non-empty) must not exceed 1024 bytes. Cloudflare-reserved prefixes are not accepted.","type":"string","maxLength":256,"minLength":1,"examples":["environment"]},"workers_tag_patch":{"description":"The value to assign to the tag key. An empty string is valid. The complete UTF-8 encoded tag (the key plus `=` and the value when the value is non-empty) must not exceed 1024 bytes.","type":"object","properties":{"value":{"type":"string","examples":["production"]}},"additionalProperties":false,"required":["value"]}}},"name":"Update Workers for Platforms Script Tag","id":"cloudflare.namespace-worker-patch-script-tag","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","dispatch_namespace":"my-dispatch-namespace","script_name":"this-is_my_script-01","tag":"environment"},"body":{"value":"production"}},"maxRequests":1,"summary":false}}