Update submission
Change one or more fields on a testimonial submission. Send only the fields you want to change.
PATCH /testimonials/submissions/{testimonialSubmissionId}Authentication
Send your API key as a bearer token. See Authentication .
Path parameters
| Parameter | Type | Notes |
testimonialSubmissionId | UUID | The ID of the submission. |
Request body
| Field | Type | Required | Notes |
projectId | UUID | yes | The project the submission belongs to. |
status | string | no | pending, approved, or rejected. |
content | string | no | New review text. |
rating | integer | no | A star rating from 1 to 5. |
tags | array of string | no | Replaces the current tags. |
sentiment | string | no | positive, neutral, or negative. |
customerId | UUID or null | no | Link to a customer, or send null to unlink. |
{
"projectId": "8a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d",
"status": "approved",
"tags": ["case-study", "enterprise"]
}Response
Returns the updated submission. See List testimonial submissions for the meaning of each field.
Errors
Returns 404 if no submission with that ID exists in the project.
Example
curl -X PATCH "https://app.contendar.com/api/v1/testimonials/submissions/b1d0c3a2-6f4e-4b8a-9c1d-2e3f4a5b6c7d" \
-H "Authorization: Bearer ck_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "projectId": "YOUR_PROJECT_ID", "status": "approved" }'Related pages
Was this helpful?