Update a feedback record
Updates specific fields of a feedback record data point.
Changing value_text clears the server-generated enrichment fields computed from it
(sentiment, sentiment_score, emotions, value_text_translated,
translation_lang_key) and queues re-enrichment; changing language clears and
re-queues the translation pair only. The response reflects the cleared state — the
fields are absent until the asynchronous re-enrichment completes.
Path Parameters
Feedback Record ID (UUID)
Body Parameters
Update language. NULL bytes not allowed.
Update metadata. NULL bytes (\x00 or \u0000) are not allowed in JSON keys or values.
User ID (e.g., anonymous ID or email hash)
Update boolean response
Update date response. Must be between 1970-01-01 and 2080-12-31.
Update the stable id of the selected option in the source system (e.g. a survey choice id), stored alongside value_text for durable option identity. Opaque to Hub. NULL bytes not allowed.
Update numeric response. Must be between -1e15 and +1e15.
Update text response. NULL bytes not allowed.
Returns
Update a feedback record
curl http://localhost:8080/v1/feedback-records/$ID \
-X PATCH \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $HUB_API_KEY" \
-d '{}'{
"id": "018e1234-5678-9abc-def0-123456789abc",
"collected_at": "2024-01-15T10:30:00Z",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T11:00:00Z",
"source_type": "survey",
"field_id": "q1",
"field_type": "rating",
"field_label": "How satisfied are you?",
"value_number": 10,
"source_id": "survey-123",
"source_name": "Q1 NPS Survey",
"user_id": "user-abc-123",
"tenant_id": "org-123",
"submission_id": "550e8400-e29b-41d4-a716-446655440000",
"language": "en",
"metadata": {
"tags": [
"important",
"follow-up"
]
}
}{
"type": "https://hub.formbricks.com/problems/not-found",
"title": "Not Found",
"status": 404,
"code": "not_found",
"detail": "feedback record not found",
"instance": "/v1/feedback-records/018e1234-5678-9abc-def0-123456789abc",
"request_id": "0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"details": {
"resource_type": "feedback record"
}
}Returns Examples
{
"id": "018e1234-5678-9abc-def0-123456789abc",
"collected_at": "2024-01-15T10:30:00Z",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T11:00:00Z",
"source_type": "survey",
"field_id": "q1",
"field_type": "rating",
"field_label": "How satisfied are you?",
"value_number": 10,
"source_id": "survey-123",
"source_name": "Q1 NPS Survey",
"user_id": "user-abc-123",
"tenant_id": "org-123",
"submission_id": "550e8400-e29b-41d4-a716-446655440000",
"language": "en",
"metadata": {
"tags": [
"important",
"follow-up"
]
}
}{
"type": "https://hub.formbricks.com/problems/not-found",
"title": "Not Found",
"status": 404,
"code": "not_found",
"detail": "feedback record not found",
"instance": "/v1/feedback-records/018e1234-5678-9abc-def0-123456789abc",
"request_id": "0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"details": {
"resource_type": "feedback record"
}
}