Change URL Status (enable/disable landing page)
Overview
Toggle url_status (enable/disable) of a store's landing-page URL — drives the "Enable URL" column on the Landing Page grid. A landing_page_url may be supplied in the same request and is saved to the record; enabling requires a landing-page URL (sent here or already stored). Disabling never requires a URL.
Prerequisites
- A bearer token. Callable with Partner and Account tokens.
Base URL
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
POST /api/v1/store-review-site/change-url-status
Authentication
-
Requires a bearer token in the
Authorization: Bearer <bearer-token>header. -
Who can call it: Partner and Account tokens.
-
Authenticated-only (no public hash flow). The guard resolves the api guard explicitly.
-
store_idmust pass an ownership check, so it must be in the auth user's hierarchy. -
A Partner reaches any store under its tree. An Account reaches only its own account's.
Rate limit
- No rate limit.
Request body
- Body:
| Field | Type | Required | Description |
|---|---|---|---|
store_id | integer | yes | Must be an existing location inside your own account tree. |
review_site_id | integer | yes | Must be an existing review site. |
url_status | string (enable/disable) | yes | enable needs a landing-page URL (supplied here or already stored); disable never requires one. |
landing_page_url | string (URL) | conditional | Validated nullable + url. Required when enabling and no URL is saved on the row yet; saved to the record whenever provided. |
{
"store_id": 10,
"review_site_id": 5,
"url_status": "enable",
"landing_page_url": "https://example.com/landing"
}Response
data.status(string) —success.data.message(string) —URL enabled successfully/URL disabled successfully.
Errors
422— a required field is missing,url_statusnot inenable/disable, enabling without any URL (supplied or stored), orlanding_page_urlis not a valid URL.400— no matching (store, review-site) row (No Record Found!).401— missing/invalid token.500— unexpected server error.
200 OK - URL enabled · 200
200{
"data": {
"status": "success",
"message": "URL enabled successfully"
}
}200 OK - URL disabled · 200
200{
"data": {
"status": "success",
"message": "URL disabled successfully"
}
}422 Unprocessable Entity - URL required when enabling · 422
422{
"message": "The landing page URL is required when enabling the URL.",
"errors": {
"landing_page_url": [
"The landing page URL is required when enabling the URL."
]
}
}400 Bad Request - record not found · 400
400{
"message": "Bad Request",
"status": "error",
"errors": {
"message": "No Record Found!"
}
}401 Unauthorized - missing/invalid token · 401
401{
"message": "Unauthenticated."
}Errors
| Status | Meaning |
|---|---|
400 | Bad Request - record not found |
401 | Unauthorized - missing/invalid token |
422 | Unprocessable Entity - URL required when enabling |
500 | Returned unexpected server error |
Example request
curl --request POST \
--url "https://production-api.shoutaboutus.com/api/v1/store-review-site/change-url-status" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"store_id": 10, "review_site_id": 5, "url_status": "enable", "landing_page_url": "https://example.com/landing"}'Updated 11 days ago
