Update Property
curl --request PATCH \
--url https://api.skortorent.com/api/v1/property-management/properties/{property_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace_id": "Ab12Cd",
"rent_amount": 1325
}
'import requests
url = "https://api.skortorent.com/api/v1/property-management/properties/{property_id}"
payload = {
"workspace_id": "Ab12Cd",
"rent_amount": 1325
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({workspace_id: 'Ab12Cd', rent_amount: 1325})
};
fetch('https://api.skortorent.com/api/v1/property-management/properties/{property_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.skortorent.com/api/v1/property-management/properties/{property_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'workspace_id' => 'Ab12Cd',
'rent_amount' => 1325
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.skortorent.com/api/v1/property-management/properties/{property_id}"
payload := strings.NewReader("{\n \"workspace_id\": \"Ab12Cd\",\n \"rent_amount\": 1325\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.skortorent.com/api/v1/property-management/properties/{property_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workspace_id\": \"Ab12Cd\",\n \"rent_amount\": 1325\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.skortorent.com/api/v1/property-management/properties/{property_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workspace_id\": \"Ab12Cd\",\n \"rent_amount\": 1325\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Property retrieved successfully",
"data": {
"property": {
"rent_amount": 1250,
"street": "Calle Mayor",
"street_number": 12,
"postal_code": "28013",
"floor": 3,
"letter": "B",
"province": "Madrid",
"municipality": "Madrid",
"property_id": "6655c944c2e40f249b664e74",
"workspace_id": "Ab12Cd",
"entrance_stairwell": "2",
"bedrooms": 2,
"bathrooms": 1,
"property_reference": "MAD-12-3B"
}
}
}{
"status": "error",
"message": "Request validation failed",
"errors": [
{
"field": "properties.0.street",
"message": "properties.0.street is required"
}
]
}{
"status": "error",
"message": "Request validation failed",
"errors": [
{
"field": "properties.0.street",
"message": "properties.0.street is required"
}
]
}{
"status": "error",
"message": "Request validation failed",
"errors": [
{
"field": "properties.0.street",
"message": "properties.0.street is required"
}
]
}{
"status": "error",
"message": "Request validation failed",
"errors": [
{
"field": "properties.0.street",
"message": "properties.0.street is required"
}
]
}{
"status": "error",
"message": "Request validation failed",
"errors": [
{
"field": "properties.0.street",
"message": "properties.0.street is required"
}
]
}{
"status": "error",
"message": "Request validation failed",
"errors": [
{
"field": "properties.0.street",
"message": "properties.0.street is required"
}
]
}Property
Update Property
Updates one or more fields on a property. Send workspace_id and at
least one property field. The landlord must have the OWNER, GOLD, or
SILVER role.
The resulting property is checked using the same validation and duplicate detection rules as property creation.
PATCH
/
properties
/
{property_id}
Update Property
curl --request PATCH \
--url https://api.skortorent.com/api/v1/property-management/properties/{property_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace_id": "Ab12Cd",
"rent_amount": 1325
}
'import requests
url = "https://api.skortorent.com/api/v1/property-management/properties/{property_id}"
payload = {
"workspace_id": "Ab12Cd",
"rent_amount": 1325
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({workspace_id: 'Ab12Cd', rent_amount: 1325})
};
fetch('https://api.skortorent.com/api/v1/property-management/properties/{property_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.skortorent.com/api/v1/property-management/properties/{property_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'workspace_id' => 'Ab12Cd',
'rent_amount' => 1325
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.skortorent.com/api/v1/property-management/properties/{property_id}"
payload := strings.NewReader("{\n \"workspace_id\": \"Ab12Cd\",\n \"rent_amount\": 1325\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.skortorent.com/api/v1/property-management/properties/{property_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workspace_id\": \"Ab12Cd\",\n \"rent_amount\": 1325\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.skortorent.com/api/v1/property-management/properties/{property_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workspace_id\": \"Ab12Cd\",\n \"rent_amount\": 1325\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Property retrieved successfully",
"data": {
"property": {
"rent_amount": 1250,
"street": "Calle Mayor",
"street_number": 12,
"postal_code": "28013",
"floor": 3,
"letter": "B",
"province": "Madrid",
"municipality": "Madrid",
"property_id": "6655c944c2e40f249b664e74",
"workspace_id": "Ab12Cd",
"entrance_stairwell": "2",
"bedrooms": 2,
"bathrooms": 1,
"property_reference": "MAD-12-3B"
}
}
}{
"status": "error",
"message": "Request validation failed",
"errors": [
{
"field": "properties.0.street",
"message": "properties.0.street is required"
}
]
}{
"status": "error",
"message": "Request validation failed",
"errors": [
{
"field": "properties.0.street",
"message": "properties.0.street is required"
}
]
}{
"status": "error",
"message": "Request validation failed",
"errors": [
{
"field": "properties.0.street",
"message": "properties.0.street is required"
}
]
}{
"status": "error",
"message": "Request validation failed",
"errors": [
{
"field": "properties.0.street",
"message": "properties.0.street is required"
}
]
}{
"status": "error",
"message": "Request validation failed",
"errors": [
{
"field": "properties.0.street",
"message": "properties.0.street is required"
}
]
}{
"status": "error",
"message": "Request validation failed",
"errors": [
{
"field": "properties.0.street",
"message": "properties.0.street is required"
}
]
}Authorizations
Generate a shared token via /authenticate/token, then pass it as
Authorization: Bearer <token>.
Path Parameters
Unique property identifier.
Body
application/json
Public workspace UUID.
Example:
"Ab12Cd"
Example:
1325
Minimum string length:
1Required range:
x >= 1Minimum string length:
1Required range:
x >= 0Minimum string length:
1Minimum string length:
1Minimum string length:
1Minimum string length:
1Required range:
x >= 0Required range:
x >= 0Minimum string length:
1