This command is used to add, edit or delete records in a specific table. The body consists of two arrays: one with the records to add or edit, and the other with the global identifiers of the records to delete.
To add a new record, pass a guid that does not currently exist in the table. To edit a record, pass the guid of that record.
Parameters
tablename
Name of the table to query
db
Name of the database containing the table
token
The user's identification token
Example
https://web.nios4.com/ws/?action=table_save&db=db&tablename=customers&token=00000000
Body
{
"rows": [ { dictionary of the record values, must have the GGUID set }, ... ],
"delete": [ array of the GGUIDs to delete ]
}
The dictionary to use in the rows array can be the record template returned by the table_info command. You can also pass only the values you want to change or add. What matters is that the guid key is always present.
Errors
notfound
The requested table does not exist
unauthorized
You do not have view permission for the requested table
