The name of the repository, for example: projects/p1/locations/us-central1/repositories/repo1. For each location in a project, repository names must be unique.
[[["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-13 UTC."],[[["\u003cp\u003eThis page details the process of updating a repository, including the specific structure of the HTTP request.\u003c/p\u003e\n"],["\u003cp\u003eThe update process involves specifying the repository name via path parameters, using the format \u003ccode\u003eprojects/p1/locations/us-central1/repositories/repo1\u003c/code\u003e, ensuring uniqueness within each location in a project.\u003c/p\u003e\n"],["\u003cp\u003eQuery parameters, specifically \u003ccode\u003eupdateMask\u003c/code\u003e, are used to define which fields of the repository should be updated, using a comma-separated list of field names.\u003c/p\u003e\n"],["\u003cp\u003eBoth the request and response bodies utilize the \u003ccode\u003eRepository\u003c/code\u003e instance, defined elsewhere, for the data being sent and received.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for updating a repository requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.repositories.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- [Examples](#examples)\n- [Try it!](#try-it)\n\nUpdates a repository.\n\n### HTTP request\n\nChoose a location: \nglobal europe-west3 europe-west8 europe-west9 us-central1 us-east1 us-east4 us-east5 us-south1 us-west1 us-west2 us-west3 us-west4 me-central2 us eu \n\n\u003cbr /\u003e\n\nThe URLs use [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 [Repository](/artifact-registry/docs/reference/rest/v1/projects.locations.repositories#Repository).\n\n### Response body\n\nIf successful, the response body contains an instance of [Repository](/artifact-registry/docs/reference/rest/v1/projects.locations.repositories#Repository).\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)."]]