> ## Documentation Index
> Fetch the complete documentation index at: https://chainlit-5-wd-prompt.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Feedback

> Create and Update methods for Feedback

## Create a feedback

```python
feedback = await client.api.create_feedback(
    step_id="<STEP_UUID>",
    value=1,
    comment="Hello world",
)
```

<ParamField path="thread_id" type="uuid" required>
  Thread id in string format
</ParamField>

<ParamField path="step_id" type="uuid">
  Step id in string format
</ParamField>

<ParamField path="value" type="int">
  Value in integer format, 1 for positive feedback and 0 for negative feedback
</ParamField>

<ParamField path="comment" type="str">
  Comment in string format
</ParamField>

<ParamField path="strategy" type="string">
  <Expandable title="properties">
    <ResponseField name="BINARY" />

    <ResponseField name="STARS" />

    <ResponseField name="BIG_STARS" />

    <ResponseField name="LIKERT" />

    <ResponseField name="CONTINUOUS" />

    <ResponseField name="LETTERS" />

    <ResponseField name="PERCENTAGE" />
  </Expandable>
</ParamField>

### Return type

<ResponseField name="feedback" type="Feedback">
  Return a Feedback
</ResponseField>

## Update a feedback

```python

feedback = await client.api.update_feedback(
    id="<THREAD_UUID>",
    update_params={
        "comment": "Hello world",
    },
)
```

<ParamField path="id" type="uuid" required>
  Id in string format
</ParamField>

<ParamField path="update_params" type="dict">
  Dict containing same parameters as create\_feedback
</ParamField>

### Return type

<ResponseField name="feedback" type="Feedback">
  Return a Feedback
</ResponseField>
