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

# PATCH /v1/{+name}

`PATCH /v1/{+name}`

Update a dependency based on the update_mask provided in the request. The following fields in the dependency can be updated: * description

## Path parameters

- `name` string, required

## Query parameters

- `updateMask` string

## Request body

- GoogleCloudApihubV1Dependency — A dependency resource defined in the API hub describes a dependency directed from a consumer to a supplier entity. A dependency can be defined between two Operations or between an Operation and External API.
  - `discoveryMode` 'DISCOVERY_MODE_UNSPECIFIED' | 'MANUAL' — Output only. Discovery mode of the dependency.
  - `state` 'STATE_UNSPECIFIED' | 'PROPOSED' | 'VALIDATED' — Output only. State of the dependency.
  - `consumer` GoogleCloudApihubV1DependencyEntityReference — Reference to an entity participating in a dependency.
    - `operationResourceName` string — The resource name of an operation in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
    - `externalApiResourceName` string — The resource name of an external API in the API Hub. Format: `projects/{project}/locations/{location}/externalApis/{external_api}`
    - `displayName` string — Output only. Display name of the entity.
  - `errorDetail` GoogleCloudApihubV1DependencyErrorDetail — Details describing error condition of a dependency.
    - `error` 'ERROR_UNSPECIFIED' | 'SUPPLIER_NOT_FOUND' | 'SUPPLIER_RECREATED' — Optional. Error in the dependency.
    - `errorTime` string, google-datetime — Optional. Timestamp at which the error was found.
  - `name` string — Identifier. The name of the dependency in the API Hub. Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
  - `supplier` GoogleCloudApihubV1DependencyEntityReference — Reference to an entity participating in a dependency.
    - `operationResourceName` string — The resource name of an operation in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
    - `externalApiResourceName` string — The resource name of an external API in the API Hub. Format: `projects/{project}/locations/{location}/externalApis/{external_api}`
    - `displayName` string — Output only. Display name of the entity.
  - `attributes` object — Optional. The list of user defined attributes associated with the dependency resource. The key is the attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value is the attribute values associated with the resource.
  - `description` string — Optional. Human readable description corresponding of the dependency.
  - `createTime` string, google-datetime — Output only. The time at which the dependency was created.
  - `updateTime` string, google-datetime — Output only. The time at which the dependency was last updated.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/apihub.md) · [All operations](https://skmtc.dev/google/apis/apihub/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/apihub/revisions/19473c7df886/schema)
