---
title: "PATCH /v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/deployments/{deploymentsId}"
method: PATCH
path: "/v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/deployments/{deploymentsId}"
tags: ["projects"]
---

# PATCH /v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/deployments/{deploymentsId}

`PATCH /v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/deployments/{deploymentsId}`

## Request

- Base URL: `https://ces.googleapis.com`
- URL: `https://ces.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/deployments/{deploymentsId}`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/ces`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/ces`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Updates the specified deployment.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `appsId` string, required
- `deploymentsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `updateMask` string, google-fieldmask

## Request body

- Deployment: A deployment represents an immutable, queryable version of the app. It is used to deploy an app version with a specific channel profile.
  - `agentRegistryDeployment` AgentRegistryDeployment: Configuration and status for Agent Registry deployment.
    - `agentRegistryServiceName` string: Optional. Output only. The resource name of the deployed Agent Registry service. Format: `projects/{project}/locations/{location}/services/{service}`
  - `appVersion` string: Optional. The resource name of the app version to deploy. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}` Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use the draft app.
  - `channelProfile` ChannelProfile: A ChannelProfile configures the agent's behavior for a specific communication channel, such as web UI or telephony.
    - `channelType` 'UNKNOWN' | 'WEB_UI' | 'API' | 'TWILIO' | 'GOOGLE_TELEPHONY_PLATFORM' | 'CONTACT_CENTER_AS_A_SERVICE' | 'CONTACT_CENTER_AS_A_SERVICE_CHAT' | 'FIVE9' | 'CONTACT_CENTER_INTEGRATION' | 'WHATSAPP' | 'INSTAGRAM': Optional. The type of the channel profile.
    - `disableBargeInControl` boolean: Optional. Whether to disable user barge-in control in the conversation. - **true**: User interruptions are disabled while the agent is speaking. - **false**: The agent retains automatic control over when the user can interrupt.
    - `disableDtmf` boolean: Optional. Whether to disable DTMF (dual-tone multi-frequency).
    - `instagramConfig` ChannelProfileInstagramConfig: Configuration specific to Instagram deployments.
      - `description` string: Output only. The description of the Meta business page or profile.
      - `displayName` string: Output only. The fetched Meta business page name.
      - `instagramAccountId` string: Required. The Instagram Account ID.
      - `thumbnailUrl` string: Output only. The fetched Meta business profile thumbnail URL.
    - `noiseSuppressionLevel` string: Optional. The noise suppression level of the channel profile. Available values are "low", "moderate", "high", "very_high".
    - `personaProperty` ChannelProfilePersonaProperty: Represents the persona property of a channel.
      - `persona` 'UNKNOWN' | 'CONCISE' | 'CHATTY': Optional. The persona of the channel.
    - `profileId` string: Optional. The unique identifier of the channel profile.
    - `webWidgetConfig` ChannelProfileWebWidgetConfig: Message for configuration for the web widget.
      - `modality` 'MODALITY_UNSPECIFIED' | 'CHAT_AND_VOICE' | 'VOICE_ONLY' | 'CHAT_ONLY' | 'CHAT_VOICE_AND_VIDEO': Optional. The modality of the web widget.
      - `securitySettings` ChannelProfileWebWidgetConfigSecuritySettings: Security settings for the web widget.
        - `allowedOrigins` string[]: Optional. The origins that are allowed to host the web widget. An origin is defined by RFC 6454. If empty, all origins are allowed. A maximum of 100 origins is allowed. Example: "https://example.com"
        - `enableOriginCheck` boolean: Optional. Indicates whether origin check for the web widget is enabled. If `true`, the web widget will check the origin of the website that loads the web widget and only allow it to be loaded in the same origin or any of the allowed origins.
        - `enablePublicAccess` boolean: Optional. Indicates whether public access to the web widget is enabled. If `true`, the web widget will be publicly accessible. If `false`, the web widget must be integrated with your own authentication and authorization system to return valid credentials for accessing the CES agent.
        - `enableRecaptcha` boolean: Optional. Indicates whether reCAPTCHA verification for the web widget is enabled.
      - `theme` 'THEME_UNSPECIFIED' | 'LIGHT' | 'DARK': Optional. The theme of the web widget.
      - `webWidgetTitle` string: Optional. The title of the web widget.
    - `whatsappConfig` ChannelProfileWhatsAppConfig: Configuration specific to WhatsApp deployments.
      - `description` string: Output only. The description of the Meta business page or profile.
      - `displayName` string: Output only. The fetched Meta business page name.
      - `phoneNumber` string: Optional. The phone number in E.164 format.
      - `phoneNumberId` string: Required. The Meta phone number ID.
      - `thumbnailUrl` string: Output only. The fetched Meta business profile thumbnail URL.
      - `wabaId` string: Required. The WhatsApp Business Account ID.
  - `createTime` string, google-datetime: Output only. Timestamp when this deployment was created.
  - `displayName` string: Required. Display name of the deployment.
  - `etag` string: Output only. Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
  - `experimentConfig` ExperimentConfig: Experiment for the deployment.
    - `versionRelease` ExperimentConfigVersionRelease: Version release for the experiment.
      - `state` 'STATE_UNSPECIFIED' | 'PENDING' | 'RUNNING' | 'DONE' | 'EXPIRED': Optional. State of the version release.
      - `trafficAllocations` ExperimentConfigVersionReleaseTrafficAllocation[]: Optional. Traffic allocations for the version release. When non-empty, the `traffic_percentage` values across all allocations must sum to `100`, representing the split of remaining non-study traffic.
        - `appVersion` string: Optional. App version of the traffic allocation. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
        - `id` string: Optional. Id of the traffic allocation. Free format string, up to 128 characters.
        - `trafficPercentage` integer: Optional. Traffic percentage of the traffic allocation, relative to the remaining non-study traffic. Must be between `0` and `100`.
  - `instagramCredentials` InstagramCredentials: Ephemeral Meta credentials for Instagram native integration.
    - `authCode` string: Required. The Meta auth code provided by the embedded signup flow.
    - `conversationProfileId` string: Optional. The Conversation Profile ID to use for the deployment.
  - `modality` 'MODALITY_UNSPECIFIED' | 'MODALITY_TEXT' | 'MODALITY_VOICE' | 'MODALITY_VIDEO': Optional. The modality of the deployment. Note: Deployment-level modality override is gated behind an allowlist. Contact the CXAS team to enable this field.
  - `modelSettings` ModelSettings: Model settings contains various configurations for the LLM model.
    - `model` string: Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
    - `temperature` number, double: Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model's responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
    - `thinkingLevel` 'THINKING_LEVEL_UNSPECIFIED' | 'DEFAULT' | 'LOW' | 'MEDIUM' | 'HIGH': Optional. The thinking level of the model.
  - `name` string: Identifier. The resource name of the deployment. Format: `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
  - `updateTime` string, google-datetime: Output only. Timestamp when this deployment was last updated.
  - `whatsappCredentials` WhatsAppCredentials: Ephemeral Meta credentials for WhatsApp native integration.
    - `authCode` string: Required. The Meta auth code provided by the embedded signup flow.
    - `businessAccountId` string: Required. The Business Account ID to use for the phone number.
    - `conversationProfileId` string: Optional. The Conversation Profile ID to use for the deployment.
    - `phoneNumber` string: Required. The phone number to register with WhatsApp.
    - `pin` string: Required. The 6-digit PIN created by the user for two-step verification.
    - `wabaId` string: Required. The WhatsApp Business Account ID.

## Response `200`

Successful response

- Deployment: A deployment represents an immutable, queryable version of the app. It is used to deploy an app version with a specific channel profile.
  - `agentRegistryDeployment` AgentRegistryDeployment: Configuration and status for Agent Registry deployment.
    - `agentRegistryServiceName` string: Optional. Output only. The resource name of the deployed Agent Registry service. Format: `projects/{project}/locations/{location}/services/{service}`
  - `appVersion` string: Optional. The resource name of the app version to deploy. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}` Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use the draft app.
  - `channelProfile` ChannelProfile: A ChannelProfile configures the agent's behavior for a specific communication channel, such as web UI or telephony.
    - `channelType` 'UNKNOWN' | 'WEB_UI' | 'API' | 'TWILIO' | 'GOOGLE_TELEPHONY_PLATFORM' | 'CONTACT_CENTER_AS_A_SERVICE' | 'CONTACT_CENTER_AS_A_SERVICE_CHAT' | 'FIVE9' | 'CONTACT_CENTER_INTEGRATION' | 'WHATSAPP' | 'INSTAGRAM': Optional. The type of the channel profile.
    - `disableBargeInControl` boolean: Optional. Whether to disable user barge-in control in the conversation. - **true**: User interruptions are disabled while the agent is speaking. - **false**: The agent retains automatic control over when the user can interrupt.
    - `disableDtmf` boolean: Optional. Whether to disable DTMF (dual-tone multi-frequency).
    - `instagramConfig` ChannelProfileInstagramConfig: Configuration specific to Instagram deployments.
      - `description` string: Output only. The description of the Meta business page or profile.
      - `displayName` string: Output only. The fetched Meta business page name.
      - `instagramAccountId` string: Required. The Instagram Account ID.
      - `thumbnailUrl` string: Output only. The fetched Meta business profile thumbnail URL.
    - `noiseSuppressionLevel` string: Optional. The noise suppression level of the channel profile. Available values are "low", "moderate", "high", "very_high".
    - `personaProperty` ChannelProfilePersonaProperty: Represents the persona property of a channel.
      - `persona` 'UNKNOWN' | 'CONCISE' | 'CHATTY': Optional. The persona of the channel.
    - `profileId` string: Optional. The unique identifier of the channel profile.
    - `webWidgetConfig` ChannelProfileWebWidgetConfig: Message for configuration for the web widget.
      - `modality` 'MODALITY_UNSPECIFIED' | 'CHAT_AND_VOICE' | 'VOICE_ONLY' | 'CHAT_ONLY' | 'CHAT_VOICE_AND_VIDEO': Optional. The modality of the web widget.
      - `securitySettings` ChannelProfileWebWidgetConfigSecuritySettings: Security settings for the web widget.
        - `allowedOrigins` string[]: Optional. The origins that are allowed to host the web widget. An origin is defined by RFC 6454. If empty, all origins are allowed. A maximum of 100 origins is allowed. Example: "https://example.com"
        - `enableOriginCheck` boolean: Optional. Indicates whether origin check for the web widget is enabled. If `true`, the web widget will check the origin of the website that loads the web widget and only allow it to be loaded in the same origin or any of the allowed origins.
        - `enablePublicAccess` boolean: Optional. Indicates whether public access to the web widget is enabled. If `true`, the web widget will be publicly accessible. If `false`, the web widget must be integrated with your own authentication and authorization system to return valid credentials for accessing the CES agent.
        - `enableRecaptcha` boolean: Optional. Indicates whether reCAPTCHA verification for the web widget is enabled.
      - `theme` 'THEME_UNSPECIFIED' | 'LIGHT' | 'DARK': Optional. The theme of the web widget.
      - `webWidgetTitle` string: Optional. The title of the web widget.
    - `whatsappConfig` ChannelProfileWhatsAppConfig: Configuration specific to WhatsApp deployments.
      - `description` string: Output only. The description of the Meta business page or profile.
      - `displayName` string: Output only. The fetched Meta business page name.
      - `phoneNumber` string: Optional. The phone number in E.164 format.
      - `phoneNumberId` string: Required. The Meta phone number ID.
      - `thumbnailUrl` string: Output only. The fetched Meta business profile thumbnail URL.
      - `wabaId` string: Required. The WhatsApp Business Account ID.
  - `createTime` string, google-datetime: Output only. Timestamp when this deployment was created.
  - `displayName` string: Required. Display name of the deployment.
  - `etag` string: Output only. Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
  - `experimentConfig` ExperimentConfig: Experiment for the deployment.
    - `versionRelease` ExperimentConfigVersionRelease: Version release for the experiment.
      - `state` 'STATE_UNSPECIFIED' | 'PENDING' | 'RUNNING' | 'DONE' | 'EXPIRED': Optional. State of the version release.
      - `trafficAllocations` ExperimentConfigVersionReleaseTrafficAllocation[]: Optional. Traffic allocations for the version release. When non-empty, the `traffic_percentage` values across all allocations must sum to `100`, representing the split of remaining non-study traffic.
        - `appVersion` string: Optional. App version of the traffic allocation. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
        - `id` string: Optional. Id of the traffic allocation. Free format string, up to 128 characters.
        - `trafficPercentage` integer: Optional. Traffic percentage of the traffic allocation, relative to the remaining non-study traffic. Must be between `0` and `100`.
  - `instagramCredentials` InstagramCredentials: Ephemeral Meta credentials for Instagram native integration.
    - `authCode` string: Required. The Meta auth code provided by the embedded signup flow.
    - `conversationProfileId` string: Optional. The Conversation Profile ID to use for the deployment.
  - `modality` 'MODALITY_UNSPECIFIED' | 'MODALITY_TEXT' | 'MODALITY_VOICE' | 'MODALITY_VIDEO': Optional. The modality of the deployment. Note: Deployment-level modality override is gated behind an allowlist. Contact the CXAS team to enable this field.
  - `modelSettings` ModelSettings: Model settings contains various configurations for the LLM model.
    - `model` string: Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
    - `temperature` number, double: Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model's responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
    - `thinkingLevel` 'THINKING_LEVEL_UNSPECIFIED' | 'DEFAULT' | 'LOW' | 'MEDIUM' | 'HIGH': Optional. The thinking level of the model.
  - `name` string: Identifier. The resource name of the deployment. Format: `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
  - `updateTime` string, google-datetime: Output only. Timestamp when this deployment was last updated.
  - `whatsappCredentials` WhatsAppCredentials: Ephemeral Meta credentials for WhatsApp native integration.
    - `authCode` string: Required. The Meta auth code provided by the embedded signup flow.
    - `businessAccountId` string: Required. The Business Account ID to use for the phone number.
    - `conversationProfileId` string: Optional. The Conversation Profile ID to use for the deployment.
    - `phoneNumber` string: Required. The phone number to register with WhatsApp.
    - `pin` string: Required. The 6-digit PIN created by the user for two-step verification.
    - `wabaId` string: Required. The WhatsApp Business Account ID.

## Changes

- **2026-11-17** `455f2f484021`: 4 info
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`
- **2026-11-11** `d1599b011b2e`: 4 info
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/ces/changes/v1/projects/:projectsId/locations/:locationsId/apps/:appsId/deployments/:deploymentsId/patch.md)

---

[API](https://skmtc.dev/google/apis/ces.md) - [All operations](https://skmtc.dev/google/apis/ces/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/ces/revisions/455f2f484021?raw)
