group.reset
Resets the defined group.
Warning! This will remove all texts linked to that group and remove all results for the groupRequest Parameters
| group_id | int (required) |
Id for the group to be reset.
Response Parameters
(none)Code Examples
JSON
{
"method":"group.reset",
"params":{
"group_id":2
},
"id":0
}
Java
// NOTE: This method will remove all texts in the group and all existing results.
// You need to have a ready-to-use client to use the other methods
SaploClient client = new SaploClient("YOUR_API_KEY", "YOUR_SECRET_KEY");
// Create a SaploGroupManager to work with groups
SaploGroupManager groupMgr = new SaploGroupManager(client);
// Assuming you know the ID of the group you want to reset
SaploGroup group = new SaploGroup();
group.setId(groupId);
// Reset
groupMgr.reset(group);
PHP
$client = new SaploAPI("YOUR API KEY", "YOUR SECRET KEY");
$params = array(
"group_id" => 2
);
try {
$result = $client->group->reset($params);
} catch(SaploException $e) {
echo '(' . $e->getCode() . ') ' . $e->getMessage()";
}
var_dump($result);
Matlab
params.group_id = 415;
response = saploRequest('group.reset', params)