List annotations
Returns a paginated list of Annotations for a specified report.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example {workspace UUID}.
The repository.
The commit for which to retrieve reports.
Uuid or external-if of the report for which to get annotations for.
Responses
Section titled “ Responses ”OK
A paginated list of annotations.
object
Page number of the current results. This is an optional element that is not provided in all responses.
The values of the current page.
object
ID of the annotation provided by the annotation creator. It can be used to identify the annotation as an alternative to it’s generated uuid. It is not used by Bitbucket, but only by the annotation creator for updating or deleting this specific annotation. Needs to be unique.
The UUID that can be used to identify the annotation.
The type of the report.
The path of the file on which this annotation should be placed. This is the path of the file relative to the git repository. If no path is provided, then it will appear in the overview modal on all pull requests where the tip of the branch is the given commit, regardless of which files were modified.
The line number that the annotation should belong to. If no line number is provided, then it will default to 0 and in a pull request it will appear at the top of the file specified by the path field.
The message to display to users.
The details to show to users when clicking on the annotation.
The state of the report. May be set to PENDING and later updated.
The severity of the annotation.
A URL linking to the annotation in an external tool.
The timestamp when the report was created.
The timestamp when the report was updated.
Total number of objects in the response. This is an optional element that is not provided in all responses, as it can be expensive to compute.
Current number of objects on the existing page. The default value is 10 with 100 being the maximum allowed value. Individual APIs may enforce different values.
Link to the next page if it exists. The last page of a collection does not have this value. Use this link to navigate the result set and refrain from constructing your own URLs.
Link to previous page if it exists. A collections first page does not have this value. This is an optional element that is not provided in all responses. Some result sets strictly support forward navigation and never provide previous links. Clients must anticipate that backwards navigation is not always available. Use this link to navigate the result set and refrain from constructing your own URLs.
Example
{ "values": [ { "annotation_type": "VULNERABILITY", "result": "PASSED", "severity": "CRITICAL" } ]}