---
title: "POST /v2/update-dependency"
method: POST
path: "/v2/update-dependency"
---

# POST /v2/update-dependency

`POST /v2/update-dependency`

Updates a dependency classification.

## Request body

- object
  - `serviceArn` string, required — ARN identifier.
  - `dependencyId` string, required — The identifier of the dependency to update.
  - `criticality` 'HARD' | 'SOFT' | 'UNKNOWN' — The updated criticality level of the dependency.
  - `comment` string — A comment about the dependency.

## Response `200`

Success

- UpdateDependencyResponse
  - `dependencyId` string, required — The identifier of the updated dependency.
  - `dependencyName` string, required — The name of the updated dependency.
  - `location` string, required — The location of the dependency.
  - `criticality` 'HARD' | 'SOFT' | 'UNKNOWN', required — The criticality level of the dependency.
  - `comment` string — The comment about the dependency.
  - `provider` string — The provider of the dependency.
  - `updatedAt` string, date-time, required — The timestamp when the dependency was updated.

## Other responses

- `480` — InternalServerException
- `481` — ResourceNotFoundException
- `482` — ValidationException
- `483` — ConflictException
- `484` — AccessDeniedException

---

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