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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"form_id": "<form_id>",
"key_value_pairs": "<key_value_pairs>"
},
"name": "update_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | Yes | ||
| key_value_pairs | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |