---
metadata:
  - name: generator
    content: Diplodoc Platform v5.61.1
alternate:
  - https://sourcecraft.dev/portal/docs/en/cli-ref/src-appsec-defect-comment-edit.md
  - https://sourcecraft.dev/portal/docs/ru/cli-ref/src-appsec-defect-comment-edit.md
  - href: https://sourcecraft.dev/portal/docs/en/cli-ref/src-appsec-defect-comment-edit.md
    type: text/markdown
    title: Markdown version
  - href: https://sourcecraft.dev/portal/docs/en/llms.txt
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/en/llms.txt

# src appsec defect comment edit

Replace the text of a comment you wrote.

The uuid is the one 'src appsec defect comment <id>' lists. Editing someone
else's comment is rejected; a deleted comment reads as not found.

## Usage

`src appsec defect comment edit <activity-uuid> --body <text> [flags]`

### Examples

**Reword a comment**

`src appsec defect comment edit 01a042a5-b9f1-7bdc-83b5-40c771beaf2b --body "confirmed, fixing"`

### Flags

| Flag | Description |
| --- | --- |
| `--body string` | New comment text |

### Inherited flags

| Flag | Description |
| --- | --- |
| `--env string` | Override Sourcecraft environment (use 'src envs' to list available) |
| `--json string` | Output JSON, optionally filtered (--json or --json=field1,field2) |
| `--json-compact string` | Output compact JSON, optionally filtered |
| `-R, --repo string` | Select another repository using OWNER/REPO format |
| `-V, --verbose` | Enable debug logging output |

### Learn more

Use `src appsec defect comment edit <subcommand> --help` for more information about a command.
