---
title: "PATCH /api/v1/cert-manager/discovery-jobs/{discoveryId}"
method: PATCH
path: "/api/v1/cert-manager/discovery-jobs/{discoveryId}"
tags: ["PKI Discovery"]
---

# PATCH /api/v1/cert-manager/discovery-jobs/{discoveryId}

`PATCH /api/v1/cert-manager/discovery-jobs/{discoveryId}`

Update a PKI discovery configuration

## Path parameters

- `discoveryId` string, uuid, required

## Request body

- object
  - `name` string — Name of the discovery configuration
  - `description` string, nullable — Description of the discovery configuration
  - `targetConfig` object — Target configuration for discovery scans
    - `ipRanges` string[]
    - `domains` string[]
    - `ports` string
  - `isAutoScanEnabled` boolean — Enable automatic scheduled scans
  - `scanIntervalDays` number, nullable — Interval in days between automatic scans
  - `gatewayId` string, uuid, nullable — Gateway ID for scanning private networks
  - `gatewayPoolId` string, uuid, nullable — Gateway pool ID for scanning private networks
  - `isActive` boolean — Whether the discovery configuration is active

## Response `200`

Default Response

- object
  - `id` string, uuid, required
  - `name` string, required
  - `description` string, nullable
  - `discoveryType` string
  - `targetConfig` unknown
  - `isAutoScanEnabled` boolean
  - `scanIntervalDays` number, nullable
  - `gatewayId` string, uuid, nullable
  - `isActive` boolean
  - `lastScanStatus` string, nullable
  - `lastScanJobId` string, nullable
  - `lastScanMessage` string, nullable
  - `lastScannedAt` string, date-time, nullable
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `gatewayPoolId` string, uuid, nullable

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/infisical/apis/infisical-api.md) · [All operations](https://skmtc.net/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/infisical/infisical-api/revisions/f1a4e29016fd/schema)
