# PUT QNA Answer

## PUT QNA Answer

<mark style="color:orange;">`PUT`</mark> `https://api.cakes.com/qna/answer/:id/update`

This endpoint allows you to update QNA Answer.

#### Path Parameters

| Name | Type   | Description                  |
| ---- | ------ | ---------------------------- |
| id   | string | answer id you want to update |

#### Request Body

| Name         | Type   | Description                     |
| ------------ | ------ | ------------------------------- |
| question\_id | string | question id for the answer      |
| video\_url   | string | video of answer                 |
| image\_url   | string | image of answer                 |
| user\_id     | string | mentor user id who wrote answer |
| text         | string | answer text                     |

{% tabs %}
{% tab title="200 Successfully updated QNA answer" %}

```
{    "message": "successfully updated QNA answer"}
```

{% endtab %}

{% tab title="404 Could not find matching question" %}

```
{    "message": "Could not find matching question"}
```

{% endtab %}
{% endtabs %}

<mark style="color:orange;">`PUT`</mark> `https://api.cakes.com/qna/answer/update`

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
|      | string |             |

{% tabs %}
{% tab title="404 " %}

```
Could not find matching question
```

{% endtab %}
{% endtabs %}
