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

# Update feedback

> Updates an existing customer feedback entry for a specific receipt and member.

This endpoint allows modifying the rating, options, message, and state of previously submitted feedback.
The feedback is identified by the combination of memberId and receiptId from the original submission.



## OpenAPI

````yaml openapi/customerfeedback-v1.json PUT /v1/Feedback
openapi: 3.0.4
info:
  title: CustomerFeedback.Api
  version: v1
servers:
  - url: https://{host}/customerfeedback
    description: Your Lobyco environment
    variables:
      host:
        default: your-environment.lobyco.net
        description: >-
          The API host for your Lobyco environment. Replace it with the host you
          were given — this placeholder does not resolve.
security:
  - Bearer: []
paths:
  /v1/Feedback:
    put:
      tags:
        - Feedback
      summary: Update feedback
      description: >-
        Updates an existing customer feedback entry for a specific receipt and
        member.


        This endpoint allows modifying the rating, options, message, and state
        of previously submitted feedback.

        The feedback is identified by the combination of memberId and receiptId
        from the original submission.
      parameters:
        - name: memberId
          in: query
          description: The unique identifier of the member who created the feedback
          required: true
          schema:
            type: string
      requestBody:
        description: The request body for updating the feedback
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/CustomerFeedback.Api.DTO.Requests.UpdateFeedbackRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/CustomerFeedback.Api.DTO.Requests.UpdateFeedbackRequest
          application/*+json:
            schema:
              $ref: >-
                #/components/schemas/CustomerFeedback.Api.DTO.Requests.UpdateFeedbackRequest
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: >-
                  #/components/schemas/CustomerFeedback.Api.DTO.Responses.UpdateFeedbackResponse
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/CustomerFeedback.Api.DTO.Responses.UpdateFeedbackResponse
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/CustomerFeedback.Api.DTO.Responses.UpdateFeedbackResponse
        '400':
          description: Bad Request
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
        '404':
          description: Not Found
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
components:
  schemas:
    CustomerFeedback.Api.DTO.Requests.UpdateFeedbackRequest:
      required:
        - rating
        - receiptId
        - state
      type: object
      properties:
        receiptId:
          maxLength: 50
          minLength: 0
          type: string
          description: The receipt unique identifier associated with the feedback
        rating:
          maximum: 10
          minimum: 1
          type: integer
          description: Customer rating score (1-10)
          format: int32
        options:
          maxLength: 50
          minLength: 0
          type: array
          items:
            type: string
          description: Optional feedback options selected by the customer
          nullable: true
        message:
          maxLength: 500
          minLength: 0
          type: string
          description: Optional feedback message from the customer
          nullable: true
        state:
          $ref: >-
            #/components/schemas/CustomerFeedback.ApplicationService.CQRS.Models.FeedbackState
      additionalProperties: false
      description: Request model for updating customer feedback
    CustomerFeedback.Api.DTO.Responses.UpdateFeedbackResponse:
      type: object
      properties:
        id:
          type: integer
          description: The unique identifier of the updated feedback.
          format: int64
        thankYouMessage:
          type: string
          description: The thank you message to display to the customer.
          nullable: true
      additionalProperties: false
      description: Response model returned after successfully updating customer feedback.
    Microsoft.AspNetCore.Mvc.ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
    CustomerFeedback.ApplicationService.CQRS.Models.FeedbackState:
      enum:
        - None
        - Open
        - Closed
      type: string
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        Opaque Authorization header using the Bearer scheme. Example:
        "Authorization: Bearer {token}"
      name: Authorization
      in: header

````