[{"data":1,"prerenderedAt":570},["ShallowReactive",2],{"page:\u002Fproperties\u002Fupdate":3,"operation:updateProperty":61},{"id":4,"title":5,"body":6,"description":51,"extension":52,"meta":53,"navigation":54,"operation":55,"path":56,"rawbody":57,"seo":58,"stem":59,"__hash__":60},"docs\u002Fproperties\u002Fupdate.md","Update a property",{"type":7,"value":8,"toc":47},"minimark",[9,44],[10,11,12,13,17,18,21,22,17,25,28,29,32,33,17,36,39,40,43],"p",{},"Only supplied top-level fields change. ",[14,15,16],"code",{},"pricing"," and ",[14,19,20],{},"characteristics"," merge supplied fields; ",[14,23,24],{},"location",[14,26,27],{},"area"," are complete replacement objects. ",[14,30,31],{},"features"," replaces the list. Only ",[14,34,35],{},"owner_id",[14,37,38],{},"subtype"," can be cleared with ",[14,41,42],{},"null",".",[10,45,46],{},"This endpoint cannot replace image URLs or set publication directly. Use upload sessions and the publication endpoint. Updating a public property's gallery queues marked-image processing before it is made visible again.",{"title":48,"searchDepth":49,"depth":49,"links":50},"",3,[],"Update a property without exposing its private CRM record.","md",{},true,"updateProperty","\u002Fproperties\u002Fupdate","---\ntitle: Update a property\ndescription: Update a property without exposing its private CRM record.\noperation: updateProperty\n---\n\nOnly supplied top-level fields change. `pricing` and `characteristics` merge supplied fields; `location` and `area` are complete replacement objects. `features` replaces the list. Only `owner_id` and `subtype` can be cleared with `null`.\n\nThis endpoint cannot replace image URLs or set publication directly. Use upload sessions and the publication endpoint. Updating a public property's gallery queues marked-image processing before it is made visible again.\n",{"title":5,"description":51},"properties\u002Fupdate","32SJfNmLvtDkj9XxvEJDwxv9sBTWdTslJs8EOOipKg0",{"id":55,"method":62,"path":63,"fullPath":64,"summary":5,"tag":65,"scopes":66,"url":68,"description":69,"pathParams":70,"queryParams":77,"headerParams":78,"body":79,"responses":518,"samples":553,"docsPath":56},"PATCH","\u002Fproperties\u002F{property_id}","\u002Fv1\u002Fproperties\u002F{property_id}","Properties",[67],"properties:write","https:\u002F\u002Fapi.vestta.io\u002Fv1\u002Fproperties\u002F{property_id}","Updates supplied fields while preserving private CRM metadata and media. Requires the `properties:write` scope.",[71],{"name":72,"type":73,"required":54,"nullable":74,"constraints":75},"property_id","integer",false,[76],"≥ 1",[],[],{"schemaName":80,"required":54,"fields":81,"ignored":517},"PropertyUpdateRequest",[82,86,90,94,98,102,117,168,181,185,188,483,503,505,508],{"name":83,"type":84,"required":74,"nullable":54,"constraints":85},"operations","array of strings",[],{"name":87,"type":88,"required":74,"nullable":54,"constraints":89},"type","PropertyType",[],{"name":38,"type":91,"required":74,"nullable":54,"constraints":92},"string",[93],"≤ 100 chars",{"name":95,"type":91,"required":74,"nullable":54,"constraints":96},"title",[97],"1–300 chars",{"name":99,"type":91,"required":74,"nullable":54,"constraints":100},"description",[101],"≤ 50000 chars",{"name":16,"type":103,"required":74,"nullable":54,"constraints":104,"children":105},"PropertyPricing",[],[106,111,114],{"name":107,"type":108,"required":74,"nullable":54,"constraints":109},"sale","number",[110],"≥ 0",{"name":112,"type":108,"required":74,"nullable":54,"constraints":113},"rent",[110],{"name":115,"type":108,"required":74,"nullable":54,"constraints":116},"transfer",[110],{"name":24,"type":118,"required":74,"nullable":54,"constraints":119,"children":120},"PropertyLocation",[],[121,125,129,134,138,142,146,161],{"name":122,"type":91,"required":54,"nullable":74,"constraints":123},"city",[124],"2–150 chars",{"name":126,"type":91,"required":74,"nullable":54,"constraints":127},"province",[128],"≤ 150 chars",{"name":130,"type":91,"required":74,"nullable":74,"defaultValue":131,"constraints":132},"country","España",[133],"2–100 chars",{"name":135,"type":91,"required":54,"nullable":74,"constraints":136},"address",[137],"2–500 chars",{"name":139,"type":91,"required":54,"nullable":74,"constraints":140},"full_address",[141],"5–1000 chars",{"name":143,"type":91,"required":74,"nullable":54,"constraints":144},"postal_code",[145],"≤ 20 chars",{"name":147,"type":148,"required":54,"nullable":74,"constraints":149,"children":150},"coordinates","Coordinates",[],[151,156],{"name":152,"type":108,"required":54,"nullable":74,"constraints":153},"latitude",[154,155],"≥ -90","≤ 90",{"name":157,"type":108,"required":54,"nullable":74,"constraints":158},"longitude",[159,160],"≥ -180","≤ 180",{"name":162,"type":91,"required":74,"nullable":74,"defaultValue":163,"enumValues":164,"constraints":167},"visibility","approximate",[165,163,166],"public","hidden",[],{"name":27,"type":169,"required":74,"nullable":54,"constraints":170,"children":171},"PropertyArea",[],[172,175,178],{"name":173,"type":108,"required":54,"nullable":74,"constraints":174},"total",[110],{"name":176,"type":108,"required":74,"nullable":54,"constraints":177},"usable",[110],{"name":179,"type":108,"required":74,"nullable":54,"constraints":180},"plot",[110],{"name":182,"type":73,"required":74,"nullable":54,"constraints":183},"bedrooms",[110,184],"≤ 1000",{"name":186,"type":73,"required":74,"nullable":54,"constraints":187},"bathrooms",[110,184],{"name":20,"type":189,"required":74,"nullable":54,"constraints":190,"children":191},"PropertyCharacteristics",[],[192,255,259,263,267,271,275,279,283,287,291,295,299,304,308,312,316,320,325,329,333,337,341,345,349,353,357,361,365,369,373,377,381,385,389,393,397,401,405,409,413,417,421,425,439,465],{"name":193,"type":194,"required":74,"nullable":54,"description":195,"constraints":196,"children":197},"translations","TranslationSpec","Traducciones de las descripciones",[],[198,210,219,228,237,246],{"name":199,"type":200,"required":74,"nullable":54,"description":201,"constraints":202,"children":203},"ca","TranslatedDescription","Traduccion en catalán de la descripción",[],[204,207],{"name":95,"type":91,"required":74,"nullable":54,"description":205,"constraints":206},"Título de la descripción",[],{"name":99,"type":91,"required":74,"nullable":54,"description":208,"constraints":209},"Descripción",[],{"name":211,"type":200,"required":74,"nullable":54,"description":212,"constraints":213,"children":214},"en","Traduccion en ingles de la descripción",[],[215,217],{"name":95,"type":91,"required":74,"nullable":54,"description":205,"constraints":216},[],{"name":99,"type":91,"required":74,"nullable":54,"description":208,"constraints":218},[],{"name":220,"type":200,"required":74,"nullable":54,"description":221,"constraints":222,"children":223},"fr","Traduccion en francés de la descripción",[],[224,226],{"name":95,"type":91,"required":74,"nullable":54,"description":205,"constraints":225},[],{"name":99,"type":91,"required":74,"nullable":54,"description":208,"constraints":227},[],{"name":229,"type":200,"required":74,"nullable":54,"description":230,"constraints":231,"children":232},"de","Traduccion en alemán de la descripción",[],[233,235],{"name":95,"type":91,"required":74,"nullable":54,"description":205,"constraints":234},[],{"name":99,"type":91,"required":74,"nullable":54,"description":208,"constraints":236},[],{"name":238,"type":200,"required":74,"nullable":54,"description":239,"constraints":240,"children":241},"pt","Traduccion en portuges de la descripción",[],[242,244],{"name":95,"type":91,"required":74,"nullable":54,"description":205,"constraints":243},[],{"name":99,"type":91,"required":74,"nullable":54,"description":208,"constraints":245},[],{"name":247,"type":200,"required":74,"nullable":54,"description":248,"constraints":249,"children":250},"it","Traduccion en italiano de la descripción",[],[251,253],{"name":95,"type":91,"required":74,"nullable":54,"description":205,"constraints":252},[],{"name":99,"type":91,"required":74,"nullable":54,"description":208,"constraints":254},[],{"name":256,"type":108,"required":74,"nullable":54,"description":257,"constraints":258},"size_built","Superficie construida",[110],{"name":260,"type":108,"required":74,"nullable":54,"description":261,"constraints":262},"porch_size","Metros cuadrados porche",[110],{"name":264,"type":108,"required":74,"nullable":54,"description":265,"constraints":266},"size_terraces","Metros cuadrados terrazas",[110],{"name":268,"type":108,"required":74,"nullable":54,"description":269,"constraints":270},"attic_size","Metros cuadrados ático",[110],{"name":272,"type":108,"required":74,"nullable":54,"description":273,"constraints":274},"storage_dimensions","Dimensiones del trastero",[],{"name":276,"type":73,"required":74,"nullable":54,"description":277,"constraints":278},"doble_bedrooms","Número de habitaciones dobles",[110],{"name":280,"type":73,"required":74,"nullable":54,"description":281,"constraints":282},"suite_bathrooms","Número de baños en suite",[110],{"name":284,"type":73,"required":74,"nullable":54,"description":285,"constraints":286},"num_terraces","Número de terrazas",[110],{"name":288,"type":91,"required":74,"nullable":54,"description":289,"constraints":290},"conservation","Estado de conservación",[],{"name":292,"type":91,"required":74,"nullable":54,"description":293,"constraints":294},"floor","Planta canónica para portales",[],{"name":296,"type":73,"required":74,"nullable":54,"description":297,"constraints":298},"house_floors","Número de plantas de una casa",[76],{"name":300,"type":301,"required":74,"nullable":54,"description":302,"constraints":303},"elevator","boolean","Tiene ascensor (0\u002F1 o Sí\u002FNo)",[],{"name":305,"type":91,"required":74,"nullable":54,"description":306,"constraints":307},"views","Vistas de la propiedad",[],{"name":309,"type":91,"required":74,"nullable":54,"description":310,"constraints":311},"orientation","Orientación (norte, sur, este, oeste)",[],{"name":313,"type":91,"required":74,"nullable":54,"description":314,"constraints":315},"energy_certificate","Certificado energético A-G",[],{"name":317,"type":91,"required":74,"nullable":54,"description":318,"constraints":319},"emissions","Emisiones A-G",[],{"name":321,"type":108,"required":74,"nullable":54,"description":322,"constraints":323},"energy_consumption_value","Consumo (kWh\u002Fm² año)",[76,324],"≤ 999",{"name":326,"type":108,"required":74,"nullable":54,"description":327,"constraints":328},"emissions_value","Emisiones (kg CO₂\u002Fm² año)",[76,324],{"name":330,"type":108,"required":74,"nullable":54,"description":331,"constraints":332},"height","Altura del local",[],{"name":334,"type":108,"required":74,"nullable":54,"description":335,"constraints":336},"facade_meters","Metros de fachada",[],{"name":338,"type":108,"required":74,"nullable":54,"description":339,"constraints":340},"meters_showcase","Metros de escaparate",[],{"name":342,"type":91,"required":74,"nullable":54,"description":343,"constraints":344},"entrace_type","Tipo de entrada de la oficina",[],{"name":346,"type":91,"required":74,"nullable":54,"description":347,"constraints":348},"position","1ª\u002F2ª Linea del mar",[],{"name":350,"type":73,"required":74,"nullable":54,"description":351,"constraints":352},"offices","Número de despachos",[110],{"name":354,"type":73,"required":74,"nullable":54,"description":355,"constraints":356},"meeting_rooms","Número de salas de reuniones",[110],{"name":358,"type":91,"required":74,"nullable":54,"description":359,"constraints":360},"camino","Tipo de suelo",[],{"name":362,"type":91,"required":74,"nullable":54,"description":363,"constraints":364},"terrain_extension","Tamaño (Grande\u002FPequeño)",[],{"name":366,"type":91,"required":74,"nullable":54,"description":367,"constraints":368},"topography","Topografía del terreno",[],{"name":370,"type":73,"required":74,"nullable":54,"description":371,"constraints":372},"num_seats","Número de plazas",[110],{"name":374,"type":91,"required":74,"nullable":54,"description":375,"constraints":376},"dimensions","Dimensiones del aparcamiento",[],{"name":378,"type":91,"required":74,"nullable":54,"description":379,"constraints":380},"turistic_license","Licencia turística",[],{"name":382,"type":73,"required":74,"nullable":54,"description":383,"constraints":384},"construction_year","Año de construcción",[],{"name":386,"type":91,"required":74,"nullable":54,"description":387,"constraints":388},"exposure","Interior o Exterior",[],{"name":390,"type":91,"required":74,"nullable":54,"description":391,"constraints":392},"style","Conservación",[],{"name":394,"type":73,"required":74,"nullable":54,"description":395,"constraints":396},"num_viviendas","Número de viviendas",[],{"name":398,"type":73,"required":74,"nullable":54,"description":399,"constraints":400},"num_locales","Número de locales",[],{"name":402,"type":73,"required":74,"nullable":54,"description":403,"constraints":404},"num_ascensores","Número de ascensores",[],{"name":406,"type":73,"required":74,"nullable":54,"description":407,"constraints":408},"num_parkings","Número de parkings incluidos",[110],{"name":410,"type":73,"required":74,"nullable":54,"description":411,"constraints":412},"num_floors","Número de plantas",[],{"name":414,"type":301,"required":74,"nullable":54,"description":415,"constraints":416},"luxury_property","Propiedad de lujo",[],{"name":418,"type":301,"required":74,"nullable":54,"description":419,"constraints":420},"holiday_renting","Alquiler vacacional",[],{"name":422,"type":301,"required":74,"nullable":54,"description":423,"constraints":424},"purchase_option_rental","Alquiler con opción a compra",[],{"name":426,"type":427,"required":74,"nullable":54,"description":428,"constraints":429,"children":430},"activities","ActivitiesSpec","Actividades permitidas",[],[431,435],{"name":432,"type":84,"required":74,"nullable":74,"description":433,"constraints":434},"predefined","Actividades predefinidas",[],{"name":436,"type":84,"required":74,"nullable":74,"description":437,"constraints":438},"custom","Actividades personalizadas",[],{"name":440,"type":441,"required":74,"nullable":54,"description":442,"constraints":443,"children":444},"num_entrances","NumEntrancesSpec","Número de entradas",[],[445,449,453,457,461],{"name":173,"type":73,"required":74,"nullable":74,"description":446,"defaultValue":447,"constraints":448},"Total de entradas","0",[110],{"name":450,"type":73,"required":74,"nullable":74,"description":451,"defaultValue":447,"constraints":452},"peaton_entrances","Entradas de peatones",[110],{"name":454,"type":73,"required":74,"nullable":74,"description":455,"defaultValue":447,"constraints":456},"moto_entrances","Entradas de motos",[110],{"name":458,"type":73,"required":74,"nullable":74,"description":459,"defaultValue":447,"constraints":460},"van_entrances","Entradas de furgoneta",[110],{"name":462,"type":73,"required":74,"nullable":74,"description":463,"defaultValue":447,"constraints":464},"car_entrances","Entradas de coche",[110],{"name":466,"type":467,"required":74,"nullable":54,"description":468,"constraints":469,"children":470},"floor_breakdown","FloorBreakdownSpec","Desglose de plantas",[],[471,475,479],{"name":472,"type":73,"required":74,"nullable":74,"description":473,"defaultValue":447,"constraints":474},"base_floor","Metros ² de la planta baja",[],{"name":476,"type":73,"required":74,"nullable":74,"description":477,"defaultValue":447,"constraints":478},"first_floor","Metros ² de la primera planta",[],{"name":480,"type":73,"required":74,"nullable":74,"description":481,"defaultValue":447,"constraints":482},"second_floor","Metros ² de la segunda planta",[],{"name":31,"type":484,"required":74,"nullable":54,"constraints":485,"children":486},"array of objects",[],[487,491,495,499],{"name":488,"type":91,"required":54,"nullable":74,"constraints":489},"key",[490],"1–100 chars",{"name":492,"type":91,"required":54,"nullable":74,"constraints":493},"label",[494],"1–200 chars",{"name":496,"type":497,"required":54,"nullable":74,"constraints":498},"value","string | boolean | integer | number",[],{"name":500,"type":301,"required":74,"nullable":74,"defaultValue":501,"constraints":502},"isextra","false",[],{"name":35,"type":73,"required":74,"nullable":54,"constraints":504},[76],{"name":506,"type":301,"required":74,"nullable":54,"constraints":507},"is_featured",[],{"name":509,"type":91,"required":74,"nullable":54,"enumValues":510,"constraints":516},"status",[511,512,513,514,515],"disponible","reservada","retirado","vendida","alquilada",[],[],[519,533,537,540,543,546,550],{"status":520,"description":521,"schemaName":522,"fields":523,"example":531,"exampleHtml":532},"200","Successful response.","ResourceCreated",[524,528],{"name":509,"type":91,"required":74,"nullable":74,"defaultValue":525,"enumValues":526,"constraints":527},"ok",[525],[],{"name":529,"type":73,"required":54,"nullable":74,"constraints":530},"id",[],"{\n  \"status\": \"ok\",\n  \"id\": 1355\n}","\u003Cpre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">{\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">  \"status\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"ok\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">  \"id\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\">1355\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"status":534,"description":535,"schemaName":536},"401","The API key is missing, malformed, unknown, revoked or expired.","ExternalApiError",{"status":538,"description":539,"schemaName":536},"403","The API key lacks the required scope.",{"status":541,"description":542,"schemaName":536},"404","The resource does not exist in this business.",{"status":544,"description":545,"schemaName":536},"409","Duplicate contact or idempotency key reused with a different payload.",{"status":547,"description":548,"schemaName":549},"422","A path parameter, query parameter or body field is invalid.","ExternalValidationError",{"status":551,"description":552,"schemaName":536},"500","Unexpected server error while processing the request.",[554,560,565],{"id":555,"label":556,"lang":557,"code":558,"html":559},"curl","cURL","bash","curl -X PATCH \"https:\u002F\u002Fapi.vestta.io\u002Fv1\u002Fproperties\u002F1\" \\\n  -H \"X-Api-Key: $VESTTA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n  \"title\": \"Updated apartment title\",\n  \"pricing\": {\n    \"sale\": 340000\n  }\n}'","\u003Cpre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#6F42C1\">curl\u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\"> -X\u003C\u002Fspan>\u003Cspan style=\"color:#032F62\"> PATCH\u003C\u002Fspan>\u003Cspan style=\"color:#032F62\"> \"https:\u002F\u002Fapi.vestta.io\u002Fv1\u002Fproperties\u002F1\"\u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\"> \\\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">  -H\u003C\u002Fspan>\u003Cspan style=\"color:#032F62\"> \"X-Api-Key: \u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">$VESTTA_API_KEY\u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"\u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\"> \\\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">  -H\u003C\u002Fspan>\u003Cspan style=\"color:#032F62\"> \"Content-Type: application\u002Fjson\"\u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\"> \\\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#005CC5\">  -d\u003C\u002Fspan>\u003Cspan style=\"color:#032F62\"> '{\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">  \"title\": \"Updated apartment title\",\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">  \"pricing\": {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">    \"sale\": 340000\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">  }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">}'\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":561,"label":562,"lang":561,"code":563,"html":564},"javascript","JavaScript","const response = await fetch('https:\u002F\u002Fapi.vestta.io\u002Fv1\u002Fproperties\u002F1', {\n  method: 'PATCH',\n  headers: {\n    'X-Api-Key': process.env.VESTTA_API_KEY,\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    \"title\": \"Updated apartment title\",\n    \"pricing\": {\n      \"sale\": 340000\n    }\n  }),\n})\n\nconst data = await response.json()","\u003Cpre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#D73A49\">const\u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\"> response\u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\"> =\u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\"> await\u003C\u002Fspan>\u003Cspan style=\"color:#6F42C1\"> fetch\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">(\u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">'https:\u002F\u002Fapi.vestta.io\u002Fv1\u002Fproperties\u002F1'\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">, {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">  method: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">'PATCH'\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">  headers: {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">    'X-Api-Key'\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: process.env.\u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\">VESTTA_API_KEY\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">    'Content-Type'\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">'application\u002Fjson'\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">  },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">  body: \u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\">JSON\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">.\u003C\u002Fspan>\u003Cspan style=\"color:#6F42C1\">stringify\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">({\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">    \"title\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"Updated apartment title\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">    \"pricing\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">      \"sale\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\">340000\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">    }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">  }),\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">})\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#D73A49\">const\u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\"> data\u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\"> =\u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\"> await\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\"> response.\u003C\u002Fspan>\u003Cspan style=\"color:#6F42C1\">json\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">()\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":566,"label":567,"lang":566,"code":568,"html":569},"python","Python","import os\n\nimport requests\n\nresponse = requests.patch(\n    \"https:\u002F\u002Fapi.vestta.io\u002Fv1\u002Fproperties\u002F1\",\n    headers={\"X-Api-Key\": os.environ[\"VESTTA_API_KEY\"]},\n    json={\n        \"title\": \"Updated apartment title\",\n        \"pricing\": {\n            \"sale\": 340000,\n        },\n    },\n)\nresponse.raise_for_status()\ndata = response.json()","\u003Cpre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#D73A49\">import\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\"> os\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#D73A49\">import\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\"> requests\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">response \u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\">=\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\"> requests.patch(\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">    \"https:\u002F\u002Fapi.vestta.io\u002Fv1\u002Fproperties\u002F1\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E36209\">    headers\u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\">=\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">{\u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"X-Api-Key\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: os.environ[\u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"VESTTA_API_KEY\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">]},\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E36209\">    json\u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\">=\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">{\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">        \"title\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#032F62\">\"Updated apartment title\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">        \"pricing\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#032F62\">            \"sale\"\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">: \u003C\u002Fspan>\u003Cspan style=\"color:#005CC5\">340000\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">        },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">    },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">response.raise_for_status()\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#24292E\">data \u003C\u002Fspan>\u003Cspan style=\"color:#D73A49\">=\u003C\u002Fspan>\u003Cspan style=\"color:#24292E\"> response.json()\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",1791929309569]