const params = { unit: [Object]};client.api.postJoint(params, function(err, result) { console.log(result);});
The unit object can be generated with the method "compose".
accepted