Method: projects.repos.patch

Updates information about a repo.

HTTP request

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

The URL uses Google API HTTP annotation 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 Google 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.

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:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Auth Guide.

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Source Repositories