{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Replaces the usage model for a Worker script. Requires a Workers Paid subscription.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/workers_identifier"},"script_name":{"$ref":"#/definitions/workers_script_name"}},"required":["account_id","script_name"],"additionalProperties":false},"body":{"type":"object","properties":{"usage_model":{"$ref":"#/definitions/workers_usage_model"},"user_limits":{"$ref":"#/definitions/workers_user_limits"}}}},"required":["path","body"],"additionalProperties":false,"definitions":{"workers_identifier":{"description":"Identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"workers_script_name":{"description":"Name of the script.","type":"string","pattern":"^[a-z0-9_][a-z0-9-_]*$","examples":["this-is_my_script-01"]},"workers_usage_model":{"description":"Usage model for the Worker invocations.","type":"string","default":"standard","enum":["standard","bundled","unbound"],"examples":["standard"]},"workers_user_limits":{"description":"User-defined resource limits for Workers with standard usage model.","type":["object","null"],"properties":{"cpu_ms":{"description":"The amount of CPU time this Worker can use in milliseconds.","type":["integer","null"],"examples":[50]}}}}},"name":"Replace Worker Script Usage Model","id":"cloudflare.worker-script-update-usage-model","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","script_name":"this-is_my_script-01"},"body":{}},"maxRequests":1,"summary":false}}