Skip to Content
HomeLink Hub
Admin

create

POST
/api/v1/admin/featured-collections

Access: Bearer token required.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

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

Request Body

application/json
  1. body
kind*string
Value in"location""property_type""promotion"
location?|
propertyTypes?array<unknown>|array<>
propertyIds?array<unknown>|array<>
Itemsitems <= 24
sortBy?string
Value in"newest""top_rated""price_low""price_high"
maxItems?integer
Range1 <= value <= 24
title*string
Length2 <= length <= 80
subtitle?string
Lengthlength <= 200
badge?string
Lengthlength <= 30
isActive?boolean
startsAt?|
Formatdate-time
endsAt?|

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 POST 'http://localhost:4000/api/v1/admin/featured-collections' \  -H 'Content-Type: application/json' \  -d '{  "kind": "location",  "title": "string"}'
Example Response
{  "status": 400,  "success": false,  "message": "\"kind\" is required",  "data": null}