{// Union field credential can be only one of the following:"cloudSql": {object (CloudSqlCredential)}// End of list of possible types for union field credential.}
Fields
Union field credential. Credential specific to the underlying data source. credential can be only one of the following:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["\u003cp\u003eThis page details how to update the credential for a specified connection using a PATCH request to the BigQuery Connection API.\u003c/p\u003e\n"],["\u003cp\u003eThe required URL for the PATCH request is structured using gRPC Transcoding syntax and includes the connection's name in the path.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires an authorization with \u003ccode\u003ebigquery.connections.update\u003c/code\u003e permission and must include a \u003ccode\u003eConnectionCredential\u003c/code\u003e in the body, which specifies the credential type.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful execution of the PATCH request results in an empty JSON object as the response, and requires either \u003ccode\u003ehttps://www.googleapis.com/auth/bigquery\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scopes.\u003c/p\u003e\n"],["\u003cp\u003eThe connection credentials can either be for the cloud or \u003ccode\u003ecloudSql\u003c/code\u003e, allowing selection for the specific underlying data source.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.connections.updateCredential\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [ConnectionCredential](#ConnectionCredential)\n - [JSON representation](#ConnectionCredential.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nSets the credential for the specified connection.\n\n### HTTP request\n\n`PATCH https://bigqueryconnection.googleapis.com/v1beta1/{name=projects/*/locations/*/connections/*/credential}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains an instance of [ConnectionCredential](/bigquery/docs/reference/bigqueryconnection/rest/v1beta1/projects.locations.connections/updateCredential#ConnectionCredential).\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/bigquery`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\nConnectionCredential\n--------------------\n\nCredential to use with a connection."]]