Records a bullying incident and logs to the database. On success, returns the ID of the incident that has been commited to the database.
|bully_id||Person ID for a student, or an array of IDs if there are multiple aggressors involved in this incident.|
|victim_id||Person ID for a student, or an array of IDs if there are multiple victims involved in this incident.|
|cats||Single category or array of categories in which this incident falls into (cyber/physical/etc)|
|date||Date and time of incident - Format of YYYY-MM-DD HH:MM:SS - Time is not essential and can be left blank.|
|info||Narrative of text about the incident|
|staff||Person ID for the staff member reporting the incident. If the staff ID does not exist in the HUB: Bully Log group, they will only be able to see their incidents they log so this parameter is important.|
$a = $api->sendRequest(
'controller' => 'Bully',
'action' => 'addIncident',
'bully_id' => array( '123', '456' ),
'victim_id' => '789',
'cats' => array( 'Cyber', 'Verbal' ),
'date' => '2015-05-20',
'info' => 'Aggressor A sent a nasty message to the victim.'
'staff' => '1012'
[result] => Success
[last_id] => 10