Retrieves a list of all the metadata cascade policies
that are applied to a given folder. This can not be used on the root
folder with ID 0
.
31232
Specifies which folder to return policies for. This can not be used on the
root folder with ID 0
.
JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii
Defines 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
.
1000
0
The offset of the item at which to begin the response.
Queries with offset parameter value exceeding 10000 will be rejected with a 400 response.
31232
The ID of the enterprise ID for which to find metadata cascade policies. If not specified, it defaults to the current enterprise.
Returns a list of metadata cascade policies
Returns an error when any of the parameters are not in a valid format.
Returns an error when the folder can not be accessed. This error often
happens when accessing the root folder with ID 0
.
Returns an error when the folder can not be found or the user does not have access to the folder.
not_found
- The folder could not be found or the user does not have
access to the folder.An unexpected client error.
curl -i -X GET "https://api.box.com/2.0/metadata_cascade_policies?folder_id=31232" \
-H "authorization: Bearer <ACCESS_TOKEN>"
{
"entries": [
{
"id": "6fd4ff89-8fc1-42cf-8b29-1890dedd26d7",
"owner_enterprise": {
"id": "690678",
"type": "enterprise"
},
"parent": {
"id": "1234567",
"type": "folder"
},
"scope": "enterprise_123456",
"templateKey": "productInfo",
"type": "metadata_cascade_policy"
}
],
"limit": 1000,
"next_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"prev_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVih"
}