Delete a scheduled report
Overview
Stop a scheduled email report.
Use this when a report is no longer wanted.
You'll need the report_id.
The report stops. (A second endpoint, Delete an account email report, does the same for account-user reports.)
Prerequisites
- A bearer token. See Authentication.
- The report's
report_id, from List scheduled reports.
Base URL
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
DELETE /api/v1/email-report/delete
Authentication
Partner or Account token
- The report must belong to your own account, or to an account beneath it in your tree.
- A
report_idoutside your tree is rejected with422and nothing is deleted.
Rate limit
This endpoint has no rate limit.
Request parameters
None.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
report_id | integer | Yes | The report to delete. Must exist and be in your own account or an account beneath it in your tree. |
Request payload
{
"report_id": 42
}Response body
The payload is inside data.
| Field | Type | Description |
|---|---|---|
status | string | success. |
response | string | The confirmation message, Report has been deleted successfully!. |
Response payload
{
"data": {
"status": "success",
"response": "Report has been deleted successfully!"
}
}Examples
Success payload
See Response payload.
Error payload
422 Report doesn't exist or is outside your tree
{
"message": "The selected report id is invalid. (and 1 more error)",
"errors": {
"report_id": [
"The selected report id is invalid.",
"The selected report id does not belong to your company hierarchy."
]
}
}422 report_id missing
{
"message": "The report id field is required.",
"errors": {
"report_id": [
"The report id field is required."
]
}
}500 Report already deleted
The report was already deleted:
{
"message": "An unexpected error occurred. Please try again later or contact your account rep.",
"status": "error",
"errors": []
}| Status | Meaning |
|---|---|
200 | The report is deleted. |
401 | The token is missing, expired or invalid. |
422 | report_id is missing, or the report doesn't exist or is outside your tree. |
500 | The report was already deleted, or an unexpected server error. |
Example request
curl --request DELETE \
--url "https://production-api.shoutaboutus.com/api/v1/email-report/delete" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"report_id": 42}'Updated 17 days ago
Did this page help you?
