Box Developerドキュメント

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

すべてのリテンションポリシーのリストの取得

ガイド リテンションポリシー すべてのリテンションポリシーのリストの取得

すべてのリテンションポリシーのリストの取得

会社内に作成されたすべてのリテンションポリシーのリストを取得するには、GET /retention_policies APIエンドポイントを呼び出します。

cURL
curl -i -X GET "https://api.box.com/2.0/retention_policies" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Node/TypeScript v10
await client.retentionPolicies.getRetentionPolicies();
Python v10
client.retention_policies.get_retention_policies()
.NET v10
await client.RetentionPolicies.GetRetentionPoliciesAsync();
Swift v10
try await client.retentionPolicies.getRetentionPolicies()
Java v10
client.getRetentionPolicies().getRetentionPolicies()
.NET v6
await client.RetentionPolicies.GetRetentionPoliciesAsync();
Node v4
await client.retentionPolicies.getRetentionPolicies();

必須のスコープ

リテンションポリシーAPIのいずれかを使用する前に、アプリケーションでは適切なスコープを有効にしておく必要があります。詳細については、必須のスコープを参照してください。