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
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
Hi Jan, Thanks a lot for your reply. adding runAllManagedModulesForAllRequests="true" resolved the issue.
Thanks a Lot again!
Hi Jan,
One more question,
Can we add multiple records in a custom table through REST in a single request?
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.
Please, sign in to be able to submit a new answer.