Publish or unpublish a form
set_publish_settingsPublish or unpublish a Google Form and control response collection. Set a published form to not accept responses while keeping it visible, but this fails on legacy forms managed in Forms UI.
Instructions
Publishes or unpublishes the form and opens/closes response collection. is_accepting_responses defaults to mirroring is_published (publish = start accepting, unpublish = stop). Use is_published=true with is_accepting_responses=false to keep a published form visible but closed. Fails on legacy forms created before the publish model existed — those are managed only in the Forms UI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | Yes | The form id — the long id from the form URL (docs.google.com/forms/d/<formId>/edit) or from create_form output. | |
| is_published | Yes | true = published (respondents can open it), false = unpublished draft. | |
| is_accepting_responses | No | Whether the form accepts new responses (defaults to the value of is_published). |