为了让表单创建者能够更好地控制哪些人可以回复,我们将为回复者引入精细的控制功能。2026 年 1 月 31 日之后使用该 API 创建的表单将默认处于未发布状态。如需了解详情,请参阅
Google 表单的 API 变更。
Google 表单的 API 变更
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
我们推出了可用于精细控制哪些人可以回复 Google 表单的选项,因此您需要先发布表单,然后才能与回复者共享。为确保现有脚本不会中断,目前 API 创建的表单默认会发布。不过,为与界面中的商品体验保持一致,2026 年 1 月 31 日之后通过 API 创建的表单将处于未发布状态,您必须先发布表单,然后表单才能接受回复。
如果不采取任何操作,会出现什么情况?
如果不采取任何措施,那么 2026 年 1 月 31 日之后使用 API 创建的新表单将默认处于未发布状态,并且不会收到回复。
您需要做出哪些更改
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-01。
[null,null,["最后更新时间 (UTC):2025-07-01。"],[],[],null,["# API Changes to Google Forms\n\nWith the introduction of the granular control options for who can respond to\nGoogle Forms, forms need to be published before sharing with responders. To\nmake sure that existing scripts don't break, today API created forms are published\nby default. However, to align with the product experience in the UI, forms\ncreated by API after January 31, 2026, will be created in an unpublished state\nand you must publish the forms before they can accept responses.\n\nWhat happens if you do nothing\n------------------------------\n\nIf no action is taken, then new forms created using APIs after January 31, 2026,\nwill be in an unpublished state by default and won't receive responses.\n\nWhat changes do you need to make\n--------------------------------\n\n- Forms created by API after January 31, 2026, will be created in an\n unpublished state. Going forward, you will need to explicitly publish the forms\n created by API by using the [`forms.setPublishedSettings()`](/workspace/forms/api/reference/rest/v1/forms/setPublishSettings) method.\n\n- To test publishing a form, first create a form in an unpublished state using the\n [`forms.create()`](/workspace/forms/api/reference/rest/v1/forms/create) method.\n Then publish the form with the [`forms.setPublishSettings()`](/workspace/forms/api/reference/rest/v1/forms/setPublishSettings) method.\n\n- You can control who responds to your form by sharing it with specific users. The [`permissions.create`](/workspace/drive/api/reference/rest/v3/permissions/create) method can be used to share the form with responders. Refer\n to [Share your form with more responders](/workspace/forms/api/guides/publish-form#share-form) for more details."]]