Reorder a site’s listingsComing soon
Puts the site’s listings in a new order. Send every listing on the site.
Coming soon. This is documented ahead of launch so you can plan your integration; it is not available yet.
PUT
Coming soon. Puts the site’s listings in a new order. Send every listing on the site.
Scopes: sites:write
Pricing: Included with the connection.
header
AuthorizationBearer <matchai_<base62>>A personal API key, sent as Authorization: Bearer matchai_…. Create keys in Matchai under Settings → Connectors → Advanced (for developers). A key starts with matchai_ followed by letters and digits, carries the scopes chosen when it was created, and can be revoked at any time. Keys reach only the account that created them: to serve other professionals, use Connect with Matchai.
Scope: sites:write
site_id*stringSite id.
Length
1 <= length <= 64application/json- body
listing_ids*array<>EVERY listing on the site, in the new order.
Items
1 <= itemsListings on the site, in the new order.
application/json- response
data*array<>In site order.
curl -X PUT 'https://api.matchai.co/v1/sites/string/listings' \ -H 'Content-Type: application/json' \ -d '{ "listing_ids": [ "string" ]}'Example Response
{ "data": [ { "listing": { "id": "string", "slug": "string", "url": "http://example.com", "title": "string", "status": "draft", "availability": "available", "price": { "amount": 1, "currency": "string" }, "city": "string", "neighbourhood": "string", "bedrooms": 0, "bathrooms": 0, "cover_image_url": "http://example.com" }, "featured": true, "position": 0, "added_at": "2019-08-24T14:15:22Z" } ]}