{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Attaches a domain that routes traffic to a Worker.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/workers_identifier"}},"required":["account_id"],"additionalProperties":false},"body":{"allOf":[{"$ref":"#/definitions/workers_Domain"},{"required":["hostname","service"],"type":"object"}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"workers_identifier":{"description":"Identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"workers_Domain":{"type":"object","properties":{"enabled":{"description":"Whether the configured hostname is routable for the domain. If disabled, then requests to the configured hostname will not be routed to the configured Worker. If disabled, then preview routing must be enabled, and only subdomains of the configured hostname will be routable.","type":"boolean","default":true,"examples":[true]},"hostname":{"description":"Hostname of the domain. Can be either the zone apex or a subdomain of the zone. Requests to this hostname will be routed to the configured Worker.","type":"string","examples":["app.example.com"]},"previews_enabled":{"description":"Whether previews are routable for the domain. If enabled, previews will be routable as subdomains of the configured hostname. For example, if the configured hostname is `app.example.com`, then requests to `my-feature.app.example.com` will be routed to the preview with slug `my-feature`, if such a preview exists. If preview routing is disabled, then hostname routing must be enabled.","type":"boolean","default":false,"examples":[false]},"service":{"description":"Name of the Worker associated with the domain. Requests to the configured hostname will be routed to this Worker.","type":"string","examples":["my-worker"]},"zone_id":{"description":"ID of the zone containing the domain hostname.","type":"string","examples":["593c9c94de529bbbfaac7c53ced0447d"]},"zone_name":{"description":"Name of the zone containing the domain hostname.","type":"string","examples":["example.com"]}},"required":["zone_id","zone_name","hostname","service","previews_enabled","enabled"]}}},"name":"Attach Worker Domain","id":"cloudflare.workers.domains.update","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"zone_id":"593c9c94de529bbbfaac7c53ced0447d","zone_name":"example.com","hostname":"example","service":"example","previews_enabled":false,"enabled":true}},"maxRequests":1,"summary":false}}