Move forms to a folder
Move one or more forms into a folder, or into a new one.
POST https://cotlet.dev/api/v1/formstack/forms-to-folder/move
write
Moves the forms into the folder, the same as the move to option in the Forms tab. Give folder_id for an existing folder, or new_folder_name to create it and move in one step. Moving reaches no one and is undone by moving the forms back, so it does not wait for your OK. Moving a form out of a folder removes it from users who only have access to that folder.
Parameters
| Name | Type | Description |
|---|---|---|
| form_ids string[] required | string[] | Form IDs from list_forms. |
| folder_id string | string | Folder ID from list_folders. Give this or new_folder_name. |
| new_folder_name string | string | Name of a folder to create and move the forms into. |
Request
curl -X POST https://cotlet.dev/api/v1/formstack/forms-to-folder/move \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"form_ids":["form ids"]}' result = client.call("formstack", "move_forms_to_folder", {"form_ids":["form ids"]}) const result = await cotlet.call('formstack', 'move_forms_to_folder', {"form_ids":["form ids"]}); cotlet call formstack move_forms_to_folder --data '{"form_ids":["form ids"]}' Example response
{
"moved": [
"5192046"
],
"folder": {
"folder_id": "774133",
"name": "Events 2027"
}
}