---
title: "Create a comment"
method: POST
path: "/api/v1/client/tasks/{task_id}/comments"
tags: ["Client::Comments"]
---

# Create a comment

`POST /api/v1/client/tasks/{task_id}/comments`

## Request

- Base URL: `https://api.flexiple.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.flexiple.com/api/v1/client/tasks/{task_id}/comments`
- Auth: HTTP bearer

## Request body

- object
  - `body` string, required

## Response `201`

Comment created with user tags

- object
  - `data` Comment, required
    - `id` integer, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `raw_body` string, required
    - `body` string, required
    - `tagged_users` AccountUser[], required
      - `id` integer, required
      - `email` string, required
      - `role` 'client' | 'talent' | 'admin', required
      - `first_name` string, nullable, required
      - `last_name` string, nullable, required
      - `full_name` string, required
      - `deleted` boolean, required
    - `unread_notification` object
      - `id` integer, required
      - `notification_type` string, required
      - `read_at` string, nullable
      - `created_at` string, required
      - `message` string, required
    - `user` AccountUser, required
      - `id` integer, required
      - `email` string, required
      - `role` 'client' | 'talent' | 'admin', required
      - `first_name` string, nullable, required
      - `last_name` string, nullable, required
      - `full_name` string, required
      - `deleted` boolean, required
  - `meta` object, nullable

## Other responses

- `400`: Invalid parameters
- `404`: Task not found
- `422`: Cannot tag users from different client accounts

---

[API](https://skmtc.dev/flexiple/apis/flexiple-platform-api-v1.md) - [All operations](https://skmtc.dev/flexiple/apis/flexiple-platform-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/flexiple/apis/flexiple-platform-api-v1/revisions/27e7987859f2?raw)
