On September 15, 2026, all Cloud Composer 1 versions and versions 2.0.x of Cloud Composer 2 will reach their planned end of life. You will not be able to use environments with these versions. We recommend planning migration to Cloud Composer 3. Cloud Composer 2 versions 2.1.x and later are still supported and are not impacted by this change.
Identifier. The resource name of the Secret, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}"
[[["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-06-30 UTC."],[[["\u003cp\u003eThis page details how to update a user workloads Secret in Cloud Composer environments version composer-3-airflow-*.*.*-build.* and newer.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request method is \u003ccode\u003ePUT\u003c/code\u003e, using a specified URL structure for updating the Secret, which leverages gRPC Transcoding.\u003c/p\u003e\n"],["\u003cp\u003eThe resource name for the \u003ccode\u003euserWorkloadsSecret\u003c/code\u003e is a string, and its structure follows the format: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}".\u003c/p\u003e\n"],["\u003cp\u003eBoth the request and successful response bodies contain an instance of \u003ccode\u003eUserWorkloadsSecret\u003c/code\u003e, as defined in the provided documentation link.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this operation requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.environments.userWorkloadsSecrets.update\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- [Try it!](#try-it)\n\nUpdates a user workloads Secret.\n\nThis method is supported for Cloud Composer environments in versions composer-3-airflow-\\*.\\*.\\*-build.\\* and newer.\n\n### HTTP request\n\n`PUT https://composer.googleapis.com/v1beta1/{userWorkloadsSecret.name=projects/*/locations/*/environments/*/userWorkloadsSecrets/*}`\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 [UserWorkloadsSecret](/composer/docs/reference/rest/v1beta1/projects.locations.environments.userWorkloadsSecrets#UserWorkloadsSecret).\n\n### Response body\n\nIf successful, the response body contains an instance of [UserWorkloadsSecret](/composer/docs/reference/rest/v1beta1/projects.locations.environments.userWorkloadsSecrets#UserWorkloadsSecret).\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](/docs/authentication#authorization-gcp)."]]