Delete file headers
Overview
Delete a file-header configuration and its associated sample file from S3. The {fileHeaderId} path parameter is the file-header ID and must be an existing file-header configuration. Emits an audit event (CAMPAIGN_FILE_HEADERS_DELETED).
Prerequisites
- A bearer token in the
Authorizationheader. - The
fileHeaderIdof the record you are targeting.
Base URL
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
DELETE /api/v1/campaign/automate/file-headers/{fileHeaderId}
Authentication
-
Requires a bearer token in the
Authorization: Bearer <bearer-token>header. -
Account bearer. The owning campaign must belong to the caller's
person.company_idand be of typeautomation, else403.
Rate limit
- No rate limit.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
fileHeaderId | integer | Required | The file-header id. Must be an existing record (else 422). |
How it works
200with a success message in thedataobject.403if the caller does not own the configuration's campaign or the campaign is not an automation campaign.422if{fileHeaderId}does not exist.
Response
200 OK · 200
200{
"data": {
"status": "success",
"message": "File headers deleted successfully"
}
}403 Not authorized · 403
403{
"message": "Not authorized to delete this file header configuration",
"status": "error",
"errors": []
}422 Validation error · 422
422{
"message": "The selected id is invalid.",
"errors": {
"id": [
"The selected id is invalid."
]
}
}Errors
| Status | Meaning |
|---|---|
401 | The bearer token is missing, expired, or invalid |
403 | Not authorized |
422 | The fileHeaderId does not exist or is invalid |
500 | Unexpected server error |
Example request
curl --request DELETE \
--url "https://production-api.shoutaboutus.com/api/v1/campaign/automate/file-headers/123" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json'Updated 18 days ago
Did this page help you?
