Update Survey Response
๐งพ Update Survey Response
Endpoint: PATCH /api/v3/surveys/{surveyId}/responses/{responseId}
Auth Required: โ Yes (Bearer Token)
๐ Description
Partially updates a specific survey response by its ID. This is commonly used to correct or update feedback after initial submission.
๐ข URL Parameters
Parameter | Type | Required | Description |
---|---|---|---|
surveyId |
integer/string | โ Yes | Unique identifier for the survey. |
responseId |
integer/string | โ Yes | Unique identifier for the survey response. |
๐ Query Parameters
None.
๐ฅ Request Body
Content-Type: application/json
Submit only the fields you want to update.
๐ง Sample Schema
{ "<responseField>": "<newValue>", "<anotherField>": 3 }
๐ค Request Example
PATCH https://api.briefingedge.com/api/v3/surveys/777/responses/888 Authorization: Bearer <token> Content-Type: application/json { "rating": 5 }
โ Success Response (200 OK)
Returns the updated survey response object.
Example:
{ "ResponseID": 888, "SurveyID": 777, "Question": "Overall satisfaction?", "Rating": 5, "UpdatedOn": "2025-11-07T14:00:00Z" }
โ Error Responses
Code | Message | Description |
---|---|---|
400 | Bad Request | Invalid input or malformed request. |
401 | Unauthorized | Missing or invalid bearer token. |
404 | Not Found | Survey or response ID not found. |
500 | Internal Server Error | Unexpected server-side failure. |