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

Parameters: move_forms_to_folder
NameTypeDescription
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
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"]}'
Python
result = client.call("formstack", "move_forms_to_folder", {"form_ids":["form ids"]})
Node.js
const result = await cotlet.call('formstack', 'move_forms_to_folder', {"form_ids":["form ids"]});
CLI
cotlet call formstack move_forms_to_folder --data '{"form_ids":["form ids"]}'

Example response

JSON

{
  "moved": [
    "5192046"
  ],
  "folder": {
    "folder_id": "774133",
    "name": "Events 2027"
  }
}

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.