Kentico REST for Custom Tables

avdhoota n asked on March 23, 2017 09:21

Hi All,

I want to add/update data in Custom table through REST.

I am trying to do the same with POST method but it gives an error 'Method not allowed'.

Here is my request,

/rest/customtableitem.customtable.sampletable/all?aliaspath=testav&response=testav

if i change the request and remove 'all' like this -> /rest/customtableitem.customtable.sampletable?aliaspath=testav&response=testav It gives an error 404 - File or directory not found.

for now i am sending this request from Chrome postman.

P.S. GET request gives all the data, /rest/customtableitem.customtable.sampletable/all

Please let me know what am i missing here

Correct Answer

Jan Hermann answered on March 23, 2017 10:01

Please make sure you are authenticated and you have correct permissions for inserting new items into custom tables:

https://docs.kentico.com/k10/integrating-3rd-party-systems/kentico-rest-service/authenticating-rest-requests

0 votesVote for this answer Unmark Correct answer

Recent Answers


avdhoota n answered on March 23, 2017 10:36

Hi Jan, Thanks a lot for your reply. adding runAllManagedModulesForAllRequests="true" resolved the issue.

Thanks a Lot again!

0 votesVote for this answer Mark as a Correct answer

avdhoota n answered on March 23, 2017 11:02

Hi Jan,

One more question,

Can we add multiple records in a custom table through REST in a single request?

0 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on March 23, 2017 21:30 (last edited on March 23, 2017 21:31)

No, You can't. 1 request - 1 record. Take a look at Managing objects using REST.

Creating multiple objects of the same type in a single request is not supported.

0 votesVote for this answer Mark as a Correct answer

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