Change Repository Statuses
Request
POST
https://appsec.sourcecraft.tech/v1/admin/repository-statuses
Query parameters
|
Name |
Description |
|
gitRepo |
Type: string Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid). Pattern: Example: |
Body
application/json
{
"statusChanges": {
"APPSEC": "ENABLED",
"PR_SCAN": "DISABLED"
},
"engineTypeStatusChanges": {
"SA": "ENABLED",
"SAST": "DISABLED"
},
"appsecRepositorySettings": {
"mergeScaDefectGroupsByPackage": true,
"dastUrl": "https://example.com"
}
}
|
Name |
Description |
||
|
appsecRepositorySettings |
Type: object | null Any of 2 types
Opt-in repository-level feature settings to apply. An absent bag or an absent inner field means "leave the current value unchanged" (partial update) Example
|
||
|
engineTypeStatusChanges |
Type: object
Map of engine type (SA, SCA, SAST, SECRETS, SBOM_SPDX_GEN, SBOM_CYCLONEDX_GEN) to status value (ENABLED, DISABLED). Supports both full and partial (delta) updates. Example
|
||
|
statusChanges |
Type: object
Map of status type (APPSEC, PR_SCAN, UPLOAD, BACKGROUND_SCAN) to status value (ENABLED, DISABLED). Supports both full and partial (delta) updates. Example
|
AppsecStatus
Type: string
Enum: APPSEC_STATUS_UNSPECIFIED, ENABLED, DISABLED, UNRECOGNIZED
RestAppsecSettings
|
Name |
Description |
|
dastUrl |
Type: string | null Public https URL the Cloud DAST scan targets; must resolve to Yandex Cloud addresses only. Null in a request means "leave the current value unchanged", an empty string clears it. Null in a response means not configured. Example: |
|
mergeScaDefectGroupsByPackage |
Type: boolean | null When true, new SCA defect groups are merged by package/library name without version. Null in a request means "leave the current value unchanged". |
Example
{
"mergeScaDefectGroupsByPackage": true,
"dastUrl": "https://example.com"
}
Responses
200 OK
OK
Body
application/json
{
"appsecStatuses": {
"APPSEC": "ENABLED",
"PR_SCAN": "DISABLED",
"UPLOAD": "ENABLED",
"BACKGROUND_SCAN": "DISABLED"
},
"engineTypeStatuses": {
"SCA": "DISABLED",
"SAST": "ENABLED",
"SECRETS": "DISABLED",
"SBOM_SPDX_GEN": "ENABLED",
"SBOM_CYCLONEDX_GEN": "DISABLED"
},
"appsecRepositorySettings": {
"mergeScaDefectGroupsByPackage": true,
"dastUrl": "https://example.com"
}
}
|
Name |
Description |
||
|
appsecStatuses |
Type: object
Map of status type name (APPSEC, PR_SCAN, UPLOAD, BACKGROUND_SCAN) to status value (ENABLED, DISABLED). Example
|
||
|
engineTypeStatuses |
Type: object
Map of engine type (SCA, SAST, SECRETS, SBOM_SPDX_GEN, SBOM_CYCLONEDX_GEN) to status value (ENABLED, DISABLED). Example
|
||
|
appsecRepositorySettings |
Type: object | null Any of 2 types
Effective repository-level feature settings; dastUrl is null when not configured. Example
|
400 Bad Request
Bad Request