@giuseppebag, @SantoshSai - After putting in the above piece of code it still shows the same error. What I am majorly concerned is even if I am logged in with admin creds still it says not enough rights.I tried posting the data to a dummy node js server [local machine] and it successfully delivers ...