---
deprecated: true
search:
  tags:
    - Images
    - PUT
seo:
  description: >-
    Creates relationships between an… Reference for the PUT
    /api/v1/{team_slug}/{app_slug}/images/{image_id}/relationships/bulk endpoint
    in the Management API.
sidebar:
  label: Bulk Add Image Relationships
  badge: PUT
title: Bulk Add Image Relationships
type: openapi-operation
---
Creates relationships between an image and up to 100 items (products or variants) with optional priority ordering. Validates that each item exists and is not deleted before creating the relationship. Returns lists of successful and failed relationship creations with error details.
Deprecated: use PUT /api/v2/&#123;team_slug&#125;/&#123;app_slug&#125;/dam/images/items instead.

`PUT /api/v1/{team_slug}/{app_slug}/images/{image_id}/relationships/bulk`

**Deprecated.**

**Request body** (`application/json`, required)

Items to link to the image

- `items` (internal_pkg_webserver_v1.BulkAddImageRelationshipItem[], required)

Request body example:

```json
{
  "items": [
    {
      "item_id": "string",
      "item_type": "product",
      "priority": 1
    }
  ]
}
```

**Responses**

- `200` — Relationships added successfully
- `400` — Invalid request
- `401` — Unauthorized access
- `404` — Image not found
- `500` — Internal server error

Response example, 200:

```json
{
  "data": {
    "failed": [
      {
        "item_id": "string",
        "item_type": "string",
        "reason": "string"
      }
    ],
    "successful": [
      {
        "item_id": "string",
        "item_type": "product",
        "priority": 1
      }
    ]
  },
  "details": [
    "string"
  ],
  "success": true
}
```
