This is a beta feature, which means that its availability might be limited. Returns all app items the file is associated with. This includes app items associated with ancestors of the file. Assuming the context user has access to the file, the type/ids are revealed even if the context user does not have View permission on the app item.
12345The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL https://*.app.box.com/files/123
the file_id is 123.
hubsIf given, only return app items for this application type.
10001000The maximum number of items to return per page.
JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioViiDefines 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.
Returns a collection of app item objects. If there are no app items on this file, an empty collection will be returned. This list includes app items on ancestors of this File.
Returned if the file is not found, or the user does not have access to the file.
An unexpected client error.
await client.appItemAssociations.getFileAppItemAssociations(fileId);client.app_item_associations.get_file_app_item_associations(file_id)await client.AppItemAssociations.GetFileAppItemAssociationsAsync(fileId: fileId);try await client.appItemAssociations.getFileAppItemAssociations(fileId: fileId)client.getAppItemAssociations().getFileAppItemAssociations(fileId){
"entries": [
{
"app_item": {
"application_type": "hubs",
"id": "12345678",
"type": "app_item"
},
"id": "12345678",
"item": {
"etag": "1",
"id": "12345",
"type": "file"
},
"type": "app_item_association"
}
],
"limit": 1000,
"next_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"prev_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVih"
}