start with setup with a require and your domain with the token
var Circles =circles= "your-url.circles.io""yourToken";
Just specify the collection your calling then the data your passing
Data that will be saved or updated The data being updated can be saved with deep model meaning if you have an object
name :first :"john"last :"smith"
you can update just the first name with :
or with arrays you can :
toys : 'car''truck''drums'
you can update just truck with :
where 1 is the index
_id : ''