Box Developer Documentation

Join BoxWorks 2024 to discover what's possible with content and AI!

Register now!

List folder app item associations

get
https://api.box.com/2.0
/folders/:folder_id/app_item_associations

This is a beta feature, which means that its availability might be limited. Returns all app items the folder is associated with. This includes app items associated with ancestors of the folder. Assuming the context user has access to the folder, the type/ids are revealed even if the context user does not have View permission on the app item.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
12345

The unique identifier that represent a folder.

The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL https://*.app.box.com/folder/123 the folder_id is 123.

The root folder of a Box account is always represented by the ID 0.

Query Parameters

stringin queryoptional
hubs

If given, returns only app items for this application type

integer (int64)in queryoptional
10001000

The maximum number of items to return per page.

stringin queryoptional
JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii

Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination.

This requires usemarker to be set to true.

Response

application/jsonApp item associations

Returns a collection of app item objects. If there are no app items on this folder an empty collection will be returned. This list includes app items on ancestors of this folder.

application/jsonClient error

Returned if the folder is not found, or the user does not have access to the folder.

application/jsonClient error

An unexpected client error.

get
List folder app item associations
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

TypeScript Gen
await client.appItemAssociations.getFolderAppItemAssociations(folderId);
Python Gen
client.app_item_associations.get_folder_app_item_associations(folder_id)
.NET Gen
await client.AppItemAssociations.GetFolderAppItemAssociationsAsync(folderId: folderId);
Swift Gen (Beta)
try await client.appItemAssociations.getFolderAppItemAssociations(folderId: folderId)

Response Example

{
  "entries": [
    {
      "id": "12345678",
      "type": "app_item_association",
      "app_item": {
        "id": "12345678",
        "type": "app_item",
        "application_type": "hubs"
      },
      "item": {
        "id": "12345",
        "etag": "1",
        "type": "file"
      }
    }
  ],
  "limit": 1000,
  "next_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
  "prev_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVih"
}