Validates the roles and permissions of the group, and creates asynchronous jobs to terminate the group's sessions. Returns the status for the POST request.
["123456","456789"]
A list of group IDs
Returns a message about the request status.
Returns an error if some of the parameters are not valid.
Groups can not be NULL or EMPTY
when no value is providedgroup id format is string
when the provided group id format
is incorrectSupported payload format is JSON
when the provided payload
format is incorrectReturns an error if there are insufficient permissions.
Returns an error if the resource could not be found.
Returns an error if the request limit is exceeded.
Returns an error if there is an internal server issue.
Returns an error if the request timed out.
An unexpected client error.
curl -i -X POST "https://api.box.com/2.0/groups/terminate_sessions" \
-H "authorization: Bearer <ACCESS_TOKEN>" \
-H "content-type: application/json" \
-H "accept: application/json" \
-d
{
"group_ids": ["6178859178", "4824866571"],
}
await client.sessionTermination.terminateGroupsSessions({
groupIds: [group.id],
} satisfies TerminateGroupsSessionsRequestBody);
client.session_termination.terminate_groups_sessions([group.id])
await client.SessionTermination.TerminateGroupsSessionsAsync(requestBody: new TerminateGroupsSessionsRequestBody(groupIds: Array.AsReadOnly(new [] {group.Id})));
var groupIDs = ['11111', '22222'];
client.groups.terminateSession(groupIDs)
.then((result) => {
/* result -> {
message: 'Request is successful, please check the admin events for the status of the job'
} */
});
{
"message": "Request is successful, please check the admin\nevents for the status of the job"
}