v1

latestOpenAPI 3.0.32026-07-22238629559.2 KB
ProjectsService

Toggle Managed Scans for a project

Enable or disable Semgrep Managed Scans for a project.

patch/api/v1/deployments/{deploymentSlug}/projects/{projectName}/managed-scan

Path parameters

deploymentSlugstring required

Slug of the deployment name. Can be found at /deployments, or in your Settings in the web UI.

Example:your-deployment
projectNamestring required

Name of the project, typically the repository formatted as a path.

Example:organization/project

Request body

deploymentSlugstring

Slug of the deployment name. Can be found at /deployments, or in your Settings in the web UI.

projectNamestring

Name of the project, typically the repository formatted as a path.

Example request

{
  "deploymentSlug": "your-deployment",
  "projectName": "organization/project"
}

Response

OK

Example response

{
  "project": {
    "created_at": "2020-11-18T23:28:12.391Z",
    "default_branch": "refs/heads/main",
    "id": 1234567,
    "latest_scan_at": "2023-01-13T20:51:51.449Z",
    "name": "returntocorp/semgrep",
    "primary_branch": "refs/heads/custom-main",
    "url": "https://github.com/returntocorp/semgrep"
  }
}