Deal Feedback

Set feedback read-state

PATCH/deals/{dealId}/feedback/read-state
feedback:writeset_feedback_read_stateDeprecatedSunset 2027-06-30

{seen: true} marks the deal's unread feedback read as the token's user (optional ids[] narrows it); items already read keep their first reader and affected counts only the items it marked. {seen: false} resets them. A user_id in the body is rejected. Deprecated: withdrawn on 2027-06-30. POST /deals/{deal_id}/feedback/actions/mark-read replaces it; every answer carries a Link header with rel="successor-version". seen: false has no successor.

Path parameters

  • dealIdstring (uuid)Required#

    The deal's public uuid.

Request body

application/json, required

  • seenbooleanRequired#

    Read-state to set; true marks read, false resets to unread.

  • idsstring (uuid)[]#

    Optional subset of feedback ids to mark; omit to mark all of the deal's feedback.

{
  "seen": true,
  "ids": []
}

Responses

200

Read-state updated.

FeedbackReadState
{
  "data": {
    "deal_id": "9f8e7d6c-5b4a-4938-8271-6a5b4c3d2e1f",
    "user_id": "6f1c2e8a-1b2c-4d5e-8f90-1a2b3c4d5e6f",
    "seen": true,
    "affected": 3
  }
}
401

Authentication failed. error.code is one of invalid_token, expired, revoked.

Error
403

Authorization failed. error.code is one of org_disabled, ip_blocked, missing_scope, scope_disabled, user_disabled.

Error
404

Resource not found (error.code = not_found).

Error
422

Request validation failed (HTTP 422). The body is either the Laravel validation envelope (message + field-keyed errors) or the API error envelope for domain rejections (e.g. form_type_not_supported, folder_locked, parent_not_found, folder_not_empty).

429

Rate limit exceeded (error.code = rate_limited).

Error

Examples

curl -X PATCH https://your-org-domain/kong/core/api/v2/deals/{dealId}/feedback/read-state\
  -H "Authorization: Bearer $HELM_API_KEY"\
  -H "Content-Type: application/json"\
  -d '{
  "seen": true,
  "ids": []
}'