GET
/folders/{folder_id}/metadata/{scope}/{template_key}Get metadata instance on folder
Retrieves the instance of a metadata template that has been applied to a
folder. This can not be used on the root folder with ID 0.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
folder_idstringrequired
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`.
scopestringrequired
The scope of the metadata template.
template_keystringrequired
The name of the metadata template.
201An instance of the metadata template that includes
additional "key:value" pairs defined by the user or
an application.
$parentstringoptional
The identifier of the item that this metadata instance
has been attached to. This combines the `type` and the `id`
of the parent in the form `{type}_{id}`.
$templatestringoptional
The name of the template.
$scopestringoptional
An ID for the scope in which this template
has been applied. This will be `enterprise_{enterprise_id}` for templates
defined for use in this enterprise, and `global` for general templates
that are available to all enterprises using Box.
$versionintegeroptional
The version of the metadata instance. This version starts at 0 and
increases every time a user-defined property is modified.
$canEditbooleanoptional
Whether the user can edit this metadata instance.
$idstringoptional
A UUID to identify the metadata instance.
$typestringoptional
A unique identifier for the "type" of this instance. This is an
internal system property and should not be used by a client
application.
$typeVersionintegeroptional
The last-known version of the template of the object. This is an
internal system property and should not be used by a client
application.
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 if the metadata template specified
was not applied to this folder or the user does not have access to the
folder.
* `instance_not_found` - The metadata template was not applied to the
folder.
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.
405Returned when the method was not allowed. This often happens when the
folder ID is not valid or the root folder with ID `0`.
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: Returned when the request parameters are not valid. A 404 is returned: Returned if the metadata template specified was not applied to this folder or the user does not have access to the folder.
instance_not_found- The metadata template was not applied to the folder. A 405 is returned: Returned when the method was not allowed. This often happens when the folder ID is not valid or the root folder with ID0. Any other status is an error: An unexpected client error.