Skip to Content
HomeLink Hub
Properties

updateDraft

PATCH
/api/v1/property/{id}/draft

Access: Bearer token required.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Path Parameters

id*string

Request Body

application/json
  1. body
type?string
Value in"APARTMENT""HOUSE""VILLA""LAND""COMMERCIAL""SHORTLET""OFFICE"
title?string
Lengthlength <= 200
description?string
Lengthlength <= 5000
location?
details?
pricing?
availability?
shortLet?
amenities?array<>
Itemsitems <= 40

Response Body

Request validation failed (body). The message joins every failed rule with "; ".

application/json
  1. response

The envelope every error uses.

status*integer

HTTP status code, repeated in the body.

success*boolean

Always false for errors.

message*string

Human-readable reason. Safe to show to the user.

data*unknown

Always null for errors.

code?string

Machine-readable error code, present on some errors.

errorData?

Extra details, present on some errors.

Example Request
curl -X PATCH 'http://localhost:4000/api/v1/property/string/draft' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "status": 400,  "success": false,  "message": "\"id\" is required",  "data": null}