---
title: "Rename a gallery image"
method: PATCH
path: "/v1/projectId/{projectId}/gallery/images/{id}"
tags: ["Gallery"]
---

# Rename a gallery image

`PATCH /v1/projectId/{projectId}/gallery/images/{id}`

## Request

- Base URL: `https://api.bluefox.email`
- URL: `https://api.bluefox.email/v1/projectId/{projectId}/gallery/images/{id}`
- Auth: HTTP bearer

Renames the image record only - does not replace the uploaded file itself. Upload a new image and delete the old one to replace the file.

## Path parameters

- `projectId` string, required
- `id` string, required

## Request body

- object
  - `name` string, required

## Response `200`

OK

- object
  - `status` integer
  - `result` GalleryImage: Every project gets its own slice of the account-wide media gallery, plus read/write access to any account-wide shared folder's images - but never another project's own private images.
    - `_id` string
    - `name` string
    - `url` string
    - `parentFolderId` string, nullable: The containing folder's _id, or null if the image is at the top level of this project's gallery.
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400`: Invalid request body or query - every violation found (missing/invalid/unexpected fields) is reported in one response, semicolon-separated, not just the first one hit.
- `403`: Missing or invalid API key
- `404`: Image not found

---

[API](https://skmtc.dev/bluefox/apis/bluefox-email-public-api.md) · [All operations](https://skmtc.dev/bluefox/apis/bluefox-email-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bluefox/apis/bluefox-email-public-api/revisions/fa1a0a835c7f?raw)
