Retrieve a specific metadata cascade policy assigned to a folder.
6fd4ff89-8fc1-42cf-8b29-1890dedd26d7
The ID of the metadata cascade policy.
Returns a metadata cascade policy
Returns an error when the policy can not be found or the user does not have access to the folder.
instance_not_found
- The policy could not be foundnot_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/324324" \
-H "authorization: Bearer <ACCESS_TOKEN>"
await client.metadataCascadePolicies.getMetadataCascadePolicyById(
cascadePolicyId,
);
client.metadata_cascade_policies.get_metadata_cascade_policy_by_id(cascade_policy_id)
await client.MetadataCascadePolicies.GetMetadataCascadePolicyByIdAsync(metadataCascadePolicyId: cascadePolicyId);
String cascadePolicyID = "1234";
BoxMetadataCascadePolicy metadataCascadePolicy = new BoxMetadataCascadePolicy(api, cascadePolicyID);
BoxMetadataCascadePolicy.Info metadataCascadePolicyInfo = metadataCascadePolicy.getInfo();
cascade_policy = client.metadata_cascade_policy('84113349-794d-445c-b93c-d8481b223434').get()
print(f'Cascade policy applies to a template owned by enterprise {cascade_policy.owner_enterprise.id}')
BoxMetadataCascadePolicy retrievedCascadePolicy = await client.MetadataCascadePolicyManager
.GetCascadePolicyAsync("12345", IEnumerable<string> fields = null);
var policyID = '84113349-794d-445c-b93c-d8481b223434';
client.metadata.getCascadePolicy(policyID)
.then(cascadePolicy => {
/* cascadePolicy -> {
id: '84113349-794d-445c-b93c-d8481b223434',
type: 'metadata_cascade_policy',
owner_enterprise: {
type: 'enterprise',
id: '11111'
},
parent: {
type: 'folder',
id: '22222'
},
scope: 'enterprise_11111',
templateKey: 'testTemplate'
}
*/
});
{
"id": "6fd4ff89-8fc1-42cf-8b29-1890dedd26d7",
"type": "metadata_cascade_policy",
"owner_enterprise": {
"id": "690678",
"type": "enterprise"
},
"parent": {
"id": "1234567",
"type": "folder"
},
"scope": "enterprise_123456",
"templateKey": "productInfo"
}