Skip to main content
POST
Crear nueva unidad

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request para crear una nueva unidad.

Valida los datos necesarios para crear una unidad inmobiliaria, incluyendo informacion del proyecto, producto, precio, ubicacion (address) y atributos EAV dinamicos.

sku
string
required
Maximum string length: 50
currency_type
enum<string>
required
Available options:
ARS,
USD,
EUR
price
number
required
Required range: x >= 1
project_id
string<uuid> | null
product_id
string<uuid> | null
status
enum<string> | null
Available options:
disponible,
pisado,
cotizado,
reservado,
revision,
vendido,
no_disponible
listing_type
string
name
string | null
Maximum string length: 100
stage
string | null
Maximum string length: 100
sector
string | null
Maximum string length: 50
unit
string | null
Maximum string length: 50
store_active
boolean
Maximum string length: 500
possession_date
string<date-time> | null
possession_type
enum<string> | null
Available options:
pozo,
inmediata,
en_ejecucion
attributes
object

Atributos EAV de la unidad como mapa clave-valor. Las claves deben corresponder a attribute keys activos del schema. Ejemplo: {"bedrooms": 3, "pool": true, "orientation": "N", "total_area": 85.5}

address
object

Response

UnitResource

data
Unit · object
required