---
title: "Create Vulnerability Exceptions"
method: POST
path: "/api/v2/VulnerabilityExceptions"
tags: ["VulnerabilityExceptions"]
---

# Create Vulnerability Exceptions

`POST /api/v2/VulnerabilityExceptions`

Create a vulnerability exception by specifying parameters in the request body when invoking the following endpoint:

  > `POST https://YourAccount.lacework.net/api/v2/VulnerabilityExceptions`

## Headers

- `Authorization` string, required
- `Content-Type` string, required

## Request body

- union
  - VulnerabilityExceptionsContainerCreateSchema
    - `exceptionName` string, required — Name of the exception.
    - `exceptionReason` 'False Positive' | 'Accepted Risk' | 'Compensating Controls' | 'Fix Pending' | 'Other', required — Reason for creating an exception
    - `resourceScope` object — The set of resources this exception can apply to. The data varies based on the value of the `exceptionType` attribute.
      - `imageId` string[] — The SHA-256 hash that was generated for the container image. For example, `sha256:ex4ampl3`.
      - `imageTag` string[] — The container image tag.
      - `registry` string[] — The container registry.
      - `repository` string[] — The container repository.
      - `namespace` string[] — The namespace for the package distribution (for example, an operating system or language package).
    - `vulnerabilityCriteria` object, required — When sending a request, use this object to define the criteria of the vulnerability to be excluded. The criteria value changes depending on the type of criteria selected.
      - `cve` string[] — The vulnerability (CVE) ID that you want to constrain the exception to. You can provide multiple IDs.
      - `package` object[] — The package name (for example, an operating system or language package). This can include a version number. You can provide multiple package names.
      - `severity` string[] — The severity levels of the vulnerability to constrain the exception to a **Critical**, **High**, **Medium**, **Low**, or **Info** vulnerability. You can provide multiple severity levels. You can provide multiple severity levels.
      - `fixable` number[] — When sending a request, set to `True` or `False` to constrain the exception to a fixable or non-fixable vulnerability.
    - `expiryTime` string — The exception's expiration date and time.
    - `state` 1 — State
    - `props` object, required — The vulnerability exception's properties.
      - `description` string — A brief description of the exception creation.
      - `createdBy` string — The user who creates the exception.
      - `updatedBy` string — The user who updates the exception.
    - `exceptionType` 'Container', required — Exception Type
  - VulnerabilityExceptionsHostCreateSchema
    - `exceptionName` string, required — Name of the exception.
    - `exceptionReason` 'False Positive' | 'Accepted Risk' | 'Compensating Controls' | 'Fix Pending' | 'Other', required — Reason for creating an exception
    - `resourceScope` object — The set of resources this exception can apply to. The data varies based on the value of the `exceptionType` attribute.
      - `hostname` string[] — The hostname of the machine.
      - `externalIp` string[] — The external IP address.
      - `clusterName` string[] — The cluster name for the group of hosts.
      - `namespace` string[] — The namespace for the package distribution (for example, an operating system or language package).
    - `vulnerabilityCriteria` object, required — When sending a request, use this object to define the criteria of the vulnerability to be excluded. The criteria value changes depending on the type of criteria selected.
      - `cve` string[] — The vulnerability (CVE) ID that you want to constrain the exception to. You can provide multiple IDs.
      - `package` object[] — The package name (for example, an operating system or language package). This can include a version number. You can provide multiple package names.
      - `severity` string[] — The severity constrains the vulnerability severity levels for an exception, from **Critical**, **High**, **Medium**, **Low**, or **Info**. You can provide multiple severity levels.
      - `fixable` number[] — When sending a request, set to `True` or `False` to constrain the exception to a fixable or non-fixable vulnerability.
    - `expiryTime` string — The exception's expiration date and time.
    - `state` 1 — State
    - `props` object, required — The vulnerability exception's properties.
      - `description` string — A brief description of the exception creation.
      - `createdBy` string — The user who creates the exception.
      - `updatedBy` string — The user who updates the exception.
    - `exceptionType` 'Host', required — Exception Type

## Response `201`

No Error

- object
  - `data` union
    - VulnerabilityExceptionsContainerResponseSchema
      - `exceptionName` string, required — Name of the exception.
      - `exceptionReason` 'False Positive' | 'Accepted Risk' | 'Compensating Controls' | 'Fix Pending' | 'Other', required — Reason for creating an exception
      - `resourceScope` object — The set of resources this exception can apply to. The data varies based on the value of the `exceptionType` attribute.
        - `imageId` string[] — The SHA-256 hash that was generated for the container image. For example, `sha256:ex4ampl3`.
        - `imageTag` string[] — The container image tag.
        - `registry` string[] — The container registry.
        - `repository` string[] — The container repository.
        - `namespace` string[] — The namespace for the package distribution (for example, an operating system or language package).
      - `vulnerabilityCriteria` object, required — When sending a request, use this object to define the criteria of the vulnerability to be excluded. The criteria value changes depending on the type of criteria selected.
        - `cve` string[] — The vulnerability (CVE) ID that you want to constrain the exception to. You can provide multiple IDs.
        - `package` object[] — The package name (for example, an operating system or language package). This can include a version number. You can provide multiple package names.
        - `severity` string[] — The severity levels of the vulnerability to constrain the exception to a **Critical**, **High**, **Medium**, **Low**, or **Info** vulnerability. You can provide multiple severity levels. You can provide multiple severity levels.
        - `fixable` number[] — When sending a request, set to `True` or `False` to constrain the exception to a fixable or non-fixable vulnerability.
      - `expiryTime` string — The exception's expiration date and time.
      - `state` 1 — State
      - `props` object, required — The vulnerability exception's properties.
        - `description` string — A brief description of the exception creation.
        - `createdBy` string — The user who creates the exception.
        - `updatedBy` string — The user who updates the exception.
      - `exceptionType` 'Container', required — Exception Type
      - `exceptionGuid` string — Vulnerability Exception ID
      - `createdTime` string — The time and date when the vulnerability exception was created.
      - `updatedTime` string — The time and date when the vulnerability exception was last updated.
    - VulnerabilityExceptionsHostResponseSchema
      - `exceptionName` string, required — Name of the exception.
      - `exceptionReason` 'False Positive' | 'Accepted Risk' | 'Compensating Controls' | 'Fix Pending' | 'Other', required — Reason for creating an exception
      - `resourceScope` object — The set of resources this exception can apply to. The data varies based on the value of the `exceptionType` attribute.
        - `hostname` string[] — The hostname of the machine.
        - `externalIp` string[] — The external IP address.
        - `clusterName` string[] — The cluster name for the group of hosts.
        - `namespace` string[] — The namespace for the package distribution (for example, an operating system or language package).
      - `vulnerabilityCriteria` object, required — When sending a request, use this object to define the criteria of the vulnerability to be excluded. The criteria value changes depending on the type of criteria selected.
        - `cve` string[] — The vulnerability (CVE) ID that you want to constrain the exception to. You can provide multiple IDs.
        - `package` object[] — The package name (for example, an operating system or language package). This can include a version number. You can provide multiple package names.
        - `severity` string[] — The severity constrains the vulnerability severity levels for an exception, from **Critical**, **High**, **Medium**, **Low**, or **Info**. You can provide multiple severity levels.
        - `fixable` number[] — When sending a request, set to `True` or `False` to constrain the exception to a fixable or non-fixable vulnerability.
      - `expiryTime` string — The exception's expiration date and time.
      - `state` 1 — State
      - `props` object, required — The vulnerability exception's properties.
        - `description` string — A brief description of the exception creation.
        - `createdBy` string — The user who creates the exception.
        - `updatedBy` string — The user who updates the exception.
      - `exceptionType` 'Host', required — Exception Type
      - `exceptionGuid` string — Vulnerability Exception ID
      - `createdTime` string — The time and date when the vulnerability exception was created.
      - `updatedTime` string — The time and date when the vulnerability exception was last updated.

## Other responses

- `4XX` — Client Error
- `5XX` — Internal Server Error

---

[API](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation.md) · [All operations](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lacework/forticnapp-api-2-0-documentation/revisions/7015f76895f2/schema)
