指定した企業とユーザータイプに適用されるサービス利用規約を作成します。
"enabled"
このサービス利用規約がアクティブであるかどうか。
次の値のいずれか1つ: enabled
,disabled
"By collaborating on this file you are accepting..."
ユーザーに対して表示されるサービス利用規約のテキスト。
status
がdisabled
に設定されている場合は、テキストを空に設定できます。
"managed"
サービス利用規約を設定するユーザーのタイプ。
次の値のいずれか1つ: external
,managed
curl -i -X POST "https://api.box.com/2.0/terms_of_services" \
-H "authorization: Bearer <ACCESS_TOKEN>" \
-H "content-type: application/json" \
-d '{
"status": "enabled",
"text": "By collaborating on this file you are accepting..."
}'
{
"id": "11446498",
"type": "terms_of_service",
"created_at": "2012-12-12T10:53:43-08:00",
"enterprise": {
"id": "11446498",
"type": "enterprise",
"name": "Acme Inc."
},
"modified_at": "2012-12-12T10:53:43-08:00",
"status": "enabled",
"text": "By using this service, you agree to ...",
"tos_type": "managed"
}