Skip to main content
PATCH
/
apartments
/
{id}
Update apartment
curl --request PATCH \
  --url https://str.keroshospitality.com/api/v1/apartments/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Seaside Villa",
  "address": "123 Beach Road",
  "registryId": "00002087410",
  "ownerId": 42,
  "postalCode": "10000"
}
'
{
  "apartment": {
    "id": 42,
    "name": "Seaside Villa",
    "address": "123 Beach Road",
    "registryId": "00002087410",
    "ownerId": 42,
    "createdAt": "2025-01-01T12:00:00Z",
    "updatedAt": "2025-01-01T12:00:00Z"
  },
  "requestId": "a1b2c3d4-e5f6-7890-a1b2-c3d4e5f67890"
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

Path Parameters

id
integer
required

Apartment ID

Body

application/json
name
string
Example:

"Seaside Villa"

address
string
Example:

"123 Beach Road"

registryId
string
Example:

"00002087410"

ownerId
integer
Example:

42

postalCode
string
Example:

"10000"

Response

Apartment updated successfully

apartment
object
requestId
string
Example:

"a1b2c3d4-e5f6-7890-a1b2-c3d4e5f67890"