Asset Relations

Delete asset relations by public ID

DELETE
/v1_1/{cloud_name}/resources/related_assets/{resource_type}/{type}/{public_id}

Unrelates the asset from other assets, specified by public IDs. 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.

resource_type*string

The type of resource (image, video, or raw).

Value in

  • "image"
  • "video"
  • "raw"
type*string

The delivery type of the asset.

Default"upload"

Value in

  • "upload"
  • "private"
  • "authenticated"
public_id*string

The public ID of the asset.

Request Body

application/json

The assets to unrelate by public ID.

The asset unrelation request.

assets_to_unrelate*array<string>

Unrelates the asset from all the assets specified in this array of assets, specified as resource_type/type/public_id.

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/image/upload/sample" \  -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    }  ]}