GET
/files/{file_id}/metadataList metadata instances on a file
Lists all metadata instances applied to a specific file. Use view to choose between taxonomy node identifiers and hydrated taxonomy node details; the response includes every metadata instance because this operation does not support pagination.
file_idstringrequired
The unique identifier of the file whose metadata instances you want to retrieve.
viewstringoptional
Controls taxonomy value representation: use `hydrated` for full taxonomy node information; omit it to use the default API view with taxonomy node identifiers.
200Returns an object containing all metadata instances applied to the file and the result limit; the response is not paginated.
entriesarray<MetadataInstance>optional
A list of metadata instances, as applied to this file or folder.
limitintegeroptional
The limit that was used for this page of results.
403Returned when the request parameters are not valid.
typestringoptional
The value will always be `error`.
statusintegeroptional
The HTTP status of the response.
codestringoptional
A Box-specific error code.
messagestringoptional
A short message describing the error.
context_infoobjectoptional
A free-form object that contains additional context
about the error. The possible fields are defined on
a per-endpoint basis. `message` is only one example.
help_urlstringoptional
A URL that links to more information about why this error occurred.
request_idstringoptional
A unique identifier for this response, which can be used
when contacting Box support.
404Returned when the authenticated user does not have access to the specified file.
typestringoptional
The value will always be `error`.
statusintegeroptional
The HTTP status of the response.
codestringoptional
A Box-specific error code.
messagestringoptional
A short message describing the error.
context_infoobjectoptional
A free-form object that contains additional context
about the error. The possible fields are defined on
a per-endpoint basis. `message` is only one example.
help_urlstringoptional
A URL that links to more information about why this error occurred.
request_idstringoptional
A unique identifier for this response, which can be used
when contacting Box support.
defaultAn unexpected client error.
typestringoptional
The value will always be `error`.
statusintegeroptional
The HTTP status of the response.
codestringoptional
A Box-specific error code.
messagestringoptional
A short message describing the error.
context_infoobjectoptional
A free-form object that contains additional context
about the error. The possible fields are defined on
a per-endpoint basis. `message` is only one example.
help_urlstringoptional
A URL that links to more information about why this error occurred.
request_idstringoptional
A unique identifier for this response, which can be used
when contacting Box support.
Error handling
A 403 is returned when the request parameters are not valid, including an unsupported view value. A 404 is returned when the authenticated user does not have access to the file identified by file_id.