Set the cover or move a photoComing soon
Makes a photo the cover (it moves first), or moves it to another part of the listing page. The two page breaks hold three photos each at most.
Coming soon. Makes a photo the cover (it moves first), or moves it to another part of the listing page. The two page breaks hold three photos each at most.
Scopes: listings:write
Pricing: Included with the connection.
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: listings:write
listing_id*stringListing id, or its slug.
1 <= length <= 200media_id*stringMedia id.
1 <= length <= 64application/json- body
1 <= propertieszone?MediaZonegallery: the main gallery. neighbourhood: beside the area description. break_1, break_2: full-width breaks in the page, three photos each at most.
"gallery""neighbourhood""break_1""break_2"is_cover?booleanMake this the cover. It moves to the first position.
The media.
application/json- response
id*stringMedia id.
1 <= length <= 64listing_id*stringListing id.
1 <= length <= 64type*string"image""video""drawing""audio""interactive"url*stringThe file.
uriposition*integerOrder in the gallery, from 0.
0 <= valuezone*MediaZonegallery: the main gallery. neighbourhood: beside the area description. break_1, break_2: full-width breaks in the page, three photos each at most.
"gallery""neighbourhood""break_1""break_2"is_cover*booleanThe first photo, used as the listing’s cover.
edit?|nullsize_bytes?|File size.
0 <= valueuploaded_at*stringAdded.
date-timecurl -X PATCH 'https://api.matchai.co/v1/listings/string/media/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "listing_id": "string", "type": "image", "url": "http://example.com", "position": 0, "zone": "gallery", "is_cover": true, "edit": { "kind": "string", "edited_from_media_id": "string", "original_available": true }, "size_bytes": 0, "uploaded_at": "2019-08-24T14:15:22Z"}