Skip to main content
PATCH
/
apartment-owners
/
{id}
Update apartment owner
curl --request PATCH \
  --url https://str.keroshospitality.com/api/v1/apartment-owners/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "John Doe",
  "taxisUsername": "keros",
  "taxisPassword": "password123"
}
'
{
  "apartmentOwner": {
    "id": 42,
    "name": "John Doe",
    "taxisUsername": "keros",
    "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
string
required

Taxis username

Body

application/json
name
string
Example:

"John Doe"

taxisUsername
string
Example:

"keros"

taxisPassword
string
Example:

"password123"

Response

Apartment owner updated successfully

apartmentOwner
object
requestId
string
Example:

"a1b2c3d4-e5f6-7890-a1b2-c3d4e5f67890"