/api/v4/locations/photos/starStar location photos
Marks one or more of a location's additional photos as favourites for priority placement on supported publishers.
Parameters
Body
| Name | Type | Required | Description |
|---|---|---|---|
| input.locationId | string | required | The location's Base64-encoded Relay ID the photos belong to. |
| input.photoIds | array of strings | required | Media file IDs to star (as returned by the get-photos or upload endpoints). |
Sample request
Ready-to-paste body. Replace placeholder IDs and values with yours.
{
"input": {
"locationId": "TG9jYXRpb246MTgwMDI4OQ==",
"photoIds": [
"TWVkaWFGaWxlOjU4Nzg5MzI="
]
}
}Responses
200Photos starred. Returns each affected photo with `starred` set to true; `errors` is null on success.
{
"data": {
"starLocationPhotos": {
"clientMutationId": null,
"photos": [
{
"id": "TWVkaWFGaWxlOjU4Nzg5MzI=",
"url": "https://sy-media-store.s3-us-west-2.amazonaws.com/f868bb3f/59c670a3/ef4ffb12.jpg",
"caption": null,
"starred": true
}
],
"errors": null
}
}
}401Unauthenticated — missing or invalid API key.
Stars the specified photos for a location. Starred photos are given priority placement on publisher directories that support featured imagery, so this is how you promote your best shots to the top of a listing.
Use case — feature a seasonal hero image. After uploading a new storefront photo, star it so it leads the gallery on Google and other supported sites. Pass the media ID from the upload response in photoIds.
Use case — curate a consistent brand set. When managing many locations, star the same category of additional photo (for example, the exterior shot) at each location to keep the public-facing gallery consistent.
Gotchas.
- Only
ADDITIONALcategory photos can be starred.LOGOandCOVERimages are already primary and cannot be starred. - A location can have at most 4 starred photos; starring beyond that limit returns a validation error in the
errorsarray. - To reverse the action, use the corresponding unstar endpoint — this operation only stars.
curl -X POST 'https://listingsapi.com/api/v4/locations/photos/star' \
-H "Authorization: API $LISTINGSAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"input.locationId": "<input.locationId>",
"input.photoIds": "<input.photoIds>"
}'