---
ai:
  exclude: true
search:
  tags:
    - issue
    - PUT
seo:
  description: >-
    Pins a comment to the top of… Reference for the PUT
    /api/2/issue/{issueIdOrKey}/comment/{id}/pin endpoint in the Jira Software
    Data Center REST API Reference.
sidebar:
  label: Pin a comment
  badge: PUT
title: Pin a comment
type: openapi-operation
---
Pins a comment to the top of the comment list.

`PUT /api/2/issue/{issueIdOrKey}/comment/{id}/pin`

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

'true' must be included as raw data

Request body example:

```json
true
```

**Responses**

- `204` — Returned if the comment was pinned successfully.
- `404` — Returned if the comment with the given id does not exist or if the currently authenticated user does not have permission to pin it.
