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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerIID of the issue
page
Query
IntegerPage number of results to retrieve
Default: 1
Example: 1
per_page
Query
IntegerNumber of items to list per page
Default: 20
Example: 20

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesDiscussion
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerIID of the issue

Request body (application/json)

PropertyTypeDescription
body
Required
StringContent of the note or reply
created_atStringDate and time the note was created, in ISO 8601 format such as 2016-03-11T03:45:40Z. Requires administrator or project/group owner rights

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesDiscussion
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
discussion_id
Path, required
StringID of the discussion
noteable_id
Path, required
IntegerIID of the issue

Responses

CodeDescriptionSchema
200OKAPIEntitiesDiscussion
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerIID of the issue
discussion_id
Path, required
StringID of the discussion

Request body (application/json)

PropertyTypeDescription
resolved
Required
BooleanIf true, resolves the discussion. If false, reopens the discussion

Responses

CodeDescriptionSchema
200OKAPIEntitiesDiscussion
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
discussion_id
Path, required
StringID of the discussion
noteable_id
Path, required
IntegerIID of the issue

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerIID of the issue
discussion_id
Path, required
StringID of the discussion

Request body (application/json)

PropertyTypeDescription
body
Required
StringContent of the note or reply
created_atStringDate and time the note was created, in ISO 8601 format such as 2016-03-11T03:45:40Z. Requires administrator or project/group owner rights

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerIID of the issue
discussion_id
Path, required
StringID of the discussion
note_id
Path, required
IntegerID of the discussion note

Responses

CodeDescriptionSchema
200OKAPIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerIID of the issue
discussion_id
Path, required
StringID of the discussion
note_id
Path, required
IntegerID of the discussion note

Request body (application/json)

PropertyTypeDescription
bodyStringContent of the note or reply. Exactly one of body, resolved must be provided
resolvedBooleanIf true, resolves the note. If false, reopens the note. If empty, the note is returned unchanged. Exactly one of body, resolved must be provided

Responses

CodeDescriptionSchema
200OKAPIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerIID of the issue
discussion_id
Path, required
StringID of the discussion
note_id
Path, required
IntegerID of the discussion note

Responses

CodeDescriptionSchema
200OKAPIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerIID of the merge request
page
Query
IntegerPage number of results to retrieve
Default: 1
Example: 1
per_page
Query
IntegerNumber of items to list per page
Default: 20
Example: 20

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesDiscussion
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerIID of the merge request

Request body (application/json)

PropertyTypeDescription
body
Required
StringContent of the note or reply
created_atStringDate and time the note was created, in ISO 8601 format such as 2016-03-11T03:45:40Z. Requires administrator or project/group owner rights
positionObjectPosition when creating a diff note
position.base_sha
Required
StringBase commit SHA in the source branch
position.head_sha
Required
StringSHA referencing HEAD of this merge request
position.heightIntegerFor image diff notes, the height of the image
position.line_rangeObjectMulti-line start and end
position.line_range.endObjectEnd line for a multi-line note
position.line_range.end.line_codeStringEnd line code for multi-line note
position.line_range.end.new_lineIntegerEnd new_line line number
position.line_range.end.old_lineIntegerEnd old_line line number
position.line_range.end.typeStringEnd line type for multi-line note. Use new for an added line and old for a removed line. Omit for an unchanged line
position.line_range.startObjectStart line for a multi-line note
position.line_range.start.line_codeStringStart line code for multi-line note
position.line_range.start.new_lineIntegerStart new_line line number
position.line_range.start.old_lineIntegerStart old_line line number
position.line_range.start.typeStringStart line type for multi-line note. Use new for an added line and old for a removed line. Omit for an unchanged line
position.new_lineIntegerFor text diff notes, the line number after change
position.new_pathStringFile path after change
position.old_lineIntegerFor text diff notes, the line number before change
position.old_pathStringFile path before change
position.position_type
Required
StringType of the position reference
Allowed values: text, image, file
Minimum length: 1
position.start_sha
Required
StringSHA referencing commit in target branch
position.widthIntegerFor image diff notes, the width of the image
position.xIntegerFor image diff notes, the X coordinate in the image
position.yIntegerFor image diff notes, the Y coordinate in the image

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesDiscussion
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
discussion_id
Path, required
StringID of the discussion
noteable_id
Path, required
IntegerIID of the merge request

Responses

CodeDescriptionSchema
200OKAPIEntitiesDiscussion
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerIID of the merge request
discussion_id
Path, required
StringID of the discussion

Request body (application/json)

PropertyTypeDescription
resolved
Required
BooleanIf true, resolves the discussion. If false, reopens the discussion

Responses

CodeDescriptionSchema
200OKAPIEntitiesDiscussion
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
discussion_id
Path, required
StringID of the discussion
noteable_id
Path, required
IntegerIID of the merge request

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerIID of the merge request
discussion_id
Path, required
StringID of the discussion

Request body (application/json)

PropertyTypeDescription
body
Required
StringContent of the note or reply
created_atStringDate and time the note was created, in ISO 8601 format such as 2016-03-11T03:45:40Z. Requires administrator or project/group owner rights

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerIID of the merge request
discussion_id
Path, required
StringID of the discussion
note_id
Path, required
IntegerID of the discussion note

Responses

CodeDescriptionSchema
200OKAPIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerIID of the merge request
discussion_id
Path, required
StringID of the discussion
note_id
Path, required
IntegerID of the discussion note

Request body (application/json)

PropertyTypeDescription
bodyStringContent of the note or reply. Exactly one of body, resolved must be provided
resolvedBooleanIf true, resolves the note. If false, reopens the note. If empty, the note is returned unchanged. Exactly one of body, resolved must be provided

Responses

CodeDescriptionSchema
200OKAPIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerIID of the merge request
discussion_id
Path, required
StringID of the discussion
note_id
Path, required
IntegerID of the discussion note

Responses

CodeDescriptionSchema
200OKAPIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
StringSHA of the commit, or name of a repository branch or tag
page
Query
IntegerPage number of results to retrieve
Default: 1
Example: 1
per_page
Query
IntegerNumber of items to list per page
Default: 20
Example: 20

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesDiscussion
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
StringSHA of the commit, or name of a repository branch or tag

Request body (application/json)

PropertyTypeDescription
body
Required
StringContent of the note or reply
created_atStringDate and time the note was created, in ISO 8601 format such as 2016-03-11T03:45:40Z. Requires administrator or project/group owner rights
positionObjectPosition when creating a diff note
position.base_sha
Required
StringSHA of the parent commit
position.head_sha
Required
StringSHA of this commit. Same as noteable_id
position.heightIntegerFor image diff notes, the height of the image
position.line_rangeObjectMulti-line start and end
position.line_range.endObjectEnd line for a multi-line note
position.line_range.end.line_codeStringEnd line code for multi-line note
position.line_range.end.new_lineIntegerEnd new_line line number
position.line_range.end.old_lineIntegerEnd old_line line number
position.line_range.end.typeStringEnd line type for multi-line note. Use new for an added line and old for a removed line. Omit for an unchanged line
position.line_range.startObjectStart line for a multi-line note
position.line_range.start.line_codeStringStart line code for multi-line note
position.line_range.start.new_lineIntegerStart new_line line number
position.line_range.start.old_lineIntegerStart old_line line number
position.line_range.start.typeStringStart line type for multi-line note. Use new for an added line and old for a removed line. Omit for an unchanged line
position.new_lineIntegerFor text diff notes, the line number after change
position.new_pathStringFile path after change
position.old_lineIntegerFor text diff notes, the line number before change
position.old_pathStringFile path before change
position.position_type
Required
StringType of the position reference
Allowed values: text, image, file
Minimum length: 1
position.start_sha
Required
StringSHA of the parent commit
position.widthIntegerFor image diff notes, the width of the image
position.xIntegerFor image diff notes, the X coordinate in the image
position.yIntegerFor image diff notes, the Y coordinate in the image

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesDiscussion
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
discussion_id
Path, required
StringID of the discussion
noteable_id
Path, required
StringSHA of the commit, or name of a repository branch or tag

Responses

CodeDescriptionSchema
200OKAPIEntitiesDiscussion
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
discussion_id
Path, required
StringID of the discussion
noteable_id
Path, required
StringSHA of the commit, or name of a repository branch or tag

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
StringSHA of the commit, or name of a repository branch or tag
discussion_id
Path, required
StringID of the discussion

Request body (application/json)

PropertyTypeDescription
body
Required
StringContent of the note or reply
created_atStringDate and time the note was created, in ISO 8601 format such as 2016-03-11T03:45:40Z. Requires administrator or project/group owner rights

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
StringSHA of the commit, or name of a repository branch or tag
discussion_id
Path, required
StringID of the discussion
note_id
Path, required
IntegerID of the discussion note

Responses

CodeDescriptionSchema
200OKAPIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
StringSHA of the commit, or name of a repository branch or tag
discussion_id
Path, required
StringID of the discussion
note_id
Path, required
IntegerID of the discussion note

Request body (application/json)

PropertyTypeDescription
bodyStringContent of the note or reply. Exactly one of body, resolved must be provided
resolvedBooleanIf true, resolves the note. If false, reopens the note. If empty, the note is returned unchanged. Exactly one of body, resolved must be provided

Responses

CodeDescriptionSchema
200OKAPIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
StringSHA of the commit, or name of a repository branch or tag
discussion_id
Path, required
StringID of the discussion
note_id
Path, required
IntegerID of the discussion note

Responses

CodeDescriptionSchema
200OKAPIEntitiesNote
400Bad Request—
404Not Found—

List all discussions for a snippet

GET /api/v4/projects/{id}/snippets/{noteable_id}/discussions

Lists all discussions for a specified snippet.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerID of the snippet
page
Query
IntegerPage number of results to retrieve
Default: 1
Example: 1
per_page
Query
IntegerNumber of items to list per page
Default: 20
Example: 20

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesDiscussion
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerID of the snippet

Request body (application/json)

PropertyTypeDescription
body
Required
StringContent of the note or reply
created_atStringDate and time the note was created, in ISO 8601 format such as 2016-03-11T03:45:40Z. Requires administrator or project/group owner rights

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesDiscussion
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
discussion_id
Path, required
StringID of the discussion
noteable_id
Path, required
IntegerID of the snippet

Responses

CodeDescriptionSchema
200OKAPIEntitiesDiscussion
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
discussion_id
Path, required
StringID of the discussion
noteable_id
Path, required
IntegerID of the snippet

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerID of the snippet
discussion_id
Path, required
StringID of the discussion

Request body (application/json)

PropertyTypeDescription
body
Required
StringContent of the note or reply
created_atStringDate and time the note was created, in ISO 8601 format such as 2016-03-11T03:45:40Z. Requires administrator or project/group owner rights

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerID of the snippet
discussion_id
Path, required
StringID of the discussion
note_id
Path, required
IntegerID of the discussion note

Responses

CodeDescriptionSchema
200OKAPIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerID of the snippet
discussion_id
Path, required
StringID of the discussion
note_id
Path, required
IntegerID of the discussion note

Request body (application/json)

PropertyTypeDescription
bodyStringContent of the note or reply. Exactly one of body, resolved must be provided
resolvedBooleanIf true, resolves the note. If false, reopens the note. If empty, the note is returned unchanged. Exactly one of body, resolved must be provided

Responses

CodeDescriptionSchema
200OKAPIEntitiesNote
400Bad Request—
404Not 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

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
noteable_id
Path, required
IntegerID of the snippet
discussion_id
Path, required
StringID of the discussion
note_id
Path, required
IntegerID of the discussion note

Responses

CodeDescriptionSchema
200OKAPIEntitiesNote
400Bad Request—
404Not Found—

Schemas

Objects returned by the operations above and objects nested in their request bodies.

APIEntitiesCustomAttribute

PropertyTypeDescription
keyStringExample: foo
valueStringExample: bar

APIEntitiesDiscussion

PropertyTypeDescription
idStringID of the discussion
Example: 6a9c1750b37d513a43987b574953fceb50b03ce7
individual_noteBooleanIf true, the discussion is a single note and not a thread
Example: false
notesArray of APIEntitiesNoteNotes in the discussion
resolvableBoolean—
resolvedBoolean—

APIEntitiesNote

PropertyTypeDescription
authorAPIEntitiesUserBasicAuthor of the note
bodyStringContent of the note
Example: Note body.
commands_changesObject—
commit_idStringExample: 7b09ce7e6f80347baf0316c8c94cdba9a0a7e91d
confidentialBooleanExample: false
created_atString (date-time)Date and time when the note was created
Example: 2022-01-31T15:10:44.988Z
idInteger (int64)ID of the note
Example: 1
importedBooleanExample: false
imported_fromStringExample: github
internalBooleanExample: false
noteable_idInteger (int64)ID of the object the note belongs to, such as an issue or merge request
Example: 1
noteable_iidIntegerExample: 1
noteable_typeStringType of the object the note belongs to, such as Issue or MergeRequest
Example: Issue
positionObjectPosition of the note in the diff. Returned only for diff notes
project_idInteger (int64)ID of the project the note belongs to
Example: 1
resolvableBooleanIf true, the note can be resolved
Example: false
resolvedBooleanIf true, the note is resolved. Returned only for resolvable notes
Example: false
resolved_atString (date-time)Date and time when the note was resolved. Returned only for resolvable notes
Example: 2022-01-31T15:10:44.988Z
resolved_byAPIEntitiesUserBasicUser who resolved the note. Returned only for resolvable notes
suggestionsArray of APIEntitiesSuggestionSuggestions in the note. Returned only for diff notes on merge requests
systemBooleanIf true, the note is a system note
Example: false
typeStringType of the note, such as DiscussionNote or DiffNote. null for a plain note
Example: DiscussionNote
updated_atString (date-time)Date and time when the note was last updated
Example: 2022-01-31T15:10:44.988Z

APIEntitiesSuggestion

PropertyTypeDescription
appliableBooleanIf true, the suggestion can be applied
Example: true
appliedBooleanIf true, the suggestion has been applied
Example: false
from_contentStringOriginal content before the suggestion
Example: Original content
from_lineIntegerFirst line number of the suggestion
Example: 1
idInteger (int64)ID of the suggestion
Example: 1
to_contentStringSuggested content that replaces the original
Example: New content
to_lineIntegerLast line number of the suggestion
Example: 1

APIEntitiesUserBasic

PropertyTypeDescription
avatar_pathStringExample: /user/avatar/28/The-Big-Lebowski-400-400.png
avatar_urlStringURL of the user’s avatar
Example: https://gravatar.com/avatar/1
custom_attributesArray of APIEntitiesCustomAttribute—
idInteger (int64)ID of the user
Example: 1
lockedBooleanIf true, the user account is locked, and the user cannot sign in until the lock expires or an administrator unlocks the account
nameStringName of the user. For a bot user, **** if the current user cannot read the bot’s project or group
Example: Administrator
public_emailStringPublic email address of the user
Example: john@example.com
stateStringState of the user account. Possible values: active, blocked, ldap_blocked, blocked_pending_approval, banned, or deactivated
Example: active
usernameStringUsername of the user
Example: admin
web_urlStringURL of the user’s profile
Example: https://gitlab.example.com/root