---
title: "Unshare Images With Recipient Endpoint"
method: POST
path: "/unshareImagesWithRecipient"
---

# Unshare Images With Recipient Endpoint

`POST /unshareImagesWithRecipient`

Unshares multiple images from a recipient by removing entries from the image_recipients table.

Expects:
    - JSON with:
        - 'imageIds': list of image IDs to unshare
        - 'recipientId': ID of the recipient to unshare from

Process:
    1. Checks if recipient exists
    2. Removes entries from image_recipients table

Returns:
    - Success message with counts of unshared images
    - Detailed results including successful and skipped operations

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/pavoot/apis/fastapi.md) · [All operations](https://skmtc.dev/pavoot/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pavoot/fastapi/revisions/16997cca6697/schema)
