---
ai:
  exclude: true
search:
  tags:
    - comment
    - PUT
seo:
  description: >-
    Sets the value of the… Reference for the PUT
    /api/2/comment/{commentId}/properties/{propertyKey} endpoint in the Jira
    Software Data Center REST API Reference.
sidebar:
  label: Set a property on a comment
  badge: PUT
title: Set a property on a comment
type: openapi-operation
---
Sets the value of the specified comment's property.

`PUT /api/2/comment/{commentId}/properties/{propertyKey}`

**Request body** (`application/json`)

the request containing value of the comment's property. The value has to be a valid, non-empty JSON conforming to http://tools.ietf.org/html/rfc4627. The maximum length of the property value is 32768 bytes.

**Responses**

- `200` — Returned if the comment property is successfully updated.
- `201` — Returned if the comment property is successfully created.
- `400` — Returned if the comment key or id is invalid.
- `401` — Returned if the calling user is not authenticated.
- `403` — Returned if the calling user does not have permission to administer the comment.
- `404` — Returned if the comment with given key or id does not exist.
