Add the power of the Box AI API to your custom apps at Content Cloud Summit on May 15
Learn more and register!Retrieves an overview of users and their status for a terms of service, including Whether they have accepted the terms and when.
324234
The ID of the terms of service.
123334
Limits results to the given user ID.
Returns a list of terms of service statuses.
An unexpected client error.
curl -i -X GET "https://api.box.com/2.0/terms_of_service_user_statuses?tos_id=324234" \
-H "authorization: Bearer <ACCESS_TOKEN>"
client.termsOfService.getUserStatus('11111', { user_id: '22222' })
.then(tosStatus => {
/* tosStatus -> {
type: 'terms_of_service_user_status',
id: '12345',
tos: { type: 'terms_of_service', id: '11111' },
user: { type: 'user', id: '22222' },
is_accepted: true,
created_at: '2018-04-11T15:33:49-07:00',
modified_at: '2018-04-11T15:33:49-07:00' }
*/
});
await client.termsOfServiceUserStatuses.getTermsOfServiceUserStatuses({
tosId: tos.id,
userId: user.id,
} satisfies GetTermsOfServiceUserStatusesQueryParams);
client.terms_of_service_user_statuses.get_terms_of_service_user_statuses(tos.id, user_id=user.id)
await client.TermsOfServiceUserStatuses.GetTermsOfServiceUserStatusesAsync(queryParams: new GetTermsOfServiceUserStatusesQueryParams(tosId: tos.Id, userId: user.Id));
{
"entries": [
{
"id": "11446498",
"type": "terms_of_service_user_status",
"tos": {
"id": "11446498",
"type": "terms_of_service"
},
"user": {
"id": "11446498",
"type": "user",
"name": "Aaron Levie",
"login": "ceo@example.com"
},
"is_accepted": true,
"created_at": "2012-12-12T10:53:43-08:00",
"modified_at": "2012-12-12T10:53:43-08:00"
}
],
"total_count": 2
}