---
title: "Create or update a comment for one unlocked leak"
method: PUT
path: "/profile/unlocked/{leak_id}/comment"
tags: ["Unlocked Leaks Lists"]
---

# Create or update a comment for one unlocked leak

`PUT /profile/unlocked/{leak_id}/comment`

## Request

- Base URL: `https://api.leakradar.io`
- URL: `https://api.leakradar.io/profile/unlocked/{leak_id}/comment`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/leakradar/apis/leakradar-io-api/docs/profile/unlocked/:leak_id/comment/put.ts> (a function with typed inputs; its response is checked against the schema)

Create or update a user comment on a single unlocked leak. Empty or whitespace-only comments are treated as delete.

Limits
- Max 500 characters.

**Errors**
- 401 Authentication required, or invalid/expired API key.
- 404 Unlocked leak not found.
- 422 Comment exceeds 500 characters.

## Path parameters

- `leak_id` string, required: Unlocked leak identifier

## Request body

- CommentUpsertIn
  - `comment` string, required

## Response `200`

Comment saved (or removed when empty).

- unknown

## Other responses

- `401`: Authentication required, or invalid/expired API key.
- `404`: Unlocked leak not found.
- `422`: Comment exceeds 500 characters.

## Changes

- **2026-09-01** `82a99c608e1a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/leakradar/apis/leakradar-io-api/changes/profile/unlocked/:leak_id/comment/put.md)

---

[API](https://skmtc.dev/leakradar/apis/leakradar-io-api.md) - [All operations](https://skmtc.dev/leakradar/apis/leakradar-io-api/llms.txt) - [OpenAPI document](https://skmtc.dev/leakradar/apis/leakradar-io-api/revisions/8dcd4b54cc4a?raw)
