Properties

Create a property

post/v1/properties

Request

  • Base URL: https://api.frihet.io
  • URL: https://api.frihet.io/v1/properties
  • Auth: API key in header X-API-Key

Request body

namestring required

Property name

type'Apartment' | 'Villa' | 'Studio' | 'House' | 'Room'
addressstring
status'Active' | 'Maintenance' | 'Inactive'
ownerNamestring
ownerEmailstring email
commissionRatenumber

Commission percentage (0-100)

licenseNumberstring

Tourism license number

maxGuestsinteger

Example request

{
  "name": "Sunset Villa",
  "type": "Villa",
  "address": "Calle Sol 12, Santa Cruz",
  "ownerName": "Carlos Martinez",
  "commissionRate": 15,
  "licenseNumber": "VV-38-001234",
  "maxGuests": 6
}

Response

Property created

idstring
namestring
typestring
addressstring
status'Active' | 'Maintenance' | 'Inactive'
ownerNamestring
ownerEmailstring nullable
commissionRatenumber
licenseNumberstring nullable
maxGuestsinteger
createdAtstring date-time
updatedAtstring date-time

Changes

No recorded changes to this operation across all 1 revision of this API.