URL for posting data to form via REST

Tevin Steinke asked on February 11, 2015 12:36

I'm reviewing the documentation for posting data to a form via REST. Based on the documentation, I see that the following URL is what I should use for a POST request to submit form data:

/bizformitem.bizform.<form code name>

For my site, I am attempting to use the following full URL to POST form submissions.

http://dev.networkats.com/rest/bizformitem.bizform.newslettersignup

I'm using the above URL and getting a 404 error when browsing the URL in my browser and when submitting an AJAX request in my templates.

Are there any additional steps I must follow in order for the REST functionality to work with posting forms data? I can successfully query documents/objects via REST already (GET), and REST is enabled through Kentico.

Correct Answer

Tevin Steinke answered on February 17, 2015 14:21

David from the support team helped me work this issue out. It turns out that I was missing the web.config update required for REST requests to work properly.

docs.kentico.com/display/K82/Configuring+the+REST+service#ConfiguringtheRESTservice-ConfiguringtheRESTservice

  1. Edit your application's web.config file.
  2. Find the system.webServer section directly under the root (i.e. not under a specific
0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on February 11, 2015 13:40

Have you set permissions within the REST settings for that form object? Also check the event logs to see if there is any kind of error. You might also check firebug or an equivalent to see if there is some king of JS error.

0 votesVote for this answer Mark as a Correct answer

Tevin Steinke answered on February 11, 2015 13:45

All object and page types are set to allowed (I left the field blank). The JS error that I'm getting is a 404. No errors are coming up in the event log.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on February 12, 2015 13:23

When you're testing are you logged into the CMS or not? Do you have your authentication setup properly?

0 votesVote for this answer Mark as a Correct answer

Tevin Steinke answered on February 12, 2015 17:25

I've tested in both a logged in and non-logged in browser. I added a URL authentication hash to the link through the Settings app in Kentico, but I still get the 404 in the AJAX call and in the browser.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.