---
title: "Add comment"
method: POST
path: "/api/locker-room/{id}/comments"
tags: ["Locker room"]
---

# Add comment

`POST /api/locker-room/{id}/comments`

## Request

- Base URL: `https://app.d-sports.org`
- URL: `https://app.d-sports.org/api/locker-room/{id}/comments`
- Auth: HTTP bearer

Add a comment (or reply via parentId). Body accepts optional mentionedUserIds; responses echo mentions[] per resolved target. Rejects with UGC_TERMS_REQUIRED when the caller's ugcTermsVersion is missing or not equal to the current Terms of Use version.

## Path parameters

- `id` string, required

## Request body

- object
  - `content` string, required
  - `parentId` string: Parent comment id for nested replies
  - `mentionedUserIds` string[]

## Response `200`

{ success, data }

## Other responses

- `403`: UGC terms not accepted. Envelope: { success: false, code: UGC_TERMS_REQUIRED, error }. Native composers reopen the terms modal on this code.

## Changes

- **2026-09-12** `a8df6fe04343`: 3 info
  - added the new optional request property `mentionedUserIds`
  - added the new optional request property `parentId`
  - added the non-success response with the status `403`
- **2026-03-08** `120afc4ee72c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/changes/api/locker-room/:id/comments/post.md)

---

[API](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api.md) - [All operations](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/llms.txt) - [OpenAPI document](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/revisions/63735cf90a04?raw)
