---
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-L27)

Bases: `pydantic.BaseModel`

Request body for [`create()`](/docs/reference/python-sdk/roboto/domain/comments/comment#roboto.domain.comments.comment.Comment.create).

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateCommentRequest.comment_text** (`str`): Text of the comment.

  A mention, written `@[<display_name>](<user_id>)`, adds that user to the comment's `mentions` and notifies them, by email unless their settings turn off comment-mention emails. Every user mentioned other than the caller must belong to the caller's organization; otherwise Roboto raises `RobotoUnauthorizedException`.

- **CreateCommentRequest.entity_id** (`str`): ID of the resource to comment on, such as `ds_12345` for a dataset.

- **CreateCommentRequest.entity_type** (`roboto.domain.comments.record.CommentEntityType`): Type of the resource to comment on.

### 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#L30-L38)

Bases: `pydantic.BaseModel`

Request body for [`update_comment()`](/docs/reference/python-sdk/roboto/domain/comments/comment#roboto.domain.comments.comment.Comment.update_comment).

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateCommentRequest.comment_text** (`str`): New text of the comment, which replaces the old text.

  Mentions take the same form as in `CreateCommentRequest.comment_text`. Only users the previous text did not mention are notified.
