---
title: "PUT Training Module Comments"
method: PUT
path: "/trainings/modules/{module_id}/comments"
---

# PUT Training Module Comments

`PUT /trainings/modules/{module_id}/comments`

## Request

- Base URL: `https://www.humanity.com/api/v2`
- URL: `https://www.humanity.com/api/v2/trainings/modules/{module_id}/comments`
- Auth: API key in query parameter `access_token`

/trainings/modules/:module_id/comments
Permission level: 5

## Path parameters

- `module_id` integer, required

## Request body `application/x-www-form-urlencoded`

- object
  - `type` integer, required: enum[1,2]1: Comments, 2: Homework
  - `comment_id` integer
  - `status` integer: enum[1,2] 1: Accepted comment, 2: Rejected comment
  - `text` string
  - `user` string

## Response `200`

200

- object
  - `status` integer
  - `data` boolean
  - `token` string
  - `error` unknown

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `ffb87b44c733`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/humanity-com/apis/humanity/changes/trainings/modules/:module_id/comments/put.md)

---

[API](https://skmtc.dev/humanity-com/apis/humanity.md) - [All operations](https://skmtc.dev/humanity-com/apis/humanity/llms.txt) - [OpenAPI document](https://skmtc.dev/humanity-com/apis/humanity/revisions/ffb87b44c733?raw)
