---
title: "Sync All Projects to SCM"
method: POST
path: "/api/agent/deployments/{deploymentId}/repos/_refresh_async"
tags: ["ProjectsService"]
---

# Sync All Projects to SCM

`POST /api/agent/deployments/{deploymentId}/repos/_refresh_async`

Schedules a job to sync all projects in a deployment to their SCM.

## Path parameters

- `deploymentId` integer, required

## Request body

- ProtosProjectsV1RefreshProjectsAsyncRequest
  - `deploymentId` integer
  - `withCodeAccess` boolean — Optional. When `true`, only projects with code access are synced. When omitted or `false` (the default), all projects are synced. This parameter is not required to start a sync.

## Response `202`

Accepted

- ProtosProjectsV1RefreshProjectsAsyncResponse
  - `task_token_jwt` string

---

[API](https://skmtc.dev/semgrep/apis/semgrep-web-app.md) · [All operations](https://skmtc.dev/semgrep/apis/semgrep-web-app/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/semgrep/semgrep-web-app/revisions/6483eeecd582/schema)
