Description: Updates repository configurations.
Since: 3.41.4
Security: Requires a user with admin permissions.
Usage: PUT api/v1/repos_config
Consumes: application/json
Sample Request
{ "repo_name": "xray-dev", "repo_config": { "vuln_contextual_analysis": true, "exposure": { "scanners_category": { "malicious_code_scan": true, "services_scan": true, "secrets_scan": false, "iac_scan": false, "applications_scan": false } }, "retention_in_days": 80 }, "repo_paths_config": { "patterns": [ { "include": "core/**", "exclude": "core/external/**", "index_new_artifacts": true, "retention_in_days": 45 } ], "all_other_artifacts": { "index_new_artifacts": true, "retention_in_days": 60 } } }
Sample Response
{ "info": "Repository configuration has been updated successfully" }
Response Codes:
403: Forbidden
401: Unauthorized
400: Failed to decode request
500: Internal Server Error