Use this API to manage discussions. This includes comments, threads, and system notes about changes to an object (for example, when a milestone changes).
To manage label notes, use the resource label events API.
List all discussions for an issue
GET /api/v4/projects/{id}/issues/{noteable_id}/discussions
Lists all discussions for a specified issue.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | IID of the issue |
pageQuery | Integer | Page number of results to retrieve Default: 1Example: 1 |
per_Query | Integer | Number of items to list per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Create an issue discussion
POST /api/v4/projects/{id}/issues/{noteable_id}/discussions
Creates a discussion for a specified issue. Replies can be added to it later.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | IID of the issue |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
bodyRequired | String | Content of the note or reply |
created_ | String | Date and time the note was created,2016-. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Retrieve a discussion for an issue
GET /api/v4/projects/{id}/issues/{noteable_id}/discussions/{discussion_id}
Retrieves a specified discussion for an issue.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
discussion_Path, | String | ID of the discussion |
noteable_Path, | Integer | IID of the issue |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Resolve or unresolve an issue discussion
PUT /api/v4/projects/{id}/issues/{noteable_id}/discussions/{discussion_id}
Resolves or unresolves a specified issue discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | IID of the issue |
discussion_Path, | String | ID of the discussion |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
resolvedRequired | Boolean | If true,false, |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List comments in an issue discussion
GET /api/v4/projects/{id}/issues/{noteable_id}/discussions/{discussion_id}/notes
Lists the comments in a specified issue discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
discussion_Path, | String | ID of the discussion |
noteable_Path, | Integer | IID of the issue |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Add a comment to an issue discussion
POST /api/v4/projects/{id}/issues/{noteable_id}/discussions/{discussion_id}/notes
Adds a comment to a specified issue discussion. If the discussion is a single comment, the comment becomes a thread.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | IID of the issue |
discussion_Path, | String | ID of the discussion |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
bodyRequired | String | Content of the note or reply |
created_ | String | Date and time the note was created,2016-. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Retrieve a comment from an issue discussion
GET /api/v4/projects/{id}/issues/{noteable_id}/discussions/{discussion_id}/notes/{note_id}
Retrieves a specified comment from a issue discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | IID of the issue |
discussion_Path, | String | ID of the discussion |
note_Path, | Integer | ID of the discussion note |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Update a comment in an issue discussion
PUT /api/v4/projects/{id}/issues/{noteable_id}/discussions/{discussion_id}/notes/{note_id}
Updates or changes the status of a specified comment in a issue discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | IID of the issue |
discussion_Path, | String | ID of the discussion |
note_Path, | Integer | ID of the discussion note |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
body | String | Content of the note or reply.body,resolved must be provided |
resolved | Boolean | If true,false,body,resolved must be provided |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Delete a comment from an issue discussion
DELETE /api/v4/projects/{id}/issues/{noteable_id}/discussions/{discussion_id}/notes/{note_id}
Deletes a specified comment from a issue discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | IID of the issue |
discussion_Path, | String | ID of the discussion |
note_Path, | Integer | ID of the discussion note |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List all discussions for a merge request
GET /api/v4/projects/{id}/merge_requests/{noteable_id}/discussions
Lists all discussions for a specified merge request. Diff comments also contain position information.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | IID of the merge request |
pageQuery | Integer | Page number of results to retrieve Default: 1Example: 1 |
per_Query | Integer | Number of items to list per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Create a merge request discussion
POST /api/v4/projects/{id}/merge_requests/{noteable_id}/discussions
Creates a discussion for a specified merge request. Replies can be added to it later.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | IID of the merge request |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
bodyRequired | String | Content of the note or reply |
created_ | String | Date and time the note was created,2016-. |
position | Object | Position when creating a diff note |
position.Required | String | Base commit SHA in the source branch |
position.Required | String | SHA referencing HEAD of this merge request |
position. | Integer | For image diff notes, |
position. | Object | Multi- |
position. | Object | End line for a multi- |
position. | String | End line code for multi- |
position. | Integer | End new_ |
position. | Integer | End old_ |
position. | String | End line type for multi-new for an added line and old for a removed line. |
position. | Object | Start line for a multi- |
position. | String | Start line code for multi- |
position. | Integer | Start new_ |
position. | Integer | Start old_ |
position. | String | Start line type for multi-new for an added line and old for a removed line. |
position. | Integer | For text diff notes, |
position. | String | File path after change |
position. | Integer | For text diff notes, |
position. | String | File path before change |
position.Required | String | Type of the position reference Allowed values: text,image,fileMinimum length: 1 |
position.Required | String | SHA referencing commit in target branch |
position. | Integer | For image diff notes, |
position. | Integer | For image diff notes, |
position. | Integer | For image diff notes, |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Retrieve a discussion for a merge request
GET /api/v4/projects/{id}/merge_requests/{noteable_id}/discussions/{discussion_id}
Retrieves a specified discussion for a merge request.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
discussion_Path, | String | ID of the discussion |
noteable_Path, | Integer | IID of the merge request |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Resolve or unresolve a merge request discussion
PUT /api/v4/projects/{id}/merge_requests/{noteable_id}/discussions/{discussion_id}
Resolves or unresolves a specified merge request discussion. Requires at least the Developer role for the project. The merge request author can also resolve discussions.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | IID of the merge request |
discussion_Path, | String | ID of the discussion |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
resolvedRequired | Boolean | If true,false, |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List comments in a merge request discussion
GET /api/v4/projects/{id}/merge_requests/{noteable_id}/discussions/{discussion_id}/notes
Lists the comments in a specified merge request discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
discussion_Path, | String | ID of the discussion |
noteable_Path, | Integer | IID of the merge request |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Add a comment to a merge request discussion
POST /api/v4/projects/{id}/merge_requests/{noteable_id}/discussions/{discussion_id}/notes
Adds a comment to a specified merge request discussion. If the discussion is a single comment, the comment becomes a thread.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | IID of the merge request |
discussion_Path, | String | ID of the discussion |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
bodyRequired | String | Content of the note or reply |
created_ | String | Date and time the note was created,2016-. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Retrieve a comment from a merge request discussion
GET /api/v4/projects/{id}/merge_requests/{noteable_id}/discussions/{discussion_id}/notes/{note_id}
Retrieves a specified comment from a merge request discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | IID of the merge request |
discussion_Path, | String | ID of the discussion |
note_Path, | Integer | ID of the discussion note |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Update a comment in a merge request discussion
PUT /api/v4/projects/{id}/merge_requests/{noteable_id}/discussions/{discussion_id}/notes/{note_id}
Updates or changes the status of a specified comment in a merge request discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | IID of the merge request |
discussion_Path, | String | ID of the discussion |
note_Path, | Integer | ID of the discussion note |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
body | String | Content of the note or reply.body,resolved must be provided |
resolved | Boolean | If true,false,body,resolved must be provided |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Delete a comment from a merge request discussion
DELETE /api/v4/projects/{id}/merge_requests/{noteable_id}/discussions/{discussion_id}/notes/{note_id}
Deletes a specified comment from a merge request discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | IID of the merge request |
discussion_Path, | String | ID of the discussion |
note_Path, | Integer | ID of the discussion note |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List all discussions for a commit
GET /api/v4/projects/{id}/repository/commits/{noteable_id}/discussions
Lists all discussions for a specified commit. Diff comments also contain position information.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | String | SHA of the commit, |
pageQuery | Integer | Page number of results to retrieve Default: 1Example: 1 |
per_Query | Integer | Number of items to list per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Create a commit discussion
POST /api/v4/projects/{id}/repository/commits/{noteable_id}/discussions
Creates a discussion for a specified commit. Replies can be added to it later. The position rules are the same as for merge request diff threads, except for position[base_sha], position[head_sha], and position[start_sha].
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | String | SHA of the commit, |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
bodyRequired | String | Content of the note or reply |
created_ | String | Date and time the note was created,2016-. |
position | Object | Position when creating a diff note |
position.Required | String | SHA of the parent commit |
position.Required | String | SHA of this commit.noteable_ |
position. | Integer | For image diff notes, |
position. | Object | Multi- |
position. | Object | End line for a multi- |
position. | String | End line code for multi- |
position. | Integer | End new_ |
position. | Integer | End old_ |
position. | String | End line type for multi-new for an added line and old for a removed line. |
position. | Object | Start line for a multi- |
position. | String | Start line code for multi- |
position. | Integer | Start new_ |
position. | Integer | Start old_ |
position. | String | Start line type for multi-new for an added line and old for a removed line. |
position. | Integer | For text diff notes, |
position. | String | File path after change |
position. | Integer | For text diff notes, |
position. | String | File path before change |
position.Required | String | Type of the position reference Allowed values: text,image,fileMinimum length: 1 |
position.Required | String | SHA of the parent commit |
position. | Integer | For image diff notes, |
position. | Integer | For image diff notes, |
position. | Integer | For image diff notes, |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Retrieve a discussion for a commit
GET /api/v4/projects/{id}/repository/commits/{noteable_id}/discussions/{discussion_id}
Retrieves a specified discussion for a commit.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
discussion_Path, | String | ID of the discussion |
noteable_Path, | String | SHA of the commit, |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List comments in a commit discussion
GET /api/v4/projects/{id}/repository/commits/{noteable_id}/discussions/{discussion_id}/notes
Lists the comments in a specified commit discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
discussion_Path, | String | ID of the discussion |
noteable_Path, | String | SHA of the commit, |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Add a comment to a commit discussion
POST /api/v4/projects/{id}/repository/commits/{noteable_id}/discussions/{discussion_id}/notes
Adds a comment to a specified commit discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | String | SHA of the commit, |
discussion_Path, | String | ID of the discussion |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
bodyRequired | String | Content of the note or reply |
created_ | String | Date and time the note was created,2016-. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Retrieve a comment from a commit discussion
GET /api/v4/projects/{id}/repository/commits/{noteable_id}/discussions/{discussion_id}/notes/{note_id}
Retrieves a specified comment from a commit discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | String | SHA of the commit, |
discussion_Path, | String | ID of the discussion |
note_Path, | Integer | ID of the discussion note |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Update a comment in a commit discussion
PUT /api/v4/projects/{id}/repository/commits/{noteable_id}/discussions/{discussion_id}/notes/{note_id}
Updates or changes the status of a specified comment in a commit discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | String | SHA of the commit, |
discussion_Path, | String | ID of the discussion |
note_Path, | Integer | ID of the discussion note |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
body | String | Content of the note or reply.body,resolved must be provided |
resolved | Boolean | If true,false,body,resolved must be provided |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Delete a comment from a commit discussion
DELETE /api/v4/projects/{id}/repository/commits/{noteable_id}/discussions/{discussion_id}/notes/{note_id}
Deletes a specified comment from a commit discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | String | SHA of the commit, |
discussion_Path, | String | ID of the discussion |
note_Path, | Integer | ID of the discussion note |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List all discussions for a snippet
GET /api/v4/projects/{id}/snippets/{noteable_id}/discussions
Lists all discussions for a specified snippet.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | ID of the snippet |
pageQuery | Integer | Page number of results to retrieve Default: 1Example: 1 |
per_Query | Integer | Number of items to list per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Create a snippet discussion
POST /api/v4/projects/{id}/snippets/{noteable_id}/discussions
Creates a discussion for a specified snippet. Replies can be added to it later.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | ID of the snippet |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
bodyRequired | String | Content of the note or reply |
created_ | String | Date and time the note was created,2016-. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Retrieve a discussion for a snippet
GET /api/v4/projects/{id}/snippets/{noteable_id}/discussions/{discussion_id}
Retrieves a specified discussion for a snippet.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
discussion_Path, | String | ID of the discussion |
noteable_Path, | Integer | ID of the snippet |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
List comments in a snippet discussion
GET /api/v4/projects/{id}/snippets/{noteable_id}/discussions/{discussion_id}/notes
Lists the comments in a specified snippet discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
discussion_Path, | String | ID of the discussion |
noteable_Path, | Integer | ID of the snippet |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Add a comment to a snippet discussion
POST /api/v4/projects/{id}/snippets/{noteable_id}/discussions/{discussion_id}/notes
Adds a comment to a specified snippet discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | ID of the snippet |
discussion_Path, | String | ID of the discussion |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
bodyRequired | String | Content of the note or reply |
created_ | String | Date and time the note was created,2016-. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Retrieve a comment from a snippet discussion
GET /api/v4/projects/{id}/snippets/{noteable_id}/discussions/{discussion_id}/notes/{note_id}
Retrieves a specified comment from a snippet discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | ID of the snippet |
discussion_Path, | String | ID of the discussion |
note_Path, | Integer | ID of the discussion note |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Update a comment in a snippet discussion
PUT /api/v4/projects/{id}/snippets/{noteable_id}/discussions/{discussion_id}/notes/{note_id}
Updates or changes the status of a specified comment in a snippet discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | ID of the snippet |
discussion_Path, | String | ID of the discussion |
note_Path, | Integer | ID of the discussion note |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
body | String | Content of the note or reply.body,resolved must be provided |
resolved | Boolean | If true,false,body,resolved must be provided |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Delete a comment from a snippet discussion
DELETE /api/v4/projects/{id}/snippets/{noteable_id}/discussions/{discussion_id}/notes/{note_id}
Deletes a specified comment from a snippet discussion.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String | ID or URL- |
noteable_Path, | Integer | ID of the snippet |
discussion_Path, | String | ID of the discussion |
note_Path, | Integer | ID of the discussion note |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Schemas
Objects returned by the operations above and objects nested in their request bodies.
APIEntitiesCustomAttribute
| Property | Type | Description |
|---|---|---|
key | String | Example:foo |
value | String | Example:bar |
APIEntitiesDiscussion
| Property | Type | Description |
|---|---|---|
id | String | ID of the discussion Example: 6a9c1750b37d513a4398 |
individual_ | Boolean | If true,Example: false |
notes | Array of APIEntities | Notes in the discussion |
resolvable | Boolean | — |
resolved | Boolean | — |
APIEntitiesNote
| Property | Type | Description |
|---|---|---|
author | APIEntities | Author of the note |
body | String | Content of the note Example: Note body. |
commands_ | Object | — |
commit_ | String | Example:7b09ce7e6f80347baf03 |
confidential | Boolean | Example:false |
created_ | String (date- | Date and time when the note was created Example: 2022- |
id | Integer (int64) | ID of the note Example: 1 |
imported | Boolean | Example:false |
imported_ | String | Example:github |
internal | Boolean | Example:false |
noteable_ | Integer (int64) | ID of the object the note belongs to, Example: 1 |
noteable_ | Integer | Example:1 |
noteable_ | String | Type of the object the note belongs to,Issue or MergeExample: Issue |
position | Object | Position of the note in the diff. |
project_ | Integer (int64) | ID of the project the note belongs to Example: 1 |
resolvable | Boolean | If true,Example: false |
resolved | Boolean | If true,Example: false |
resolved_ | String (date- | Date and time when the note was resolved. Example: 2022- |
resolved_ | APIEntities | User who resolved the note. |
suggestions | Array of APIEntities | Suggestions in the note. |
system | Boolean | If true,Example: false |
type | String | Type of the note,Discussion or Diff.null for a plain noteExample: Discussion |
updated_ | String (date- | Date and time when the note was last updated Example: 2022- |
APIEntitiesSuggestion
| Property | Type | Description |
|---|---|---|
appliable | Boolean | If true,Example: true |
applied | Boolean | If true,Example: false |
from_ | String | Original content before the suggestion Example: Original content |
from_ | Integer | First line number of the suggestion Example: 1 |
id | Integer (int64) | ID of the suggestion Example: 1 |
to_ | String | Suggested content that replaces the original Example: New content |
to_ | Integer | Last line number of the suggestion Example: 1 |
APIEntitiesUserBasic
| Property | Type | Description |
|---|---|---|
avatar_ | String | Example:/ |
avatar_ | String | URL of the user’s avatar Example: https: |
custom_ | Array of APIEntities | — |
id | Integer (int64) | ID of the user Example: 1 |
locked | Boolean | If true, |
name | String | Name of the user.**** if the current user cannot read the bot’s project or groupExample: Administrator |
public_ | String | Public email address of the user Example: john@example. |
state | String | State of the user account.active,blocked,ldap_,blocked_,banned,deactivatedExample: active |
username | String | Username of the user Example: admin |
web_ | String | URL of the user’s profile Example: https: |