new: [API] Added API description for the warninglist toggleEnable API

pull/3725/head
iglocska 2018-09-19 12:21:44 +02:00
parent 1fb239abad
commit d6fd845df9
1 changed files with 8 additions and 1 deletions

View File

@ -207,7 +207,14 @@ class RestResponseComponent extends Component
'description' => "POST a body and a subject in a JSON to send an e-mail through MISP to the user ID given in the URL",
'mandatory' => array('subject', 'body')
)
)
),
'Warninglist' => array(
'toggleEnable' => array(
'description' => "POST a json object with a single or a list of warninglist IDs to toggle whether they're enabled or disabled. Specify the optional enabled boolean flag if you would like to enforce the outcome state. Not setting this flag will just toggle the current state.",
'mandatory' => array('id'),
'optional' => array('enabled')
)
)
);
public function getAllApis($user, $Server)