Delete many forms
curl --request DELETE \
--url https://{your-subdomain}.neetoform.com/api/external/v2/forms/bulk_destroy \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"ids": [
"6f1c2a9e-3b6d-4d8e-9a51-2f0c7d4e8b10"
]
}
'const options = {
method: 'DELETE',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['6f1c2a9e-3b6d-4d8e-9a51-2f0c7d4e8b10']})
};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/forms/bulk_destroy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoform.com/api/external/v2/forms/bulk_destroy"
payload = { "ids": ["6f1c2a9e-3b6d-4d8e-9a51-2f0c7d4e8b10"] }
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"form_ids": [
"6f1c2a9e-3b6d-4d8e-9a51-2f0c7d4e8b10",
"0b8e47d2-5c19-4f63-a7d0-91e2b3c4d5f6"
]
}{
"error": "param is missing or the value is empty or invalid: ids"
}{
"error": "Form does not exist."
}Forms
Delete many forms
Move many forms to the trash in one call. The call is all or nothing. If one ID is unknown or not allowed, no form is deleted. You can restore the forms from the trash in the app.
DELETE
/
forms
/
bulk_destroy
Delete many forms
curl --request DELETE \
--url https://{your-subdomain}.neetoform.com/api/external/v2/forms/bulk_destroy \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"ids": [
"6f1c2a9e-3b6d-4d8e-9a51-2f0c7d4e8b10"
]
}
'const options = {
method: 'DELETE',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['6f1c2a9e-3b6d-4d8e-9a51-2f0c7d4e8b10']})
};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/forms/bulk_destroy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoform.com/api/external/v2/forms/bulk_destroy"
payload = { "ids": ["6f1c2a9e-3b6d-4d8e-9a51-2f0c7d4e8b10"] }
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"form_ids": [
"6f1c2a9e-3b6d-4d8e-9a51-2f0c7d4e8b10",
"0b8e47d2-5c19-4f63-a7d0-91e2b3c4d5f6"
]
}{
"error": "param is missing or the value is empty or invalid: ids"
}{
"error": "Form does not exist."
}Replace
Learn how to find your subdomain in Workspace subdomain.
{your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.
Body
application/json
IDs of the forms.
Example:
["6f1c2a9e-3b6d-4d8e-9a51-2f0c7d4e8b10"]
Response
OK - Forms moved to the trash