Archive submissions
Move submissions to the archive, or back to the inbox.
POST https://cotlet.dev/api/v1/jotform/forms/{form_id}/submissions/archive
write
Archives the submissions you list, or moves them back to the inbox with unarchive set to true. Archiving keeps the entry indefinitely, unlike deleting, which sends it to Trash for 30 days. Archived entries still count toward your submission storage. It reaches no one and is undone in one call, so it does not ask for confirmation.
Parameters
| Name | Type | Description |
|---|---|---|
| form_id string required | string | Form ID from list_forms. |
| submission_ids array required | array | Submission IDs from list_submissions. |
| unarchive boolean | boolean | true to move the submissions back to the inbox. Default: false. |
Request
curl -X POST https://cotlet.dev/api/v1/jotform/forms/form_8c41d2/submissions/archive \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"submission_ids":"submission ids"}' result = client.call("jotform", "archive_submissions", {"form_id":"form_8c41d2","submission_ids":"submission ids"}) const result = await cotlet.call('jotform', 'archive_submissions', {"form_id":"form_8c41d2","submission_ids":"submission ids"}); cotlet call jotform archive_submissions --data '{"form_id":"form_8c41d2","submission_ids":"submission ids"}' Example response
{
"form_id": "242831904782058",
"archived": 2,
"submission_ids": [
"6012345678901234555",
"6012345678901234501"
]
}