Skip to content

Update a work item comment

PATCH/api/v1/workspaces/{workspace_slug}/projects/{project_id}/work-items/{work_item_id}/comments/{comment_id}/

Updates an existing work item comment by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

Path Parameters

workspace_slug:requiredstring

The workspace_slug represents the unique workspace identifier for a workspace in Plane. It can be found in the URL. For example, in the URL https://app.plane.so/my-team/projects/, the workspace slug is my-team.

project_id:requiredstring

The unique identifier of the project.

work_item_id:requiredstring

The unique identifier for the work item.

comment_id:requiredstring

The unique identifier for the comment.

Body Parameters

comment_html:optionalstring

HTML-formatted version of the comment.

comment_json:optionalobject

JSON representation of the comment structure.

access:optionalstring

Visibility level of the comment. Possible values: INTERNAL, EXTERNAL.

external_source:optionalstring

Identifier for the external source.

external_id:optionalstring

ID from the external source.

Update a work item comment
bash
curl -X PATCH \
  "https://api.plane.so/api/v1/workspaces/my-workspace/projects/project-uuid/work-items/work-item-uuid/comments/comment-uuid/" \
  -H "X-API-Key: $PLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "comment_html": "example-comment_html",
  "comment_json": "example-comment_json",
  "access": "example-access",
  "external_source": "example-external_source",
  "external_id": "example-external_id"
}'
Response200
json
{
  "id": "project-uuid",
  "name": "Project Name",
  "identifier": "PROJ",
  "description": "Project description",
  "created_at": "2024-01-01T00:00:00Z"
}