---
title: "Update a property"
url: "https://real-estate-agency.apim.eu/apis/property-management/versions/0192f0a1-654d-4abd-aa88-6716d49df69f/operations/updateProperty"
---

> Full API specification: https://real-estate-agency.apim.eu/apis/property-management/versions/0192f0a1-654d-4abd-aa88-6716d49df69f.md

# Update a property

`PATCH` `/properties/{propertyId}`

Operation ID: `updateProperty`

Updates individual fields. Listings already generated remain unchanged.

## Path parameters

- `propertyId` (string, required)

## Request body (required)

Content types: `application/json`

## Responses

- `200` - Updated
- `404` - Record not found

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Property Management
  version: 1.0.0
servers:
  - url: https://api.realestateagency.example/v1
    description: Production
  - url: https://sandbox.api.realestateagency.example/v1
    description: Sandbox
paths:
  /properties/{propertyId}:
    parameters:
      - name: propertyId
        in: path
        required: true
        schema:
          type: string
          example: prop_8f2c1a
    patch:
      tags:
        - Properties
      summary: Update a property
      description: Updates individual fields. Listings already generated remain unchanged.
      operationId: updateProperty
      security:
        - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PropertyInput"
            example:
              purchase_price_eur: 629000
      responses:
        "200":
          description: Updated
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Property"
        "404":
          $ref: "#/components/responses/NotFound"
security:
  - apiKey: []
components:
  schemas:
    PropertyInput:
      type: object
      required:
        - type
        - title
        - address
      properties:
        type:
          $ref: "#/components/schemas/PropertyType"
        title:
          type: string
          maxLength: 120
          example: 3-Bedroom Period Home near Riverside Park
        description:
          type: string
          example: Well-maintained period apartment on the second floor with two
            south-facing balconies.
        address:
          $ref: "#/components/schemas/Address"
        living_area_sqm:
          type: number
          format: float
          example: 86.5
        lot_size_sqm:
          type: number
          format: float
          example: 412
        rooms:
          type: number
          format: float
          example: 3
        year_built:
          type: integer
          example: 1908
        floor:
          type: integer
          example: 2
        purchase_price_eur:
          type: integer
          example: 645000
        cold_rent_eur:
          type: integer
          example: 1450
        service_charges_eur:
          type: integer
          example: 280
        available_from:
          type: string
          format: date
          example: 2026-11-01
        energy_certificate:
          $ref: "#/components/schemas/EnergyCertificate"
        commission:
          $ref: "#/components/schemas/Commission"
    Property:
      allOf:
        - $ref: "#/components/schemas/PropertyInput"
        - type: object
          properties:
            id:
              type: string
              example: prop_8f2c1a
            status:
              $ref: "#/components/schemas/PropertyStatus"
            media_count:
              type: integer
              example: 14
            created_at:
              type: string
              format: date-time
              example: 2026-08-14T08:12:44Z
            updated_at:
              type: string
              format: date-time
              example: 2026-08-20T09:38:02Z
    PropertyType:
      type: string
      enum:
        - apartment
        - house
        - land
        - commercial
        - parking
      example: apartment
    Address:
      type: object
      required:
        - postal_code
        - city
      properties:
        street:
          type: string
          example: 148 Elm Street
        postal_code:
          type: string
          pattern: ^[0-9]{5}$
          example: "10001"
        city:
          type: string
          example: Springfield
        country:
          type: string
          default: US
        location_precision:
          type: string
          description: Controls how precisely the address appears in the listing.
          enum:
            - exact
            - street
            - neighborhood
          default: street
    EnergyCertificate:
      type: object
      description: Figures needed to publish a listing.
      properties:
        type:
          type: string
          enum:
            - consumption
            - demand
        final_energy_demand_kwh:
          type: number
          format: float
          example: 118.4
        energy_source:
          type: string
          example: district_heating
        system_year:
          type: integer
          example: 1998
        efficiency_class:
          type: string
          enum:
            - A+
            - A
            - B
            - C
            - D
            - E
            - F
            - G
            - H
        valid_until:
          type: string
          format: date
          example: 2031-04-30
        exemption:
          type: string
          description: Set when no certificate is legally required.
          enum:
            - heritage_protection
            - small_building
    Commission:
      type: object
      properties:
        buyer_percent:
          type: number
          format: float
          example: 3.57
        seller_percent:
          type: number
          format: float
          example: 3.57
        note:
          type: string
          example: includes applicable sales tax
    PropertyStatus:
      type: string
      enum:
        - draft
        - active
        - reserved
        - sold
        - rented
        - archived
      example: active
    Error:
      type: object
      description: Uniform error format across all Real Estate Agency APIs.
      required:
        - code
        - message
      properties:
        code:
          type: string
          example: validation_failed
        message:
          type: string
          example: Mandatory disclosures from the energy certificate are missing for
            publication.
        details:
          type: array
          items:
            $ref: "#/components/schemas/ErrorDetail"
    ErrorDetail:
      type: object
      properties:
        field:
          type: string
          example: energy_certificate.final_energy_demand_kwh
        reason:
          type: string
          example: missing
  responses:
    NotFound:
      description: Record not found
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/Error"
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: |
        Every call carries an API key in the `apikey` header. You generate the
        key in the Real Estate portal under "My Apps"; it's shown exactly once.

        Each key has the scopes it's allowed to use attached to it. If one is
        missing, the API responds with `403` and `code: "scope_missing"`; the
        missing scope is in `details[].field`.
```
