---
title: "Set comment property"
method: PUT
path: "/rest/api/3/comment/{commentId}/properties/{propertyKey}"
tags: ["Issue comment properties"]
---

# Set comment property

`PUT /rest/api/3/comment/{commentId}/properties/{propertyKey}`

Creates or updates the value of a property for a comment. Use this resource to store custom data against a comment.

The value of the request body must be a [valid](http://tools.ietf.org/html/rfc4627), non-empty JSON blob. The maximum length is 32768 characters.

**[Permissions](#permissions) required:** either of:

 *  *Edit All Comments* [project permission](https://confluence.atlassian.com/x/yodKLg) to create or update the value of a property on any comment.
 *  *Edit Own Comments* [project permission](https://confluence.atlassian.com/x/yodKLg) to create or update the value of a property on a comment created by the user.

## Path parameters

- `commentId` string, required
- `propertyKey` string, required

## Request body

- unknown

## Response `200`

Returned if the comment property is updated.

- unknown

## Other responses

- `201` — Returned if the comment property is created.
- `400` — Returned if the request is invalid.
- `401` — Returned if the authentication credentials are incorrect or missing.
- `403` — Returned if the user does not have the necessary permission.
- `404` — Returned if the comment is not found.

---

[API](https://skmtc.dev/atlassian/apis/the-jira-cloud-platform-rest-api-3.md) · [All operations](https://skmtc.dev/atlassian/apis/the-jira-cloud-platform-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/atlassian/the-jira-cloud-platform-rest-api-3/revisions/2783f5d3849c/schema)
