forms.forms.setPublishSettings
Updates a form's publish settings to control whether it is published and accepting responses; legacy forms without publish settings are not supported.
Instructions
Updates the publish settings of a form. Legacy forms aren't supported because they don't have the publish_settings field [HTTP POST] — creates or triggers a change; refused under --readonly safety profiles. Returns the API's response resource as JSON — request body is a JSON SetPublishSettingsRequest object accepting publishSettings, updateMask; pass it via params or whole via body_file Siblings over the same resource: batchUpdate, create, get.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| formId | Yes | [URL path segment] Required. The ID of the form. You can get the id from Form.form_id field. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON SetPublishSettingsRequest object. | |
| request_body | No | Request body of type SetPublishSettingsRequest: pass it via `params` (merged into the built body) or whole via `body_file`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formId | No | ||
| publishSettings | No |