notes/add
Adds a note for a given candidate record
Parameters:
contact_id- id of the candidate record we are adding the note toreceived- is it areceivedmessage orsentmessage? Boolean, can betrueorfalsetype- note type. Default isnote. Other system type isemail. If you build your own note type, then useplugin_prefix. Example:plugin_smssubject- subject of the note. Its empty by default but we recommend to set it to some meaningful value so that in case if your plugin will be deactivated - users would have some clue as to what these notes meanmessage- note bodyskip_notification- should we skip user notification (notify by email) for this note?
Example:
//JS API
wu.Messenger.sendMessageToWU('notes/add', {
"contact_id":1234,
"received":false,
"type":"plugin_sms",
"subject":"SMS send out",
"message":"Hello World from WU API!",
}
);
wu.Messenger.sendMessageToWU('notes/add', {
"contact_id":1234,
"received":true,
"type":"plugin_sms",
"subject":"SMS going in",
"message":"Aloha from outside!",
}
);