# Update a reply

`PATCH https://api.cademi.com.br/api/v3/products/{product_id}/questions/{question_id}/replies/{reply_id}`

Operation ID: `questions.replies.update` · API v3

Updates a published support reply or the question's draft reply (ID `qrp_draft_<question_id>`).

For a published reply, `body` corrects the content without notifying the user again, and `visibility` switches the reply between `public` and `private`. Only support replies can be updated; replies written by users are rejected with `403 Forbidden`.

For the draft, `body` replaces the draft content. Setting `status` to `published` publishes the draft (using the supplied `body`, if any) as a public reply, with the same effects as publishing through the create operation.

When updating a published reply, send the `ETag` returned by the retrieve operation in the `If-Match` header to avoid overwriting a newer version.

Required permissions: `questions.update`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `product_id` | path | string | yes |  |
| `question_id` | path | string | yes |  |
| `reply_id` | path | string | yes |  |
| `If-Match` | header | string | no |  |

## Request body

Content type: `application/json`.

| Field | Type | Required | Description |
|---|---|---|---|
| `body` | object | no |  |
| `status` | string, one of `published` | no |  |
| `visibility` | string, one of `public`, `private` | no |  |

## Responses

### 200

Returns the updated reply, the updated draft, or the reply published from the draft.

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The credentials lack the required permission, or the reply was written by a user and cannot be modified.

Body: Error.

### 404

The reply or draft was not found for the specified question, or is not accessible with the current credentials.

Body: Error.

### 412

The reply has changed since the supplied revision was retrieved.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

Full schema: https://cademi.dev/openapi/v3.json
