Skip to main content

Update Testimonial

Change a testimonial. Only the keys you send are written. Approve it with { "status": "approved" }, and hide it with { "is_hidden": true }. type stays as it was created — a different type returns 422. The write is a draft write and does not publish. A testimonial on several testimonial walls is one record, so once the update is live every testimonial wall shows it. See Approval and Testimonials on several testimonial walls.

Request​

PATCH /walls/{wallId}/testimonials/{id}

Path Parameters​

ParameterTypeRequiredDescription
wallIdstringYesTestimonial wall UUID. See Identifiers.
idstringYesTestimonial UUID on that testimonial wall

Request Body​

ParameterTypeRequiredDescription
draft_versionintegerYesCurrent counter from Get Testimonial Wall. Minimum 1. Missing, not an integer, or below 1 is 422. A value that is not current is 409.
typestringNoThe value set on create. Another value is 422.
namestringNoReviewer name, 1–255 characters, not only spaces
statusstringNopending or approved
is_hiddenbooleanNoHide from the testimonial wall
positionstring|nullNoReviewer position or company, at most 255 characters
contentstringNoTestimonial text. Cannot be blank on a text testimonial.
website_urlstring|nullNoReviewer website, at most 255 characters
avatar_urlstring|nullNoReviewer avatar address, at most 255 characters
ratinginteger|nullNo1 to 5
image_urlsarrayNoImage addresses, at most 10, each at most 2048 characters. Replaces the list.
gif_urlsarrayNoGIF addresses, at most 10, each at most 2048 characters. Replaces the list.
video_urlstring|nullNoVideo address, at most 255 characters. Cannot be cleared or blank on a video testimonial.
author_emailstring|nullNoReviewer email address, at most 255 characters. No confirmation email is sent.
dated_atstring|nullNoDate shown on the card, YYYY-MM-DDTHH:MM:SS(.sss)Z (seconds required; fractional seconds optional). null shows created_at.

is_confirmed, confirmed_at, source, order, created_at, and updated_at are read-only. null clears position, website_url, avatar_url, video_url (not on a video testimonial), rating, dated_at, and author_email. On every other field, null returns 422.

Example Request​

Approve a pending testimonial:

curl -X PATCH "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,
"status": "approved"
}'

Response​

Success Response (200)​

{
"data": {
"id": "5e1b8d40-7c92-4f3a-b615-2a9d0e4c7f83",
"status": "approved",
"is_hidden": false,
"type": "text",
"name": "Mark Davis",
"position": null,
"content": "Clear and practical.",
"website_url": null,
"avatar_url": null,
"rating": 4,
"image_urls": [],
"gif_urls": [],
"video_url": null,
"author_email": "mark@example.com",
"is_confirmed": true,
"confirmed_at": "2026-01-19T14:05:00.000Z",
"dated_at": null,
"source": null,
"order": 1,
"created_at": "2026-01-19T14:00:00.000Z",
"updated_at": "2026-01-20T10:00:00.000Z",
"preview_url": "https://app.easy.tools/walls/4a0c8e55-1d69-4b72-9f30-7c2e6b1a8d94/preview?expires=...&signature=...",
"draft_version": 4,
"draft_updated_at": "2026-01-20T10:00:00.000Z"
}
}

Response Fields​

See Testimonial Object. preview_url on data is minted for this response. draft_version and draft_updated_at are on data as well.

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)​

A different type, a blank name, blank content on a text testimonial, a cleared or blank video_url on a video testimonial, null on a field that cannot be cleared, or a field outside its limits. Nothing is saved.

{
"error": {
"code": "VALIDATION_ERROR",
"message": "The given data was invalid",
"details": {
"type": ["type cannot be changed"]
}
}
}

Authentication, permission, and rate-limit errors are described in Authorization.