Delete a review widget
Overview
Remove a widget. Sites still embedding it show nothing.
Use this to retire a widget.
You'll need the widget's unique_id.
The widget is removed.
Prerequisites
- A bearer token. See Authentication.
- The widget's
unique_id, from List review widgets.
Base URL
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
DELETE /api/v1/account/widget/delete
Authentication
Partner or Account token
- Send the
unique_idof a widget in your own account tree. - A
unique_idthat doesn't match a widget is rejected with422.
Rate limit
This endpoint has no rate limit.
Request parameters
None.
Request body
Sent as JSON in the body of the DELETE request.
| Field | Type | Required | Description |
|---|---|---|---|
unique_id | string | Yes | The widget to delete. Must match an existing widget. |
Request payload
{
"unique_id": "abc123"
}Response body
The payload is inside data.
| Field | Type | Description |
|---|---|---|
message | string | Widget has been deleted successfully. |
status | string | success. |
Response payload
{
"data": {
"message": "Widget has been deleted successfully",
"status": "success"
}
}Examples
Success payload
See Response payload.
Error payload
422 unique_id is missing
{
"message": "The unique id field is required.",
"errors": {
"unique_id": [
"The unique id field is required."
]
}
}422 unique_id doesn't match a widget
{
"message": "The selected unique id is invalid.",
"errors": {
"unique_id": [
"The selected unique id is invalid."
]
}
}| Status | Meaning |
|---|---|
200 | The widget was deleted. |
401 | The token is missing, expired or invalid. |
422 | unique_id is missing or doesn't match a widget. |
500 | Unexpected server error. |
Example request
curl --request DELETE \
--url "https://production-api.shoutaboutus.com/api/v1/account/widget/delete" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"unique_id": "abc123"}'Updated 17 days ago
Did this page help you?
