To give form creators more control over who can respond, we're introducing granular controls for responders. Forms created with the API after January 31, 2026 will have an unpublished state by default. To learn more, seeAPI changes to Google Forms.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-16 UTC."],[],[],null,["# Method: forms.setPublishSettings\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.SetPublishSettingsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates the publish settings of a form.\n\nLegacy forms aren't supported because they don't have the `publishSettings` field.\n\n### HTTP request\n\n`POST https://forms.googleapis.com/v1/forms/{formId}:setPublishSettings`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `formId` | `string` Required. The ID of the form. You can get the id from [Form.form_id](/workspace/forms/api/reference/rest/v1/forms#Form.FIELDS.form_id) field. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"publishSettings\": { object (/workspace/forms/api/reference/rest/v1/forms#PublishSettings) }, \"updateMask\": string } ``` |\n\n| Fields ||\n|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `publishSettings` | `object (`[PublishSettings](/workspace/forms/api/reference/rest/v1/forms#PublishSettings)`)` Required. The desired publish settings to apply to the form. |\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Optional. The `publishSettings` fields to update. This field mask accepts the following values: - `publishState`: Updates or replaces all `publishState` settings. - `\"*\"`: Updates or replaces all `publishSettings` fields. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n\n### Response body\n\nThe response of a [forms.setPublishSettings](/workspace/forms/api/reference/rest/v1/forms/setPublishSettings#google.apps.forms.v1.FormsService.SetPublishSettings) request.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"formId\": string, \"publishSettings\": { object (/workspace/forms/api/reference/rest/v1/forms#PublishSettings) } } ``` |\n\n| Fields ||\n|-------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| `formId` | `string` Required. The ID of the Form. This is same as the [Form.form_id](/workspace/forms/api/reference/rest/v1/forms#Form.FIELDS.form_id) field. |\n| `publishSettings` | `object (`[PublishSettings](/workspace/forms/api/reference/rest/v1/forms#PublishSettings)`)` The publish settings of the form. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/drive`\n- `\n https://www.googleapis.com/auth/drive.file`\n- `\n https://www.googleapis.com/auth/forms.body`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]