Get metadata instance on file
Changed onRetrieves the instance of a metadata template that has been applied to a file.
Request
- Base URLhttps://api.box.com/2.0
- URLhttps://api.box.com/2.0/files/{file_id}/metadata/{scope}/{template_key}
- AuthOAuth 2Authorization code: https://account.box.com/api/oauth2/authorizeToken URL: https://api.box.com/oauth2/token
Path parameters
The 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.
The scope of the metadata template.
The name of the metadata template.
Query parameters
Taxonomy field values are returned in API view by default, meaning the value is represented with a taxonomy node identifier. To retrieve the Hydrated view, where taxonomy values are represented with the full taxonomy node information, set this parameter to hydrated. This is the only supported value for this parameter.
Response
An instance of the metadata template that includes additional "key:value" pairs defined by the user or an application.
Example response
{
"$parent": "folder_59449484661,",
"$template": "marketingCollateral",
"$scope": "enterprise_27335",
"$version": 1,
"$canEdit": true,
"$id": "01234500-12f1-1234-aa12-b1d234cb567e",
"$type": "properties-6bcba49f-ca6d-4d2a-a758-57fe6edf44d0",
"$typeVersion": 2
}Changes
- warning
added the new
unprocessable_entityenum value to theresponse property for the response status - warning
added the new
unprocessable_entityenum value to theresponse property for the response status - warning
added the new
unprocessable_entityenum value to theresponse property for the response status - warning
added the new
unprocessable_entityenum value to theresponse property for the response status - info
added
subschema #2subschema #3to the response bodyallOflist for the response status - info
removed
subschema #2subschema #3from the response bodyallOflist for the response status
- warning