Use the fields query parameter
To request a specific field for a resource that is not returned by default in
the standard response, append the fields query parameter to your request. The
value of this parameter is a comma separated list of field names.
It is important to note that when a specific field is requested no other
fields are returned except for those requested and the base set of fields.
For a file, this base set is comprised of the
etag, id, and type values.Resource variants
The following resource variants are available in the Box API.Standard
The default set of fields returned in an API response. The standard variant is returned when requesting a resource through the main APIs available for that resource. For example, when requesting theGET /files/:id endpoint the API will return
the standard variation of a file.
Mini
Where a resource is returned as a nested part of another response it is often reduced in size, only returning some of the more essential fields. This variant is commonly known as the mini resource variant. For example, when requesting theGET /folders/:id/items endpoint the API
will return a mini variation of files and folders nested within the item_collection.
To request more information for a nested resource we recommend calling the
API for that resource to request it by ID, and optionally pass along the
field query parameter.For example, to get the owner of a file returned when listing the items in a
folder, request that file by ID with the query parameter field=owned_by.Full
The total set of fields that can be returned in an API response. The full variant is returned when requesting a resource through the main APIs available for that resource and by appending thefields
query parameter.
For example, when requesting the GET /files/:id
endpoint with the fields=is_package,lock parameter the API will return the fields specified plus the basic fields for the file.
