---
title: "Edit a listing"
method: PATCH
path: "/api/v1/ads/{id}"
tags: ["ads"]
---

# Edit a listing

`PATCH /api/v1/ads/{id}`

## Request

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

Update fields on a listing you own (title, description, price, rooms, amenities, address, …). Only the fields you send change.

## Path parameters

- `id` string, required

## Request body

- object
  - `title` string
  - `description` string
  - `price_eur` integer
  - `sale_price_eur` integer
  - `price_unit` 'month' | 'night'
  - `season_mode` 'annual' | 'sept_may' | 'summer' | 'shortterm'
  - `district` string
  - `address` string
  - `rooms` integer
  - `size_m2` integer
  - `floor` integer
  - `total_floors` integer
  - `building_era` 'pirmskara' | 'padomju' | 'jaunais projekts'
  - `amenities` unknown[]
    - unknown
  - `owner_name` string
  - `owner_phone` string

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