---
title: "PATCH /api/v1/advisories/{advisoryId}"
method: PATCH
path: "/api/v1/advisories/{advisoryId}"
tags: ["Advisories"]
---

# PATCH /api/v1/advisories/{advisoryId}

`PATCH /api/v1/advisories/{advisoryId}`

## Request

- Base URL: `https://app.distr.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://app.distr.sh/api/v1/advisories/{advisoryId}`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Change the status or severity of an advisory

## Path parameters

- `advisoryId` string, required

## Request body

- object
  - `severity` string, nullable
  - `status` string, nullable

## Response `200`

OK

- ApiAdvisoryDetail
  - `affected` boolean, nullable
  - `affectedVersionCount` integer
  - `applicationVersions` ApiAdvisoryApplicationVersion[]
    - `applicationId` string
    - `applicationImageUrl` string, nullable
    - `applicationName` string
    - `applicationType` string
    - `applicationVersion` object
      - `applicationId` string
      - `archivedAt` string, date-time, nullable
      - `chartName` string, nullable
      - `chartType` string, nullable
      - `chartUrl` string, nullable
      - `chartVersion` string, nullable
      - `createdAt` string, date-time
      - `createdBy` object, nullable
        - `email` string
        - `id` string
        - `imageId` string, nullable
        - `name` string
      - `id` string
      - `linkTemplate` string
      - `name` string
    - `applicationVersioningStrategy` string
    - `relation` string
  - `artifactVersions` ApiAdvisoryArtifactVersion[]
    - `artifactId` string
    - `artifactImageUrl` string, nullable
    - `artifactName` string
    - `artifactVersionDigest` string
    - `artifactVersionId` string
    - `artifactVersionName` string
    - `artifactVersionTags` string[]
    - `relation` string
  - `createdAt` string, date-time
  - `createdByImageUrl` string, nullable
  - `createdByUserName` string, nullable
  - `cveId` string, nullable
  - `description` string
  - `events` ApiAdvisoryEvent[]
    - `createdAt` string, date-time
    - `id` string
    - `message` string, nullable
    - `type` string
    - `userImageUrl` string, nullable
    - `userName` string, nullable
  - `id` string
  - `patchedVersionCount` integer
  - `publishedAt` string, date-time, nullable
  - `referenceCount` integer
  - `references` ApiAdvisoryReference[]
    - `label` string, nullable
    - `url` string
  - `resolvedAt` string, date-time, nullable
  - `severity` string
  - `status` string
  - `tags` string[]
  - `title` string
  - `updatedAt` string, date-time

---

[API](https://skmtc.dev/distr/apis/distr-api-reference.md) - [All operations](https://skmtc.dev/distr/apis/distr-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/distr/apis/distr-api-reference/revisions/7dcafe205f83?raw)
