Can save data to my custom table using ajax post method

isachar silva asked on March 19, 2019 20:59

Hi I am trying to insert data to my custom table using jquery ajax but i always got an error saying 401- unauthorized.

Recent Answers


Brenden Kehren answered on March 19, 2019 21:45

Have you properly setup the ability to use REST?

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on March 20, 2019 08:43

What type of authentication are you using for REST? - I guess basic, correct? See more details about REST request authentication: https://docs.kentico.com/k12/integrating-3rd-party-systems/kentico-rest-service/authenticating-rest-requests

As long as you're getting 401 (unauthorized) status it seems that user you're using for request authorization is not allowed to access custom table data. The easiest way to verify it is to login into Kentico with that user and try to get to that custom table data. Most like you need to setup permissions for the user.

0 votesVote for this answer Mark as a Correct answer

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