Skip to main content
POST
/
metadata_cascade_policies
/
{metadata_cascade_policy_id}
/
apply
cURL
curl -i -X POST "https://api.box.com/2.0/metadata_cascade_policies/21312/apply" \
     -H "authorization: Bearer <ACCESS_TOKEN>" \
     -H "content-type: application/json" \
     -d '{
       "conflict_resolution": "overwrite"
     }'
{
  "type": "error",
  "status": 400,
  "code": "item_name_invalid",
  "message": "Method Not Allowed",
  "context_info": {
    "message": "Something went wrong"
  },
  "help_url": "https://developer.box.com/guides/api-calls/permissions-and-errors/common-errors/",
  "request_id": "abcdef123456"
}
This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.Learn more about Box SDK versioning strategy.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

metadata_cascade_policy_id
string
required

The ID of the cascade policy to force-apply.

Body

application/json
conflict_resolution
enum<string>
required

Describes the desired behavior when dealing with the conflict where a metadata template already has an instance applied to a child.

  • none will preserve the existing value on the file
  • overwrite will force-apply the templates values over any existing values.
Available options:
none,
overwrite
Example:

"none"

Response

Returns an empty response when the API call was successful. The metadata cascade operation will be performed asynchronously.

The API call will return directly, before the cascade operation is complete. There is currently no API to check for the status of this operation.