---
title: "PATCH /v1/projects/{projectsId}/projectSettings"
method: PATCH
path: "/v1/projects/{projectsId}/projectSettings"
tags: ["projects"]
---

# PATCH /v1/projects/{projectsId}/projectSettings

`PATCH /v1/projects/{projectsId}/projectSettings`

## Request

- Base URL: `https://artifactregistry.googleapis.com`
- URL: `https://artifactregistry.googleapis.com/v1/projects/{projectsId}/projectSettings`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Updates the Settings for the Project.

## Path parameters

- `projectsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `updateMask` string, google-fieldmask

## Request body

- ProjectSettings: The Artifact Registry settings that apply to a Project.
  - `legacyRedirectionState` 'REDIRECTION_STATE_UNSPECIFIED' | 'REDIRECTION_FROM_GCR_IO_DISABLED' | 'REDIRECTION_FROM_GCR_IO_ENABLED' | 'REDIRECTION_FROM_GCR_IO_FINALIZED' | 'REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING' | 'REDIRECTION_FROM_GCR_IO_PARTIAL_AND_COPYING': The redirection state of the legacy repositories in this project.
  - `name` string: The name of the project's settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set
  - `pullPercent` integer: The percentage of pull traffic to redirect from GCR to AR when using partial redirection.

## Response `200`

Successful response

- ProjectSettings: The Artifact Registry settings that apply to a Project.
  - `legacyRedirectionState` 'REDIRECTION_STATE_UNSPECIFIED' | 'REDIRECTION_FROM_GCR_IO_DISABLED' | 'REDIRECTION_FROM_GCR_IO_ENABLED' | 'REDIRECTION_FROM_GCR_IO_FINALIZED' | 'REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING' | 'REDIRECTION_FROM_GCR_IO_PARTIAL_AND_COPYING': The redirection state of the legacy repositories in this project.
  - `name` string: The name of the project's settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set
  - `pullPercent` integer: The percentage of pull traffic to redirect from GCR to AR when using partial redirection.

---

[API](https://skmtc.dev/google/apis/artifactregistry.md) - [All operations](https://skmtc.dev/google/apis/artifactregistry/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/artifactregistry/revisions/83834d32294c?raw)
