Updates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config.
[[["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-28 UTC."],[[["\u003cp\u003eThis document describes how to update an \u003ccode\u003eAuthConfig\u003c/code\u003e, which involves potential credential updates, re-encryption, and record updates in Spanner.\u003c/p\u003e\n"],["\u003cp\u003eThe update is performed via a \u003ccode\u003ePATCH\u003c/code\u003e HTTP request to a specified URL that includes the resource name of the \u003ccode\u003eAuthConfig\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the fields to be updated via the \u003ccode\u003eupdateMask\u003c/code\u003e query parameter, and the request body should contain an instance of \u003ccode\u003eAuthConfig\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful updates will return the modified \u003ccode\u003eAuthConfig\u003c/code\u003e in the response body.\u003c/p\u003e\n"],["\u003cp\u003eUpdating the \u003ccode\u003eAuthConfig\u003c/code\u003e requires either \u003ccode\u003eintegrations.apigeeAuthConfigs.update\u003c/code\u003e, \u003ccode\u003eintegrations.authConfigs.update\u003c/code\u003e, or \u003ccode\u003eintegrations.securityAuthConfigs.update\u003c/code\u003e IAM permission on the target resource, and uses the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.products.authConfigs.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n\nUpdates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config.\n\n### HTTP request\n\n`PATCH https://integrations.googleapis.com/v1/{authConfig.name=projects/*/locations/*/products/*/authConfigs/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [AuthConfig](/apigee/docs/reference/apis/integrations/rest/v1/projects.locations.products.authConfigs#AuthConfig).\n\n### Response body\n\nIf successful, the response body contains an instance of [AuthConfig](/apigee/docs/reference/apis/integrations/rest/v1/projects.locations.products.authConfigs#AuthConfig).\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires **one of** the following [IAM](https://cloud.google.com/iam/docs) permissions on the `name` resource, depending on the resource type:\n\n- `integrations.apigeeAuthConfigs.update`\n- `integrations.authConfigs.update`\n- `integrations.securityAuthConfigs.update`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]