Gamma API

Edit an issue comment

PATCH
/api/projects/{projectId}/issues/{issueId}/comments/{commentId}

Replaces the text of the caller's own comment and marks it edited; anyone else's is a 403. Only people it mentions for the first time are notified. 409 on a deleted issue.

Who may call it: Anyone on the project whose permission profile allows issue.create. API keys: yes, given issue.create for this project.

Authorization

cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

projectId*string

The project's id.

issueId*string
commentId*string

Request Body

application/json
  1. body
text*string

Plain text; mention someone on the project as <@userId>. Trimmed.

Lengthlength <= 10000

Response Body

OK.

application/json
  1. response
comment*
Example Request
curl -X PATCH 'http://localhost:3000/api/projects/string/issues/string/comments/string' \  -H 'Content-Type: application/json' \  -d '{  "text": "string"}'
Example Response
{  "comment": {    "id": "string",    "issueId": "string",    "authorId": "string",    "author": {      "id": "string",      "name": "string",      "image": "string"    },    "importedAuthor": "string",    "text": "string",    "mentions": [      {        "id": "string",        "name": "string"      }    ],    "createdAt": "2019-08-24T14:15:22Z",    "editedAt": "2019-08-24T14:15:22Z",    "attachments": [      {        "id": "string",        "ownerType": "form",        "ownerId": "string",        "ownerField": "string",        "fileName": "string",        "contentType": "string",        "sizeBytes": -9007199254740991,        "createdById": "string",        "createdAt": "2019-08-24T14:15:22Z"      }    ]  }}