# post

## Overview

This endpoint is used for creating new comments.  Currently, comments can only be added to organization members via the API, though this may be expanded in the future.

## HTTP Request

```http
POST /api/v1/organizations/:organizationName/members/:userName/comments
```

{% hint style="info" %}
This endpoint extends the [general API structure](/api/rest-api/general-structure.md)
{% endhint %}

## Path parameters

| Parameter         | Type   | Description                           |
| ----------------- | ------ | ------------------------------------- |
| :organizationName | string | The name of the organization          |
| :userName         | string | The username of the particular member |

{% hint style="info" %}
This endpoint extends the [general API structure](/api/rest-api/general-structure.md).
{% endhint %}

## Request body

Provide a JSON object with information about the comment.

| Property name | Type       | Description                                                          |
| ------------- | ---------- | -------------------------------------------------------------------- |
| **text**      | **string** | **Required.** The text of the comment. May be up to 2048 characters. |

## Authorization

You must be an administrator of the requested organization, and your access token must have the following scope:

* organization.write

[Learn more about authorization.](/api/rest-api/authorization.md)

## Response body

Returns the JSON-encoded "get" representation of a [comment resource](/api/resource-definitions/comment.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.redivis.com/api/rest-api/comments/post.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
