update_form
Update a form’s settings—title, anonymity, submission limits, expiration, and more—by passing the form ID and key-value pairs. Returns the refreshed form JSON.
Instructions
Update a form's properties.
Args: form_id: Numeric form id. key_value_pairs: Object with the fields to change. Common keys: title (str), description (str), isAnonymous (bool), submitMultiple (bool), allowEditSubmissions (bool), expires (unix timestamp, 0 = never), showExpiration (bool), state (0=active, 1=closed, 2=archived), maxSubmissions (int, 0 = unlimited), submissionMessage (str), access (object with permitAllUsers/showToAllUsers), fileFormat, path (destination folder for the generated submissions spreadsheet — must be sent together with fileFormat to (re)link the form to a file).
Returns: JSON of the updated form (refetched after the patch for convenience).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | Yes | ||
| key_value_pairs | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |