Skip to main content
PATCH
/
api
/
v1
/
hotel
/
{HotelId}
/
setPassword
Set User Password
curl --request PATCH \
  --url https://api.xenia.team/api/v1/hotel/{HotelId}/setPassword \
  --header 'Content-Type: application/json' \
  --header 'x-client-key: <api-key>' \
  --header 'x-client-secret: <api-key>' \
  --data '{
  "userId": "e25dd448-7ae7-4588-8767-7e1a316547e5",
  "password": "123123"
}'
{
  "data": {},
  "extra_meta": {
    "message": "User password updated successfully"
  }
}

Authorizations

x-client-key
string
header
required
x-client-secret
string
header
required

Path Parameters

HotelId
string<uuid>
required

ID of the hotel

Body

application/json
userId
string<uuid>
required

ID of the user whose password is to be updated

password
string
required

New password to be set

Minimum length: 6

Response

Password updated successfully

data
object
extra_meta
object
I