> ## Documentation Index
> Fetch the complete documentation index at: https://dev.kernel.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update data feedback comment

> Replaces a comment on an open data feedback ticket, if it is not already resolved.

Replaces the customer comment on an open data feedback ticket in your organization. Only the comment copy can be edited.

Only unresolved tickets can be edited. Attempts to edit resolved tickets will result in a `409`.

## Example

```bash curl theme={null}
curl -X PATCH https://api.kernel.ai/rest/v1/feedback/160857402 \
  -H "x-api-key: $KERNEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"comment":"Updated from the filing."}'
```

```json Response (200) theme={null}
{
  "id": "160857402",
  "status": "received",
  "category": "headcount",
  "external_id": "0010700000n0QXkAAM",
  "kernel_id": "1594610357",
  "field": "kernel_headcount_effective",
  "current_value": "130",
  "expected_value": "500",
  "comment": "Updated from the filing.",
  "evidence_url": null,
  "created_at": "2026-10-29T11:21:35.323Z",
  "resolved_at": null,
  "account": {
    "trading_name": "SimScale",
    "legal_name": "SimScale GmbH"
  }
}
```

## Path parameters

| Parameter | Type | Description |
| - | - | - |
| `id` | `string` | Ticket id. |

## Request fields

| Field | Type | Description |
| - | - | - |
| `comment` | `string` | The new comment copy. Required. Must be non-empty after trimming. |

## Errors

| Status | Response | Cause |
| - | - | - |
| 401 | `{"error":"Missing x-api-key header"}` | No API key provided |
| 403 | `{"error":"Data feedback loop is not available."}` | Data feedback is not available for this organization |
| 400 | `{"error":"Invalid request body"}` | Missing or empty `comment` |
| 404 | `{"error":"Feedback not found."}` | Ticket does not exist in this organization |
| 409 | `{"error":"This ticket is no longer open."}` | Ticket is not `received` or `in_review` |
| 503 | `{"error":"Service unavailable"}` | Backend temporarily unavailable |


## OpenAPI

````yaml PATCH /v1/feedback/{id}
openapi: 3.1.0
info:
  title: Kernel API
  description: Resolve company identities to canonical entities with a simple async API
  version: 1.0.0
  contact:
    email: support@kernel.ai
  license:
    name: MIT
servers:
  - url: https://api.kernel.ai/rest
    description: Production
security:
  - apiKeyAuth: []
tags:
  - name: Entity Resolution
    description: Resolve a company to a canonical entity
  - name: Firmographics
    description: Retrieve and enrich firmographic data for resolved entities
  - name: Parentage
    description: Look up parent and top-parent entities in a corporate hierarchy
  - name: Combined
    description: Resolve an entity and run a follow-up enrichment in one call
  - name: Alignment
    description: >-
      Link a CRM record to a Kernel entity and run the full cleaning pass in one
      call
  - name: LinkedIn Lookup
    description: Provisional LinkedIn company match jobs (not Kernel-verified)
  - name: Data feedback
    description: Open and manage data feedback tickets for CRM accounts
paths:
  /v1/feedback/{id}:
    patch:
      tags:
        - Data feedback
      summary: Update data feedback comment
      description: >-
        Replaces a comment on an open data feedback ticket, if it is not already
        resolved.
      operationId: updateFeedback
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateFeedbackRequest'
            example:
              comment: Updated from the filing.
      responses:
        '200':
          description: Updated ticket
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeedbackTicket'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Data feedback is not available
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Feedback not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Ticket is no longer open
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    UpdateFeedbackRequest:
      type: object
      required:
        - comment
      properties:
        comment:
          type: string
          minLength: 1
    FeedbackTicket:
      type: object
      required:
        - id
        - status
        - category
        - external_id
        - kernel_id
        - field
        - current_value
        - expected_value
        - comment
        - evidence_url
        - created_at
        - resolved_at
        - account
      properties:
        id:
          type: string
        status:
          $ref: '#/components/schemas/FeedbackStatus'
        category:
          type:
            - string
            - 'null'
        external_id:
          type:
            - string
            - 'null'
        kernel_id:
          type:
            - string
            - 'null'
        field:
          type:
            - string
            - 'null'
        current_value:
          type:
            - string
            - 'null'
        expected_value:
          type:
            - string
            - 'null'
        comment:
          type:
            - string
            - 'null'
        evidence_url:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
        resolved_at:
          type:
            - string
            - 'null'
          format: date-time
        account:
          type: object
          required:
            - trading_name
            - legal_name
          properties:
            trading_name:
              type:
                - string
                - 'null'
            legal_name:
              type:
                - string
                - 'null'
    Error:
      required:
        - error
      type: object
      properties:
        error:
          description: Error description.
          type: string
          example: Entity not found
    FeedbackStatus:
      type: string
      enum:
        - received
        - in_review
        - on_hold
        - resolved
        - resolved_not_for_kernel
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Include your API key in the x-api-key header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.