---
title: "PATCH /v1/projects/{projectsId}/locations/{locationsId}/accountConnectors/{accountConnectorsId}"
method: PATCH
path: "/v1/projects/{projectsId}/locations/{locationsId}/accountConnectors/{accountConnectorsId}"
tags: ["projects"]
---

# PATCH /v1/projects/{projectsId}/locations/{locationsId}/accountConnectors/{accountConnectorsId}

`PATCH /v1/projects/{projectsId}/locations/{locationsId}/accountConnectors/{accountConnectorsId}`

## Request

- Base URL: `https://developerconnect.googleapis.com`
- URL: `https://developerconnect.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/accountConnectors/{accountConnectorsId}`
- Auth: 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 parameters of a single AccountConnector.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `accountConnectorsId` string, required

## Query parameters

- `allowMissing` boolean
- `requestId` string
- `updateMask` string, google-fieldmask
- `validateOnly` boolean

## Request body

- AccountConnector: AccountConnector encapsulates what a platform administrator needs to configure for users to connect to the service providers, which includes, among other fields, the OAuth client ID, client secret, and authorization and token endpoints.
  - `annotations` object: Optional. Allows users to store small amounts of arbitrary data.
  - `createTime` string, google-datetime: Output only. The timestamp when the accountConnector was created.
  - `customOauthConfig` CustomOAuthConfig: Message for a customized OAuth config.
    - `authUri` string: Required. Immutable. The OAuth2 authorization server URL.
    - `clientId` string: Required. The client ID of the OAuth application.
    - `clientSecret` string: Required. Input only. The client secret of the OAuth application. It will be provided as plain text, but encrypted and stored in developer connect. As INPUT_ONLY field, it will not be included in the output.
    - `hostUri` string: Required. The host URI of the OAuth application.
    - `pkceDisabled` boolean: Optional. Disable PKCE for this OAuth config. PKCE is enabled by default.
    - `scmProvider` 'SCM_PROVIDER_UNKNOWN' | 'GITHUB_ENTERPRISE' | 'GITLAB_ENTERPRISE' | 'BITBUCKET_DATA_CENTER': Required. The type of the SCM provider.
    - `scopes` string[]: Required. The scopes to be requested during OAuth.
    - `serverVersion` string: Output only. SCM server version installed at the host URI.
    - `serviceDirectoryConfig` ServiceDirectoryConfig: ServiceDirectoryConfig represents Service Directory configuration for a connection.
      - `service` string: Required. The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
    - `sslCaCertificate` string: Optional. SSL certificate to use for requests to a private service.
    - `tokenUri` string: Required. Immutable. The OAuth2 token request URL.
  - `etag` string: Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
  - `labels` object: Optional. Labels as key value pairs
  - `name` string: Identifier. The resource name of the accountConnector, in the format `projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`.
  - `oauthStartUri` string: Output only. Start OAuth flow by clicking on this URL.
  - `providerOauthConfig` ProviderOAuthConfig: ProviderOAuthConfig is the OAuth config for a provider.
    - `scopes` string[]: Required. User selected scopes to apply to the Oauth config In the event of changing scopes, user records under AccountConnector will be deleted and users will re-auth again.
    - `systemProviderId` 'SYSTEM_PROVIDER_UNSPECIFIED' | 'GITHUB' | 'GITLAB' | 'GOOGLE' | 'SENTRY' | 'ROVO' | 'NEW_RELIC' | 'DATASTAX' | 'DYNATRACE' | 'BITBUCKET_CLOUD': Optional. Immutable. Developer Connect provided OAuth.
  - `proxyConfig` ProxyConfig: The proxy configuration.
    - `enabled` boolean: Optional. Setting this to true allows the git and http proxies to perform actions on behalf of the user configured under the account connector.
    - `httpProxyBaseUri` string: Output only. The base URI for the HTTP proxy endpoint. Has the format `https://{generatedID}-a-h-{shortRegion}.developerconnect.dev` Populated only when `enabled` is set to `true`. This endpoint is used by other Google services that integrate with Developer Connect.
  - `uid` string: Output only. A system-assigned unique identifier for the Account Connector.
  - `updateTime` string, google-datetime: Output only. The timestamp when the accountConnector was updated.

## Response `200`

Successful response

- Operation: This resource represents a long-running operation that is the result of a network API call.
  - `done` boolean: If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
  - `error` Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
    - `code` integer: The status code, which should be an enum value of google.rpc.Code.
    - `details` object[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
    - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  - `metadata` object: Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
  - `name` string: The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
  - `response` object: The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.

---

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