Delete Testimonial
Remove a testimonial from the testimonial wall's draft. A later read of that id on this testimonial wall returns 404. On a published testimonial wall, visitors still see the testimonial until you publish. When the delete is live, the testimonial is deleted, or only removed from this testimonial wall when other testimonial walls still show it. To hide a testimonial without removing it, send is_hidden: true to Update Testimonial.
Request
DELETE /walls/{wallId}/testimonials/{id}
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
wallId | string | Yes | Testimonial wall UUID. See Identifiers. |
id | string | Yes | Testimonial UUID on that testimonial wall |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
draft_version | integer | Yes | Current counter from Get Testimonial Wall. Minimum 1. Missing, not an integer, or below 1 is 422. A value that is not current is 409. |
Example Request
curl -X DELETE "https://app.easy.tools/api/v1/walls/4a0c8e55-1d69-4b72-9f30-7c2e6b1a8d94/testimonials/5e1b8d40-7c92-4f3a-b615-2a9d0e4c7f83" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"draft_version": 3
}'
Response
Success Response (204)
No response body and no preview_url. The counter still moves forward.
Error Responses
Not Found Error (404)
See Identifiers.
{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Resource not found"
}
}
Conflict Error (409)
draft_version is not the current counter. Read the testimonial wall and retry with that value. Nothing is saved.
{
"error": {
"code": "CONFLICT",
"message": "The draft was edited elsewhere. GET the draft and retry with the current draft_version."
}
}
Validation Error (422 Unprocessable Entity)
{
"error": {
"code": "VALIDATION_ERROR",
"message": "The given data was invalid",
"details": {
"draft_version": ["draft_version must not be less than 1"]
}
}
}
Authentication, permission, and rate-limit errors are described in Authorization.