---
title: "Add comment to given approval request"
method: POST
path: "/approvals/{approvalRequestId}/comments"
tags: ["approvals"]
---

# Add comment to given approval request

`POST /approvals/{approvalRequestId}/comments`

## Request

- Base URL: `https://api.smartrecruiters.com/approvals-api/v201910`
- URL: `https://api.smartrecruiters.com/approvals-api/v201910/approvals/{approvalRequestId}/comments`
- Auth: one of:
  - API key in header `x-smarttoken`
  - OAuth 2
    - Authorization code: `https://www.smartrecruiters.com/identity/oauth/allow`
    - Token URL: `https://api.smartrecruiters.com/identity/oauth/token` scopes: `approvals_read`

## Path parameters

- `approvalRequestId` string, required

## Request body

- object
  - `content` string, required
  - `authorId` string, required

## Response `201`

Created comment

- Comment
  - `content` string
  - `authorId` string
  - `createdOn` string, date-time

## Other responses

- `400`: * **COMMENT_CONTAINS_ILLEGAL_CHARACTERS** when comment contains illegal characters
- `401`: * **UNAUTHORIZED_ACCESS** when no permissions to add a comment
- `404`: with code * **APPROVAL_REQUEST_NOT_FOUND** when approval request is not found
- `422`: Input validation fails

---

[API](https://skmtc.dev/smartrecruiters/apis/approvals-api.md) - [All operations](https://skmtc.dev/smartrecruiters/apis/approvals-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smartrecruiters/apis/approvals-api/revisions/19e2c88e92b5?raw)
