Asset Relations

Delete asset relations by asset ID

DELETE
/v1_1/{cloud_name}/resources/related_assets/{asset_id}

Unrelates the asset from other assets, specified by their asset IDs, an immutable identifier, regardless of public ID, display name, asset folder, resource type or delivery type. This is a bidirectional process, meaning that the asset will also be removed as a related_asset from all the other assets specified.

Authorization

AuthorizationBasic <token>

Basic authentication using Cloudinary API Key and API Secret.

In: header

Path Parameters

cloud_name*string

The cloud name of your product environment.

asset_id*string

The asset ID of the resource. Must be a 32-character hexadecimal string.

Match^[0-9a-f]{32}$

Request Body

application/json

The asset IDs to unrelate.

The asset unrelation request.

assets_to_unrelate*array<>

Unrelates the asset from all the assets specified in this array of assets, specified by their asset IDs.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1_1/my_cloud/resources/related_assets/f4e6579cf84dd9cf5683b21f5b30c7d9" \  -H "Content-Type: application/json" \  -d '{    "assets_to_unrelate": [      "string"    ]  }'
{  "failed": [    {      "message": "string",      "code": "rejected_ids",      "asset": "string",      "status": 0    }  ],  "success": [    {      "message": "string",      "code": "rejected_ids",      "asset": "string",      "status": 0    }  ]}