Publish a form
curl --request PATCH \
--url https://{your-subdomain}.neetoform.com/api/external/v2/forms/{form_id}/publish \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'PATCH', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/forms/{form_id}/publish', 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}/publish"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.patch(url, headers=headers)
print(response.text){
"form": {
"id": "6f1c2a9e-3b6d-4d8e-9a51-2f0c7d4e8b10",
"title": "Customer feedback",
"is_published": true,
"state": "published",
"created_at": "2026-10-28T09:12:44.512Z",
"updated_at": "2026-10-28T09:12:44.512Z",
"attempt_url": "https://spinkart.neetoform.com/a1b2c3d4e5f6",
"submissions_count": 0,
"is_archived": false,
"is_disabled": false,
"is_suspended": false,
"created_by": "Oliver Smith"
}
}{
"error": "Form does not exist."
}{
"error": "Form not published, please check for errors",
"validation_errors": [
{
"id": "3d9a7c10-84b2-4e5f-b6a1-0c2d8e9f7a41",
"error": [
"Move the reCAPTCHA element to the last page before publishing."
]
}
]
}Forms
Publish a form
Publish the draft of a form. If a question has errors, nothing is published and the errors are listed.
PATCH
/
forms
/
{form_id}
/
publish
Publish a form
curl --request PATCH \
--url https://{your-subdomain}.neetoform.com/api/external/v2/forms/{form_id}/publish \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'PATCH', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/forms/{form_id}/publish', 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}/publish"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.patch(url, headers=headers)
print(response.text){
"form": {
"id": "6f1c2a9e-3b6d-4d8e-9a51-2f0c7d4e8b10",
"title": "Customer feedback",
"is_published": true,
"state": "published",
"created_at": "2026-10-28T09:12:44.512Z",
"updated_at": "2026-10-28T09:12:44.512Z",
"attempt_url": "https://spinkart.neetoform.com/a1b2c3d4e5f6",
"submissions_count": 0,
"is_archived": false,
"is_disabled": false,
"is_suspended": false,
"created_by": "Oliver Smith"
}
}{
"error": "Form does not exist."
}{
"error": "Form not published, please check for errors",
"validation_errors": [
{
"id": "3d9a7c10-84b2-4e5f-b6a1-0c2d8e9f7a41",
"error": [
"Move the reCAPTCHA element to the last page before publishing."
]
}
]
}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.
Response
OK - Form published successfully