---
title: "Reorder photos"
method: POST
path: "/api/v1/ads/{id}/photos-order"
tags: ["ads"]
---

# Reorder photos

`POST /api/v1/ads/{id}/photos-order`

## Request

- Base URL: `https://bezbaseina.lv`
- URL: `https://bezbaseina.lv/api/v1/ads/{id}/photos-order`
- Auth: HTTP bearer

Set the photo order for a listing you own (first = hero). Send the full ordered list of photo handles.

## Path parameters

- `id` string, required

## Request body

- object
  - `photo_ids` unknown[], required: ordered photo handles (photo_…); first becomes the hero
    - unknown

## Response `200`

Success

## Other responses

- `401`: auth_required / invalid_token
- `403`: forbidden_scope / plan_required

---

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