---
title: "Update Automation"
method: PATCH
path: "/v1/automations/{event}"
tags: ["automations"]
---

# Update Automation

`PATCH /v1/automations/{event}`

## Headers

- `X-Team-Id` string

## Request body

- object
  - `name` string
  - `status` string
  - `scan_data` AutomationScanData
    - `targets` string[]
    - `templates` string[]
    - `name` string
    - `alerting_config_ids` string[]
    - `scan_config_ids` string[]
    - `reporting_config_ids` string[]
    - `early_templates` string[]
    - `exclude_targets` string[]
    - `enumeration_ids` EnumerationIds[]
      - `id` string, required
    - `disable_global_alert_config` boolean
    - `disable_global_report_config` boolean
    - `disable_global_scan_config` boolean
    - `socks5_proxy` string
    - `agent_id` string
    - `agent_tags` string[]
    - `agent_networks` string[]
    - `agent_auto_discover` boolean
    - `agent_behavior` 'distribute' | 'mirror'
    - `scan_id` string
    - `update_existing_scan` boolean
    - `scan_all_assets` boolean

## Response `200`

Example response

- object
  - `message` string, required

## Other responses

- `400` — Example response
- `401` — Example response
- `404` — Example response
- `500` — Example response
- `default` — Example response

## Changes

- **2025-11-18** `41ee26b930f3` — 5 info
  - added the new optional request property `scan_data/agent_auto_discover`
  - added the new optional request property `scan_data/agent_behavior`
  - added the new optional request property `scan_data/agent_id`
  - added the new optional request property `scan_data/agent_networks`
  - …1 more
- **2025-10-28** `c9df54e2fb2c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/projectdiscovery/apis/pdcp-api/changes/v1/automations/:event/patch.md)

---

[API](https://skmtc.dev/projectdiscovery/apis/pdcp-api.md) · [All operations](https://skmtc.dev/projectdiscovery/apis/pdcp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/projectdiscovery/pdcp-api/revisions/41ee26b930f3/schema)
