ユーザーのサービス利用規約のステータスを設定します。
true
ユーザーが利用規約に同意したかどうか。
ステータスを設定するサービス利用規約。
"1232132"
サービス利用規約のID
"terms_of_service"
オブジェクトのタイプ。
次の値に固定: terms_of_service
ステータスを設定するユーザー。
"3423423"
ユーザーのID
"user"
オブジェクトのタイプ。
次の値に固定: user
サービス利用規約ステータスオブジェクトを返します。
予期しないクライアントエラー。
curl -i -X POST "https://api.box.com/2.0/terms_of_service_user_statuses" \
-H "authorization: Bearer <ACCESS_TOKEN>" \
-H "content-type: application/json" \
-d '{
"tos": {
"type": "terms_of_service",
"id": "1232132"
},
"user": {
"type": "user",
"id": "3423423"
},
"is_accepted": true
}'
{
"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"
}
}