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

Parameters: set_form_active
NameTypeDescription
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
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}'
Python
result = client.call("123formbuilder", "set_form_active", {"form_id":1,"active":True})
Node.js
const result = await cotlet.call('123formbuilder', 'set_form_active', {"form_id":1,"active":true});
CLI
cotlet call 123formbuilder set_form_active --data '{"form_id":1,"active":true}'

Example response

JSON

{
  "form_id": 5128977,
  "name": "Spring open day",
  "active": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.