It should be the same as creating/updating records of any DB. For example, from the iOS SDK’s example app readme:
/*
* structure of request is:
* {
* "records":[
* {
* "contactGroupId":id,
* "contactId":id"
* },
* {...}
* ]
* }
*/
There are examples of the raw calls in this forum thread.