---
title: "Save Photo"
method: POST
path: "/admin/photos/save"
tags: ["admin-photos"]
---

# Save Photo

`POST /admin/photos/save`

## Request

- Base URL: `https://stardrift.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://stardrift.ai/admin/photos/save`
- Auth: none declared

Save a photo for a destination. Accepts multipart/form-data.
Provide either photo_url (Unsplash) or image (custom upload), not both.
orientation: "landscape" (default) saves to photo_url, "portrait" saves to portrait_photo_url.
Geocodes the destination and upserts BestPhoto.

## Request body `multipart/form-data`

- BodySavePhotoAdminPhotosSavePost
  - `destination` string, required
  - `photo_url` string, nullable
  - `photographer` string, nullable
  - `image` string, binary, nullable
  - `orientation` string

## Response `200`

Successful Response

- SavePhotoResponse: Response from saving a photo.
  - `success` boolean, required
  - `destination` string, required
  - `photo_id` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stardrift/apis/stardrift-api.md) - [All operations](https://skmtc.dev/stardrift/apis/stardrift-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stardrift/apis/stardrift-api/revisions/be9ed1e6c38a?raw)
