Activate or deactivate form
Turn a form on or off, like Deactivate in My Forms.
PUT https://cotlet.dev/api/v1/123formbuilder/forms/{form_id}/active
write Confirm
Switches the form on or off. A deactivated form stops taking submissions from the public and still counts toward your form limit. Scheduling dates set in Schedule are not changed. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| form_id integer required | integer | Form id from list_forms. |
| active boolean required | boolean | true to turn the form on, false to deactivate it. |
Request
curl -X PUT https://cotlet.dev/api/v1/123formbuilder/forms/1/active \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"active":true}' result = client.call("123formbuilder", "set_form_active", {"form_id":1,"active":True}) const result = await cotlet.call('123formbuilder', 'set_form_active', {"form_id":1,"active":true}); cotlet call 123formbuilder set_form_active --data '{"form_id":1,"active":true}' Example response
{
"form_id": 5128977,
"name": "Spring open day",
"active": false
}