Add User update API

This commit is contained in:
trojanh
2020-01-31 18:54:42 +05:30
parent adcc482703
commit b4394ec122
2 changed files with 171 additions and 0 deletions

View File

@@ -408,6 +408,20 @@ export class Harvest implements INodeType {
const responseData = await harvestApiRequest.call(this, requestMethod, qs, endpoint, body);
returnData.push(responseData);
} else if (operation === 'update') {
// ----------------------------------
// createByDuration
// ----------------------------------
requestMethod = 'POST';
endpoint = resource;
const additionalFields = this.getNodeParameter('updateFields', i) as IDataObject;
Object.assign(body, additionalFields);
const responseData = await harvestApiRequest.call(this, requestMethod, qs, endpoint, body);
returnData.push(responseData);
} else if (operation === 'delete') {
// ----------------------------------
// delete