Admin
preview
POST
Access: Bearer token required.
bearerAuthheader
AuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
application/json- body
kind*stringValue in
"location""property_type""promotion"location?|propertyTypes?array<unknown>|array<>propertyIds?array<unknown>|array<>Items
items <= 24sortBy?stringValue in
"newest""top_rated""price_low""price_high"maxItems?integerRange
1 <= value <= 24Request validation failed (body). The message joins every failed rule with "; ".
application/json- response
The envelope every error uses.
status*integerHTTP status code, repeated in the body.
success*booleanAlways false for errors.
message*stringHuman-readable reason. Safe to show to the user.
data*unknownAlways null for errors.
code?stringMachine-readable error code, present on some errors.
errorData?Extra details, present on some errors.
curl -X POST 'http://localhost:4000/api/v1/admin/featured-collections/preview' \ -H 'Content-Type: application/json' \ -d '{ "kind": "location"}'Example Response
{ "status": 400, "success": false, "message": "\"kind\" is required", "data": null}
HomeLink Hub