Is it possible to insert/update record in a table through API using scripts?

Hi All, 

I tried to insert record in a table by accessing a script which I created  through API. 

Got the below error message.

Message : counters : write permission denied for value \"Table\"."

I have provided the required permission to the permission group which I created  but still I'm getting the above error message. 

Could you please let me know if I missed to provide any required permission to the group or is it possible to insert a record through an api( using Run scripts) ?