---
title: "Assign a comment (action item)"
method: PATCH
path: "/v1/data/{artifactId}/comments/{commentId}/assign"
tags: ["Data"]
---

# Assign a comment (action item)

`PATCH /v1/data/{artifactId}/comments/{commentId}/assign`

## Request

- Base URL: `https://shareout.site`
- URL: `https://shareout.site/v1/data/{artifactId}/comments/{commentId}/assign`
- Auth: HTTP bearer

Turns a thread into an action item for a workspace member or collaborator, or clears it with `assignee: null` (also clears `dueAt`). Same callers as resolve. The assignee is notified.

## Request body

- object
  - `assignee` string, nullable: Email of a workspace member or collaborator.
  - `dueAt` string, date-time, nullable

## Response `200`

The updated comment

- object
  - `success` boolean
  - `data` Comment
    - `id` string: `cmt_` + 24 hex characters.
    - `contextId` string, nullable
    - `parentId` string, nullable
    - `authorId` string, nullable
    - `authorName` string
    - `content` string
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `resolved` boolean
    - `resolvedBy` string, nullable
    - `resolvedAt` string, date-time, nullable
    - `position` unknown
    - `mentions` string[]
    - `authorType` 'human' | 'agent' | 'guest': `guest` = a verified guest with no account (their email is never returned).
    - `assigneeUserId` string, nullable
    - `assigneeEmail` string, nullable
    - `dueAt` string, date-time, nullable
    - `versionId` string, nullable: Id of the version that was live when the comment was written; null on older comments.
    - `reactions` object

## Other responses

- `400`: `ASSIGNEE_NOT_FOUND` — not a workspace member or collaborator; `INVALID_REQUEST` for a bad dueAt
- `403`: `FORBIDDEN` (no comment access) or `COMMENTS_DISABLED`
- `404`: `COMMENT_NOT_FOUND`

## Changes

- **2026-10-16** `8c602e339d5d`: 1 warning
  - added the new `guest` enum value to the `data/authorType` response property for the response status `200`
- **2026-10-16** `924c2aeaed12`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/shareout/apis/shareout-rest-api/changes/v1/data/:artifactId/comments/:commentId/assign/patch.md)

---

[API](https://skmtc.dev/shareout/apis/shareout-rest-api.md) - [All operations](https://skmtc.dev/shareout/apis/shareout-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shareout/apis/shareout-rest-api/revisions/1e3f7fd34f6d?raw)
