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

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

# Media

## 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
components:
  schemas:
    MediaCategory:
      type: string
      enum:
        - cover_photo
        - interior
        - exterior
        - floor_plan
        - energy_certificate
        - document
    Media:
      type: object
      properties:
        id:
          type: string
          example: med_31c9
        category:
          $ref: "#/components/schemas/MediaCategory"
        url:
          type: string
          format: uri
          example: https://cdn.realestateagency.example/properties/prop_8f2c1a/med_31c9.jpg
        order:
          type: integer
          example: 1
        caption:
          type: string
          example: Living room overlooking the courtyard
        size_bytes:
          type: integer
          example: 2418112
```
