Box Developerドキュメント
 
    最新バージョン

    サービス利用規約を作成

    post
    https://api.box.com/2.0
    /terms_of_services

    このエンドポイントはバージョン2024.0です。引き続き使用するために 変更は必要ありません。詳細については、 **Box APIのバージョン管理**を参照してください。

    指定した企業とユーザータイプに適用されるサービス利用規約を作成します。

    リクエスト

    bearer [ACCESS_TOKEN]
    application/json

    リクエスト本文

    string本文内必須
    "enabled"

    このサービス利用規約がアクティブであるかどうか。

    次の値のいずれか1つ: enabled,disabled

    string本文内必須
    "By collaborating on this file you are accepting..."

    ユーザーに対して表示されるサービス利用規約のテキスト。

    statusdisabledに設定されている場合は、テキストを空に設定できます。

    string本文内省略可能
    "managed"

    サービス利用規約を設定するユーザーのタイプ。

    次の値のいずれか1つ: external,managed

    レスポンス

    新しいタスクオブジェクトを返します

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

    post
    サービス利用規約を作成
    このドキュメント内で一部のAPIを試せるようになりました。
    ログイン

    リクエストの例

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