---
title: "To add a comment to the particular record"
method: POST
path: "/api/Public/addcomment"
tags: ["Public"]
---

# To add a comment to the particular record

`POST /api/Public/addcomment`

## Request

- Base URL: `https://apidocs.cflowapps.com` (the document declares no server; this is the origin it was published from)
- URL: `https://apidocs.cflowapps.com/api/Public/addcomment`
- Auth: API key in header `X-Api-Key` and API key in header `X-User-Key`
- TypeScript: <https://skmtc.dev/cflowapps/apis/cflow-public-api/docs/api/Public/addcomment/post.ts> (a function with typed inputs; its response is checked against the schema)

Sample request:
            
    POST 
    {
         "RecordId":"10"
         "WorkflowName":"Test Workflow",
         "Comment":"",
         "StageName":"Manager Approval"
    }

## Request body

- AddCommentDto
  - `workflowName` string, required: Name of the worklfow
  - `recordId` integer, required: Record Id
  - `comment` string, required: Comments to be added
  - `stageName` string, required: Name of the stage

## Response `200`

Return status of the request

- CommentsResDto
  - `commentId` string, nullable: Comment Id
  - `comments` string, nullable: Comments that is added
  - `username` string, nullable: Name of the user
  - `date` string, nullable: Comment creation date

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Resource not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/cflowapps/apis/cflow-public-api.md) - [All operations](https://skmtc.dev/cflowapps/apis/cflow-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cflowapps/apis/cflow-public-api/revisions/af0dadd0ad10?raw)
