# Create a reply

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

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

Publishes a support reply to a question or saves a draft reply. Requires an `Idempotency-Key` header.

With `status` set to `published` (the default), the reply is published with the requested `visibility` (`public` by default) and any saved draft is discarded. A question has a single support reply: if one already exists, its content is replaced. The user is notified only when the reply is first published, and only public replies generate events.

With `status` set to `draft`, the content is saved as the question's draft reply without publishing it, and `visibility` is ignored. The draft does not affect any reply already visible to the user.

Required permissions: `questions.update`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `product_id` | path | string | yes |  |
| `question_id` | path | string | yes |  |
| `Idempotency-Key` | header | string | yes |  |

## Request body

Content type: `application/json`, required.

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

## Responses

### 201

Returns the published reply or the saved draft.

### 401

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

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The question was not found in the specified product or is not accessible with the current credentials.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

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