Get repositories importance score
POST/api/v1/vcs-repository/repositories/importance-score
Retrieve the calculated importance score for each repository (string array), reflecting the repository’s relative security criticality.
Request
- application/json
Body
required
repositoryIds string[]required
Responses
- 200
- 400
- 401
Repository importance score data for the requested repositories.
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- Array [
- ]
repositoryId stringrequired
repositoryScore doublerequired
Relative importance of the repository as set by Prisma Cloud based on a data-driven approach. The score is a numerical value from 1 to 10.
customRepositoryScore doublenullablerequired
customComment stringnullablerequired
customReporter stringnullablerequired
Email address of the user who last set the customRepositoryScore.
customUpdatedAt doublenullablerequired
customUpdatedAt: Date and time (in ms) when the customRepositoryScore was last set or modified.
[
{
"repositoryId": "string",
"repositoryScore": 0,
"customRepositoryScore": 0,
"customComment": "string",
"customReporter": "string",
"customUpdatedAt": 0
}
]
[
{
"repositoryId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"repositoryScore": 5,
"customRepositoryScore": 1,
"customComment": "custom repo score description",
"customReporter": "test@domain.com",
"customUpdatedAt": 1719320604269
},
{
"repositoryId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"repositoryScore": 10,
"customRepositoryScore": null,
"customComment": null,
"customReporter": null,
"customUpdatedAt": null
}
]
Maximum 5000 repositories can be updated within a single request
Unauthorized repositoryIds
Loading...