---
title: "PATCH /v1/{+name}"
method: PATCH
path: "/v1/{+name}"
tags: ["projects"]
---

# PATCH /v1/{+name}

`PATCH /v1/{+name}`

Updates a file.

## Path parameters

- `name` string, required

## Query parameters

- `updateMask` string

## Request body

- GoogleDevtoolsArtifactregistryV1File — Files store content that is potentially associated with Packages or Versions.
  - `hashes` Hash[] — The hashes of the file content.
    - `value` string, byte — The hash value.
    - `type` 'HASH_TYPE_UNSPECIFIED' | 'SHA256' | 'MD5' | 'DIRSUM_SHA256' — The algorithm used to compute the hash value.
  - `updateTime` string, google-datetime — Output only. The time when the File was last updated.
  - `name` string — The name of the file, for example: `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`. If the file ID part contains slashes, they are escaped.
  - `sizeBytes` string, int64 — The size of the File in bytes.
  - `annotations` object — Optional. Client specified annotations.
  - `createTime` string, google-datetime — Output only. The time when the File was created.
  - `owner` string — The name of the Package or Version that owns this file, if any.
  - `fetchTime` string, google-datetime — Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/artifactregistry.md) · [All operations](https://skmtc.net/google/apis/artifactregistry/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/artifactregistry/versions/ab5639c979b9/schema)
