mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
#472 REST Services: added core/delete (to bulk delete, full-featured), and validated the operation core/apply_stimulus
SVN:trunk[2616]
This commit is contained in:
@@ -130,6 +130,26 @@ $aOperations = array(
|
||||
'key' => 'SELECT UserRequest',
|
||||
'output_fields' => 'id, friendlyname, title, contacts_list', // list of fields to show in the results (* or a,b,c)
|
||||
),
|
||||
array(
|
||||
'operation' => 'core/delete', // operation code
|
||||
'comment' => 'Cleanup for synchro with...', // comment recorded in the change tracking log
|
||||
'class' => 'UserRequest',
|
||||
'key' => 'SELECT UserRequest WHERE org_id = 2',
|
||||
'simulate' => true,
|
||||
),
|
||||
array(
|
||||
'operation' => 'core/apply_stimulus', // operation code
|
||||
'comment' => 'Synchronization from blah...', // comment recorded in the change tracking log
|
||||
'class' => 'UserRequest',
|
||||
'key' => 1,
|
||||
'stimulus' => 'ev_assign',
|
||||
// Values to set
|
||||
'fields' => array(
|
||||
'team_id' => 15, // Helpdesk
|
||||
'agent_id' => 9 // Jules Verne
|
||||
),
|
||||
'output_fields' => 'id, friendlyname, title, contacts_list', // list of fields to show in the results (* or a,b,c)
|
||||
),
|
||||
);
|
||||
|
||||
$sUrl = "http://localhost/rest-services/webservices/rest.php?version=1.0";
|
||||
|
||||
Reference in New Issue
Block a user