---
title: "Update Automation (Admin)"
method: PATCH
path: "/v1/admin/automations"
tags: ["internal"]
---

# Update Automation (Admin)

`PATCH /v1/admin/automations`

## Query parameters

- `user_id` integer, required
- `event` string, required

## 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
  - `validate_scan_data` 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` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/projectdiscovery/apis/pdcp-api/changes/v1/admin/automations/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)
