---
title: "Update Deployment"
method: PATCH
path: "/api/agent/deployments/{deploymentId}"
tags: ["DeploymentService"]
---

# Update Deployment

`PATCH /api/agent/deployments/{deploymentId}`

Update a deployment

## Path parameters

- `deploymentId` string, required

## Request body

- ProtosDeploymentV1UpdateDeploymentRequest
  - `deploymentId` string
  - `displayName` string
  - `defaultUserRole` 'ORG_ROLE_ADMIN' | 'ORG_ROLE_MEMBER' | 'ORG_ROLE_IMPERSONATOR' | 'ORG_ROLE_READONLY', enum — | value | description | |-------|---------------| | ORG_ROLE_ADMIN | | | ORG_ROLE_MEMBER | | | ORG_ROLE_IMPERSONATOR | | | ORG_ROLE_READONLY | |

## Response `200`

OK

- ProtosDeploymentV1UpdateDeploymentResponse
  - `deployment` ProtosDeploymentV1Deployment
    - `id` string
    - `name` string
    - `displayName` string
    - `slug` string
    - `sourceType` string
    - `features` ProtosDeploymentV1DeploymentFeatures
      - `featureFlags` ProtosDeploymentV1FeatureFlag[]
        - `name` string
        - `expiresAt` string, date-time
      - `hasAutofix` boolean
      - `hasDeepsemgrep` boolean
      - `hasTriageViaComment` boolean
      - `hasDependencyQuery` boolean
      - `defaultUserRole` 'ORG_ROLE_ADMIN' | 'ORG_ROLE_MEMBER' | 'ORG_ROLE_IMPERSONATOR' | 'ORG_ROLE_READONLY', enum — | value | description | |-------|---------------| | ORG_ROLE_ADMIN | | | ORG_ROLE_MEMBER | | | ORG_ROLE_IMPERSONATOR | | | ORG_ROLE_READONLY | |
      - `editorSemgrepVersion` string
      - `nosemgrepDisabled` boolean
    - `organizationId` string

---

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