Box Developerドキュメント

Box Developerドキュメントの新しいベータ版サイトがまもなくリリースされる予定です。最新の開発者向けガイド、APIリファレンス、AI搭載の検索により、Boxを使用した迅速な開発をサポートします。更新情報については今しばらくお待ちください。

最新バージョン

サービス利用規約のリストを取得

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

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

企業の現在のサービス利用規約のテキストと設定を返します。

リクエスト

bearer [ACCESS_TOKEN]
application/json

クエリパラメータ

stringクエリ内省略可能
managed

指定した種類のサービス利用規約のみに結果を絞り込みます。

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

レスポンス

企業のサービス利用規約のテキストおよび設定のコレクションを返します。

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

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

リクエストの例

Box SDKのバージョン戦略の詳細については、 **こちら**を確認してください。


cURL
curl -i -X GET "https://api.box.com/2.0/terms_of_services" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Node/TypeScript v10
await client.termsOfServices.getTermsOfService();
Python v10
client.terms_of_services.get_terms_of_service()
.NET v10
await client.TermsOfServices.GetTermsOfServiceAsync();
Swift v10
try await client.termsOfServices.getTermsOfService()
Java v10
client.getTermsOfServices().getTermsOfService()
.NET v6
await client.TermsOfServices.GetTermsOfServiceAsync();
Node v4
await client.termsOfServices.getTermsOfService();

レスポンスの例

{
  "entries": [
    {
      "id": "11446498",
      "type": "terms_of_service",
      "created_at": "2012-12-12T10:53:43-08:00",
      "enterprise": {
        "id": "11446498",
        "name": "Acme Inc.",
        "type": "enterprise"
      },
      "modified_at": "2012-12-12T10:53:43-08:00",
      "status": "enabled",
      "text": "By using this service, you agree to ...",
      "tos_type": "managed"
    }
  ],
  "total_count": 2
}