---
title: "Add Image To Folder Endpoint"
method: POST
path: "/addImagesToFolder"
---

# Add Image To Folder Endpoint

`POST /addImagesToFolder`

Associates multiple images with a folder by adding the folder name as a tag.

Expects:
    - JSON with:
        - 'imageIds': list of image IDs to add to the folder
        - 'folderName': the name of the folder to add the images to
        - 'projectId'

Process:
    1. Gets the project ID for each image
    2. Checks if the folder exists for each project
    3. Adds the folder name as a tag for each image that doesn't already have it

Returns:
    - Success message with results for each image
    - Detailed results including successful and failed operations

## Request body

- ModifyFolderImagesRequest
  - `imageIds` string[], required
  - `folderName` string, required
  - `projectId` integer, required

## 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)
