Contendar Help

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

ParameterTypeNotes
testimonialSubmissionIdUUIDThe ID of the submission.

Request body

FieldTypeRequiredNotes
projectIdUUIDyesThe project the submission belongs to.
statusstringnopending, approved, or rejected.
contentstringnoNew review text.
ratingintegernoA star rating from 1 to 5.
tagsarray of stringnoReplaces the current tags.
sentimentstringnopositive, neutral, or negative.
customerIdUUID or nullnoLink 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?