---
sidebar:
  hidden: true
title: roboto.domain.comments.operations
---
## Module Contents

### CreateCommentRequest

```python
class roboto.domain.comments.operations.CreateCommentRequest(/, **data: Any)
```

`from roboto import CreateCommentRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/comments/operations.py#L12-L26)

Bases: `pydantic.BaseModel`

Request payload for creating a new comment.

This model defines the required information to create a comment on a Roboto platform entity.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateCommentRequest.comment_text** (`str`): Text content of the comment, may include @mention syntax.
- **CreateCommentRequest.entity_id** (`str`): Unique identifier of the entity to attach the comment to.
- **CreateCommentRequest.entity_type** (`roboto.domain.comments.record.CommentEntityType`): Type of entity to attach the comment to.

### UpdateCommentRequest

```python
class roboto.domain.comments.operations.UpdateCommentRequest(/, **data: Any)
```

`from roboto import UpdateCommentRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/comments/operations.py#L29-L37)

Bases: `pydantic.BaseModel`

Request payload for updating an existing comment.

This model defines the information that can be modified when updating a comment.

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateCommentRequest.comment_text** (`str`): Updated text content of the comment, may include @mention syntax.
