Delete a thank-you page
curl --request DELETE \
--url https://{your-subdomain}.neetoform.com/api/external/v2/forms/{form_id}/thank_you_pages/{id} \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'DELETE', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/forms/{form_id}/thank_you_pages/{id}', 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/{form_id}/thank_you_pages/{id}"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"id": "<string>",
"deleted": true
}{
"error": "Couldn't find the record you were looking for."
}{
"error": "Primary thank you page can't be deleted."
}Thank-you pages
Delete a thank-you page
Delete a thank-you page. The primary page cannot be deleted. Make another page primary first.
DELETE
/
forms
/
{form_id}
/
thank_you_pages
/
{id}
Delete a thank-you page
curl --request DELETE \
--url https://{your-subdomain}.neetoform.com/api/external/v2/forms/{form_id}/thank_you_pages/{id} \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'DELETE', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/forms/{form_id}/thank_you_pages/{id}', 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/{form_id}/thank_you_pages/{id}"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"id": "<string>",
"deleted": true
}{
"error": "Couldn't find the record you were looking for."
}{
"error": "Primary thank you page can't be deleted."
}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.
Path Parameters
Unique ID of the form. Refer to Getting the Form ID for detailed instructions.
Unique ID of the thank-you page. You can get it from the List thank-you pages API.
Example:
"0b3c5a52-7a0e-4f2b-9d57-3d6a1a2f9c11"