{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Perform a complete replacement of a Preview, where omitted properties are set to defaults.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/workers_identifier"},"worker_id":{"description":"Identifier for the Worker, which can be ID or name.","type":"string"},"preview_id":{"description":"Identifier for the Preview, which can be ID, slug, or URL-encoded name.","type":"string"}},"required":["account_id","worker_id","preview_id"],"additionalProperties":false},"query":{"type":"object","properties":{"ignore_defaults":{"description":"If true, preview defaults/base config from the parent Worker is ignored.","type":"boolean"},"ignore_base_config":{"description":"If true, preview base config from the parent Worker is ignored.","type":"boolean"}},"required":[],"additionalProperties":false},"body":{"allOf":[{"$ref":"#/definitions/workers_Preview"},{"required":["name"],"type":"object"}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"workers_identifier":{"description":"Identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"workers_Preview":{"type":"object","properties":{"logpush":{"description":"Whether logpush is enabled for the Preview.","type":"boolean","default":false},"name":{"description":"Human-readable name of the Preview.","type":"string","maxLength":256,"pattern":"^[a-zA-Z0-9]([a-zA-Z0-9\\-_/.+=]*[a-zA-Z0-9])?$","examples":["feature/my-branch"]},"observability":{"description":"Observability settings for the Preview.","type":"object","properties":{"enabled":{"description":"Whether observability is enabled for the Preview.","type":"boolean","default":false},"head_sampling_rate":{"description":"The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).","type":"number","default":1,"examples":[1]},"issues":{"description":"Real-time Issues settings for the Preview.","type":["object","null"],"properties":{"enabled":{"description":"Whether real-time Issues are enabled for the Preview.","type":"boolean","default":false}}},"logs":{"description":"Log settings for the Preview.","type":"object","properties":{"destinations":{"description":"A list of destinations where logs will be exported to.","type":"array","items":{"type":"string"},"default":[]},"enabled":{"description":"Whether logs are enabled for the Preview.","type":"boolean","default":false},"head_sampling_rate":{"description":"The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).","type":"number","default":1,"examples":[1]},"invocation_logs":{"description":"Whether invocation logs are enabled for the Preview.","type":"boolean","default":true},"persist":{"description":"Whether log persistence is enabled for the Preview.","type":"boolean","default":true}}},"redact_query_string":{"description":"Whether query strings are removed from request URLs in logs and traces.","type":"boolean","default":false},"traces":{"description":"Trace settings for the Preview.","type":"object","properties":{"destinations":{"description":"A list of destinations where traces will be exported to.","type":"array","items":{"type":"string"},"default":[]},"enabled":{"description":"Whether traces are enabled for the Preview.","type":"boolean","default":false},"head_sampling_rate":{"description":"The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).","type":"number","default":1,"examples":[1]},"persist":{"description":"Whether trace persistence is enabled for the Preview.","type":"boolean","default":true}}}}},"tags":{"description":"Tags associated with the Preview.","type":"array","items":{"maxLength":1024,"pattern":"^[^,&]*$","type":"string"},"default":[],"maxItems":8,"examples":[["my-team","my-preview"]]},"tail_consumers":{"description":"Other Workers that should consume logs from the Preview.","type":"array","items":{"properties":{"name":{"description":"Name of the consumer Worker.","type":"string","examples":["my-tail-consumer"]}},"required":["name"],"type":"object"},"default":[]}},"required":["name","tags","observability","logpush","tail_consumers"]}}},"name":"Update Preview","id":"cloudflare.workers.previews.update","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","worker_id":"example","preview_id":"example"},"body":{"name":"example","tags":["my-team","my-preview"],"observability":{},"logpush":false,"tail_consumers":[]}},"maxRequests":1,"summary":false}}