Change display-connected flag (non-prod)
Overview
Non-production only (returns 403 on production). Sets the display_as_connected flag on the (store_id, review_site_id) store-review-site row. When Y, the connection page shows the site as Connected without a live platform connection; enabling requires the row to already have a review_site_url. When N, the connected display is turned off.
Prerequisites
- Either a bearer token in the
Authorizationheader, or the invitehashthis endpoint accepts in place of one.
Base URL
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
POST /api/v1/store-review-site/change-display-connected
Authentication
-
A bearer token is optional here. Send one to act as a signed-in user, or supply the documented
hashinstead. -
Auth-optional — this endpoint lives in the public
store-review-sitegroup. Authenticate one of two ways. -
Either send an admin/account bearer token. In that case
store_idis scoped by an ownership check. -
Or supply an emailed invite
hashwith no token. Thestore_idis then derived from the hash, so a recipient can only toggle their own store. -
The endpoint is blocked entirely (
403) on production.
Rate limit
- 30 requests/min per IP.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
review_site_id | integer | Required | Must be an existing review site. |
store_id | integer | Required | Must be an existing location. Token flow: must be in caller's hierarchy (an ownership check). Hash flow: overridden by the store encoded in hash (any supplied value is ignored). |
display_as_connected | string (Y|N) | Required | Y = mark connected (requires an existing review_site_url); N = turn off. |
hash | string | Optional | Invite hash (alphanumeric). When present, grants tokenless access and supplies store_id (must decode to entity type 15). |
{
"review_site_id": "<reviewSiteId>",
"store_id": "<storeId>",
"display_as_connected": "Y"
}How it works
200—{ data: { status: 'success', message } }('Review site marked as connected' / 'Connected display turned off').400— no matching store-review-site row, or enabling without a storedreview_site_url.403— called on production (route disabled) or unauthorised.422— validation failure.
Response
200 OK · 200
200{
"data": {
"status": "success",
"message": "Review site marked as connected"
}
}400 Missing URL · 400
400{
"message": "Bad Request",
"status": "error",
"errors": {
"message": "Review site URL is required before marking this site as connected."
}
}Errors
| Status | Meaning |
|---|---|
400 | Missing URL |
401 | The bearer token is missing, expired or invalid |
403 | Returned on production |
422 | Returned validation failure |
500 | Unexpected server error |
Example request
curl --request POST \
--url "https://development-api.shoutaboutus.com/api/v1/store-review-site/change-display-connected" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"review_site_id": "<reviewSiteId>", "store_id": "<storeId>", "display_as_connected": "Y"}'Updated 9 days ago
