Manage Applications

    Get cascade policy

    get
    https://api.box.com/2.0
    /metadata_cascade_policies/:metadata_cascade_policy_id

    Retrieve a metadata cascade policy.

    Request

    application/json

    Path Parameters

    stringin pathrequired
    324324

    The ID of the metadata cascade policy.

    Response

    Returns a list of metadata cascade policies

    You can now try out some of our APIs live, right here in the documentation.
    Log In

    Request Example

    cURL
    curl -X GET https://api.box.com/2.0/metadata_cascade_policies/324324 \
         -H "Authorization: Bearer <ACCESS_TOKEN>"
    .NET
    BoxMetadataCascadePolicy retrievedCascadePolicy = await client.MetadataCascadePolicyManager
        .GetCascadePolicyAsync("12345", IEnumerable<string> fields = null);
    Java
    String cascadePolicyID = "1234";
    BoxMetadataCascadePolicy metadataCascadePolicy = new BoxMetadataCascadePolicy(api, cascadePolicyID);
    BoxMetadataCascadePolicy.Info metadataCascadePolicyInfo = metadataCascadePolicy.getInfo();
    Python
    cascade_policy = client.metadata_cascade_policy('84113349-794d-445c-b93c-d8481b223434').get()
    print('Cascade policy applies to a template owned by enterprise {0}'.format(cascade_policy.owner_enterprise.id))
    Node
    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'
    		}
    		*/
    	});

    Response Example

    {
      "id": "6fd4ff89-8fc1-42cf-8b29-1890dedd26d7",
      "owner_enterprise": {
        "type": "enterprise",
        "id": 690678
      },
      "parent": {
        "type": "folder",
        "id": 690678
      },
      "scope": "global",
      "templateKey": "demo"
    }