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

# Add Image To Folder Endpoint

`POST /addImagesToFolder`

## Request

- Base URL: `https://api.pavoot.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pavoot.com/addImagesToFolder`
- Auth: none declared

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/pavoot-api.md) - [All operations](https://skmtc.dev/pavoot/apis/pavoot-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pavoot/apis/pavoot-api/revisions/8c0cd91c2a05?raw)
