# Update Survey Feedback (Partial Update)

Use the `PATCH /calls/surveys/{survey_id}/` endpoint to update specific fields in an existing survey. This allows you to modify selected feedback about a service experience without altering the entire survey.

**Path Parameter**

| Name        | Type   | Description                        |
| ----------- | ------ | ---------------------------------- |
| `survey_id` | string | Unique ID of the survey to update. |

**Request Body**

The body contains only the fields you want to update. All fields are optional, but you must include at least one. Below are the fields available for update:

<table><thead><tr><th>Name</th><th width="188">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>disappointment_level</code></td><td>string</td><td>Level of disappointment. Values are <code>Very</code>, <code>Somewhat</code>, <code>Not</code></td></tr><tr><td><code>disappointment_reason</code></td><td>string</td><td>Reason for disappointment</td></tr><tr><td><code>problem_solved</code></td><td>boolean</td><td>Indicates if the issue was resolved</td></tr><tr><td><code>responded_immediately</code></td><td>boolean</td><td>Whether the mechanic responded promptly</td></tr><tr><td><code>is_carried_along</code></td><td>boolean</td><td>Indicates if the customer was informed</td></tr><tr><td><code>was_asked_before_maintenance</code></td><td>boolean</td><td>Mechanic asked before proceeding with maintenance</td></tr><tr><td><code>had_effective_communication</code></td><td>boolean</td><td>Indicates effective communication</td></tr><tr><td><code>kept_appointment</code></td><td>boolean</td><td>Indicates if the appointment was kept</td></tr><tr><td><code>met_at_location</code></td><td>boolean</td><td>Mechanic met at the agreed location</td></tr><tr><td><code>met_at_shop</code></td><td>boolean</td><td>Mechanic met at the shop</td></tr><tr><td><code>auto_technician_rating</code></td><td>integer</td><td>Rating for the mechanic</td></tr><tr><td><code>auto_technician_feedback</code></td><td>string</td><td>Feedback for the mechanic</td></tr><tr><td><code>customer_support_experience</code></td><td>string</td><td>Feedback on customer support</td></tr><tr><td><code>overall_experience_rating</code></td><td>integer</td><td>Rating for the overall experience</td></tr><tr><td><code>overall_feedback</code></td><td>string</td><td>General feedback</td></tr><tr><td><code>refer_to_friend</code></td><td>boolean</td><td>Indicates willingness to recommend</td></tr><tr><td><code>user</code></td><td>string</td><td>ID of the user who provided the survey</td></tr><tr><td><code>call</code></td><td>integer</td><td>ID of the related call</td></tr></tbody></table>

***

**Sample Request Body**

```json
{
  "disappointment_level": "Somewhat",
  "disappointment_reason": "The mechanic arrived late",
  "problem_solved": true,
  "responded_immediately": false,
  "is_carried_along": true,
  "was_asked_before_maintenance": false,
  "had_effective_communication": true,
  "kept_appointment": false,
  "met_at_location": true,
  "met_at_shop": false,
  "auto_technician_rating": 8,
  "auto_technician_feedback": "The mechanic was skilled and fixed the issue well.",
  "customer_support_experience": "Responsive and helpful support team.",
  "overall_experience_rating": 9,
  "overall_feedback": "Overall, a positive experience.",
  "refer_to_friend": true,
  "user": "user123",
  "call": 56789
}

```

**Response**

* **Status Code:** `200 OK`
* **Response Content Type:** JSON
* **Description:** The survey was successfully updated.

**Response Body Example**

```json
{
  "id": "d23f5a1e-2c8b-4d2f-a98b-7b45af3e9eab",
  "disappointment_level": "very",
  "disappointment_reason": "Mechanic arrived late",
  "problem_solved": true,
  "responded_immediately": false,
  "is_carried_along": true,
  "was_asked_before_maintenance": true,
  "had_effective_communication": true,
  "kept_appointment": false,
  "met_at_location": true,
  "met_at_shop": false,
  "auto_technician_rating": 9,
  "auto_technician_feedback": "Very professional and skilled.",
  "customer_support_experience": "Helpful and responsive.",
  "overall_experience_rating": 8,
  "overall_feedback": "Good experience overall, but could improve punctuality.",
  "refer_to_friend": true,
  "created_at": "2024-11-12T10:00:00Z",
  "updated_at": "2024-11-12T11:00:00Z",
  "user": "user123",
  "call": 456
}
```

***

**Notes**

* This endpoint supports partial updates, meaning you only need to send fields that you wish to change.
* Ensure the `survey_id` is valid and corresponds to an existing survey.
* The `user` and `call` fields are required for all updates.
