# Maintenance

## Manually trigger daily maintenance tasks

> Triggers all daily maintenance tasks including review environment cleanup

```json
{"openapi":"3.0.0","info":{"title":"sfp server","version":"51.3.0"},"security":[{"bearer":[]}],"components":{"securitySchemes":{}},"paths":{"/sfp/api/maintenance/trigger-daily":{"post":{"operationId":"ScheduledTasksController_triggerDailyMaintenance","summary":"Manually trigger daily maintenance tasks","description":"Triggers all daily maintenance tasks including review environment cleanup","parameters":[],"responses":{"202":{"description":"Maintenance tasks started"},"403":{"description":"Forbidden - Requires role: owner"}},"tags":["Maintenance"]}}}}
```

## Get status of scheduled maintenance tasks

> Returns information about all scheduled maintenance cron jobs

```json
{"openapi":"3.0.0","info":{"title":"sfp server","version":"51.3.0"},"security":[{"bearer":[]}],"components":{"securitySchemes":{}},"paths":{"/sfp/api/maintenance/cron-jobs":{"get":{"operationId":"ScheduledTasksController_getCronJobs","summary":"Get status of scheduled maintenance tasks","description":"Returns information about all scheduled maintenance cron jobs","parameters":[],"responses":{"200":{"description":"List of cron jobs"},"403":{"description":"Forbidden - Requires role: owner"}},"tags":["Maintenance"]}}}}
```

## Manually trigger approval reconciliation

> Reconciles approval status with workflow run state. Marks stale approvals.

```json
{"openapi":"3.0.0","info":{"title":"sfp server","version":"51.3.0"},"security":[{"bearer":[]}],"components":{"securitySchemes":{}},"paths":{"/sfp/api/maintenance/trigger-approval-reconciliation":{"post":{"operationId":"ScheduledTasksController_triggerApprovalReconciliation","summary":"Manually trigger approval reconciliation","description":"Reconciles approval status with workflow run state. Marks stale approvals.","parameters":[],"responses":{"202":{"description":"Approval reconciliation started"},"403":{"description":"Forbidden - Requires role: owner"}},"tags":["Maintenance"]}}}}
```

## Manually trigger review cache refresh

> Refreshes pull request review cache for all project repositories

```json
{"openapi":"3.0.0","info":{"title":"sfp server","version":"51.3.0"},"security":[{"bearer":[]}],"components":{"securitySchemes":{}},"paths":{"/sfp/api/maintenance/trigger-review-cache-refresh":{"post":{"operationId":"ScheduledTasksController_triggerReviewCacheRefresh","summary":"Manually trigger review cache refresh","description":"Refreshes pull request review cache for all project repositories","parameters":[],"responses":{"202":{"description":"Review cache refresh started"},"403":{"description":"Forbidden - Requires role: owner"}},"tags":["Maintenance"]}}}}
```
