Finding transitions
Python SDK reference for the transitions resource
Warning
The SDKs are in research preview. Their interfaces may change between minor versions until 1.0.
Access this resource from client.transitions. Both async and sync clients expose the same methods.
list
GET /v1/transitions
How findings changed between versions, across the project.
result = await client.transitions.list()Arguments:
paramsTransitionListParams | NonequeryNonepageintegerpage_sizeintegerorder_by'created_at' | 'updated_at'order'desc' | 'asc'before_version_idstringafter_version_idstringbefore_finding_idstringafter_finding_idstringkindFindingTransitionKinduser_idstringwith_paginationboolqueryFalseReturn type by call:
with_pagination=True→PaginatedResource[FindingTransition]with_pagination=False→Pagination[FindingTransition]
show properties (6)hide properties (6)
resultsarray of FindingTransitionshow properties (8)hide properties (8)
idstringrequiredcreated_atstringrequiredbefore_versionAnalysisVersionRefrequiredshow properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredafter_versionAnalysisVersionRefrequiredshow properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredkindFindingTransitionKindrequiredHow the finding changed.
before_findingOptional[FindingBare]The finding before the change.
show properties (11)hide properties (11)
idstringrequiredcreated_atstringrequiredorigin_finding_idstringrequiredThe finding's original ID, stable across versions and edits.
is_acknowledgedbooleanrequiredWhether a user acknowledged the finding.
typestringrequiredlevelFindingLevelrequirednamestringrequiredexplanationstringrequiredrecommendationOptional[string]pocOptional[string]toolstringrequiredWhat produced the finding.
after_findingOptional[FindingBare]The finding after the change.
show properties (11)hide properties (11)
idstringrequiredcreated_atstringrequiredorigin_finding_idstringrequiredThe finding's original ID, stable across versions and edits.
is_acknowledgedbooleanrequiredWhether a user acknowledged the finding.
typestringrequiredlevelFindingLevelrequirednamestringrequiredexplanationstringrequiredrecommendationOptional[string]pocOptional[string]toolstringrequiredWhat produced the finding.
changed_fieldsarray of stringused when comparing staged changes
pageintegerrequiredpage_sizeintegerrequiredmorebooleanrequiredWhether more pages follow.
total_observationsintegerrequiredTotal results across all pages.
total_pagesintegerrequiredget
GET /v1/transitions/{transition_id}
result = await client.transitions.get(
transition_id=transition_id,
)Arguments:
transition_idstrpathrequiredReturns: FindingTransition
show properties (8)hide properties (8)
idstringrequiredcreated_atstringrequiredbefore_versionAnalysisVersionRefrequiredshow properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredafter_versionAnalysisVersionRefrequiredshow properties (2)hide properties (2)
idstringrequiredanalysis_idstringrequiredkindFindingTransitionKindrequiredHow the finding changed.
before_findingOptional[FindingBare]The finding before the change.
show properties (11)hide properties (11)
idstringrequiredcreated_atstringrequiredorigin_finding_idstringrequiredThe finding's original ID, stable across versions and edits.
is_acknowledgedbooleanrequiredWhether a user acknowledged the finding.
typestringrequiredlevelFindingLevelrequirednamestringrequiredexplanationstringrequiredrecommendationOptional[string]pocOptional[string]toolstringrequiredWhat produced the finding.
after_findingOptional[FindingBare]The finding after the change.
show properties (11)hide properties (11)
idstringrequiredcreated_atstringrequiredorigin_finding_idstringrequiredThe finding's original ID, stable across versions and edits.
is_acknowledgedbooleanrequiredWhether a user acknowledged the finding.
typestringrequiredlevelFindingLevelrequirednamestringrequiredexplanationstringrequiredrecommendationOptional[string]pocOptional[string]toolstringrequiredWhat produced the finding.
changed_fieldsarray of stringused when comparing staged changes

