Duplicate form
Copy a form with all its settings, optionally under a new name.
POST https://cotlet.dev/api/v1/123formbuilder/forms/{form_id}/duplicate
write
Uses Duplicate in the form's menu in My Forms, which copies the form with all its settings, then renames the copy if you pass name. The copy counts toward your form limit. It reaches no one and you undo it by deleting the copy in the app, so it does not wait for your OK.
Parameters
| Name | Type | Description |
|---|---|---|
| form_id integer required | integer | Form id of the form to copy, from list_forms. |
| name string | string | Name of the copy. |
Request
curl -X POST https://cotlet.dev/api/v1/123formbuilder/forms/1/duplicate \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("123formbuilder", "duplicate_form", {"form_id":1}) const result = await cotlet.call('123formbuilder', 'duplicate_form', {"form_id":1}); cotlet call 123formbuilder duplicate_form --data '{"form_id":1}' Example response
{
"source_form_id": 5128977,
"form_id": 5130021,
"name": "Autumn open day",
"active": true
}