Delete a file format
Overview
Remove a column mapping and its sample file.
Use this to retire an automation.
You'll need the mapping id.
The mapping is removed; automatic sending for it stops.
Prerequisites
- A bearer token. See Authentication.
- The file format's id (
fileHeaderId).
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
Account token
- The file format's campaign must be an
automationcampaign in your own account; otherwise403.
Rate limit
This endpoint has no rate limit.
Request parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
fileHeaderId | path | integer | Yes | The file format id. Must exist; otherwise 422. |
Request body
None.
Request payload
None.
Response body
The payload is inside data.
| Field | Type | Description |
|---|---|---|
status | string | success. |
message | string | File headers deleted successfully. |
Response payload
{
"data": {
"status": "success",
"message": "File headers deleted successfully"
}
}Examples
Success payload
See Response payload.
Error payload
403 Not your file format
{
"message": "Not authorized to delete this file header configuration",
"status": "error",
"errors": []
}404 Already deleted
{
"message": "File header configuration not found",
"status": "error",
"errors": []
}422 Unknown file format
{
"message": "The selected id is invalid.",
"errors": {
"id": [
"The selected id is invalid."
]
}
}| Status | Meaning |
|---|---|
200 | The file format is deleted. |
401 | The token is missing, expired or invalid. |
403 | The file format's campaign isn't an automation campaign in your account. |
404 | The file format was already deleted. |
422 | No file format has that id. |
500 | Unexpected server error. |
Example request
curl --request DELETE \
--url "https://production-api.shoutaboutus.com/api/v1/campaign/automate/file-headers/4" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json'Updated 17 days ago
Did this page help you?
