既存ユーザーの利用規約ステータスを更新

put
https://api.box.com/2.0
/terms_of_service_user_statuses/:terms_of_service_user_status_id/

ユーザーの利用規約のステータスを更新します。

Request

Bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
324234

利用規約ステータスのID。

Request Body

booleanin bodyrequired
true

ユーザーが利用規約に同意したかどうか。

Response

更新された利用規約のステータスオブジェクトを返します。

予期しないクライアントエラー。

put
既存ユーザーの利用規約ステータスを更新
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

cURL
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
     }'
.NET
BoxTermsOfServiceUserStatuses updatedStatus = await client.TermsOfServiceManager
    .UpdateTermsofServiceUserStatusesAsync("12345", false);
Java
BoxTermsOfServiceUserStatus tosUserStatus = new BoxTermsOfServiceUserStatus(api, "tos-user-status-id");
BoxTermOfServiceUserStatus.Info tosUserStatusInfo = tosUserStatus.new Info();
tosUserStatusInfo.setStatus(newStatus);
tosUserStatus.updateInfo(tosUSerStatusInfo);
Python
user_status = client.terms_of_service_user_status(tos_user_status_id='12345').update_info({'is_accepted': True})
print('Terms of Service User Status ID is {0} and the accepted status is {1}'.format(user_status.id, user_status.is_accepted))
Node
client.termsOfService.updateUserStatus('5678', false)
	.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: false,
			created_at: '2018-04-11T15:33:49-07:00',
			modified_at: '2018-04-11T15:33:49-07:00' }
		*/
	});

Response Example

{
  "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"
  }
}