Deleting a comment
Written by
Updated at February 19, 2024
Use this request to delete issue comments.
Request format
To delete a comment, use an HTTP DELETE
request:
DELETE /v2/issues/<issue_ID_or_key>/comments/<comment_ID>
Host: https://api.tracker.yandex.net
Authorization: OAuth <OAuth_token>
X-Org-ID: <organization ID>
Headers
-
Host
Address of the node that provides the API:
https://api.tracker.yandex.net
-
Authorization
OAuth token in
OAuth <OAuth_token>
format, e.g.:OAuth 0c4181a7c2cf4521964a72ff********
-
X-Org-ID or X-Cloud-Org-ID
Organization ID. You can find it out on the Tracker organizations page
.- If a Yandex 360 for Business organization is the only one linked to Tracker, the
X-Org-ID
header is used. - If a Yandex Cloud Organization organization is the only one linked to Tracker, the
X-Cloud-Org-ID
header is used. - If both Yandex 360 for Business and Yandex Cloud Organization organizations are linked to Tracker at the same time, the
X-Org-ID
header and the Yandex 360 for Business organization ID are used.
- If a Yandex 360 for Business organization is the only one linked to Tracker, the
Resource
Parameter | Description | Data type |
---|---|---|
<issue_key_or_ID> | ID or key of the current issue. | String |
<comment_ID> | Unique ID of the comment in numeric (id) or string format (longId). | String or number |
Request for deleting a comment added to the
JUNE-2
issue:
- An HTTP DELETE method is used.
DELETE /v2/issues/JUNE-2/comments/<comment_ID> Host: https://api.tracker.yandex.net Authorization: OAuth <OAuth_token> X-Org-ID: <organization ID>
Response format
Request executed successfully
Request failed
If the request is successful, the API returns a response with code 204
.
The response body is missing.
- 404
- The requested object was not found. You may have specified an invalid object ID or key.