[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/source-repositories/docs/reference/rest/v1/projects.repos/patch [Back]  [Original]

Method: projects.repos.patch  |  Cloud Source Repositories  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

Method: projects.repos.patch Stay organized with collections Save and categorize content based on your preferences.

Updates information about a repo.

HTTP request

PATCH https://sourcerepo.googleapis.com/v1/{name=projects/*/repos/**}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

The name of the requested repository. Values are of the form projects/<project>/repos/<repo>.

Authorization requires the following IAM permission on the specified resource name:

  • source.repos.updateRepoConfig

Request body

The request body contains data with the following structure:

JSON representation
{
  "repo": {
    object (Repo)
  },
  "updateMask": string
}
Fields
repo

object (Repo)

The new configuration for the repository.

updateMask

string (FieldMask format)

A FieldMask specifying which fields of the repo to modify. Only the fields in the mask will be modified. If no mask is provided, this request is no-op.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Response body

If successful, the response body contains an instance of Repo.

Authorization scopes

Requires the following OAuth scope:

For more information, see the Authentication Overview.

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-06-27 UTC.

Need to tell us more? [[["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-27 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page