A beta version of the new Box developer documentation site is launching soon! Updated Developer Guides, modern API Reference, and AI-powered search are on the way to help you build with Box faster. Stay tuned for more updates.
Updates the status for a terms of service for a user.
324234The ID of the terms of service status.
trueWhether the user has accepted the terms.
Returns the updated terms of service status object.
An unexpected client error.
curl -i -X PUT "https://api.box.com/2.0/terms_of_service_user_statuses/324234" \
-H "authorization: Bearer <ACCESS_TOKEN>" \
-H "content-type: application/json" \
-d '{
"is_accepted": true
}'await client.termsOfServiceUserStatuses.updateTermsOfServiceStatusForUserById(
createdTosUserStatus.id,
{
isAccepted: true,
} satisfies UpdateTermsOfServiceStatusForUserByIdRequestBody,
);client.terms_of_service_user_statuses.update_terms_of_service_status_for_user_by_id(
created_tos_user_status.id, True
)await client.TermsOfServiceUserStatuses.UpdateTermsOfServiceStatusForUserByIdAsync(termsOfServiceUserStatusId: createdTosUserStatus.Id, requestBody: new UpdateTermsOfServiceStatusForUserByIdRequestBody(isAccepted: true));try await client.termsOfServiceUserStatuses.updateTermsOfServiceStatusForUserById(termsOfServiceUserStatusId: createdTosUserStatus.id, requestBody: UpdateTermsOfServiceStatusForUserByIdRequestBody(isAccepted: true))client.getTermsOfServiceUserStatuses().updateTermsOfServiceStatusForUserById(createdTosUserStatus.getId(), new UpdateTermsOfServiceStatusForUserByIdRequestBody(true))await client.TermsOfServiceUserStatuses.UpdateTermsOfServiceStatusForUserByIdAsync(termsOfServiceUserStatusId: createdTosUserStatus.Id, requestBody: new UpdateTermsOfServiceStatusForUserByIdRequestBody(isAccepted: true));await client.termsOfServiceUserStatuses.updateTermsOfServiceStatusForUserById(
createdTosUserStatus.id,
{
isAccepted: true,
} satisfies UpdateTermsOfServiceStatusForUserByIdRequestBody,
);{
"id": "11446498",
"type": "terms_of_service_user_status",
"created_at": "2012-12-12T10:53:43-08:00",
"is_accepted": true,
"modified_at": "2012-12-12T10:53:43-08:00",
"tos": {
"id": "11446498",
"type": "terms_of_service"
},
"user": {
"id": "11446498",
"type": "user",
"login": "ceo@example.com",
"name": "Aaron Levie"
}
}