---
title: "Set Scan Schedule"
method: POST
path: "/v1/scans/schedule"
---

# Set Scan Schedule

`POST /v1/scans/schedule`

set a scan schedule for a user

## Request body

- object
  - `targets` string[]
  - `templates` string[]
  - `assets` string[]
  - `private_templates` object[]
    - `name` string
    - `contents` string
  - `scan_id` string
  - `scan_frequency` 'daily' | 'monthly' | 'weekly', required
  - `recommended` boolean
  - `all` boolean

## Response `200`

Example response

- object
  - `message` string

## Other responses

- `401` — Example response
- `500` — Example response

## Changes

- **2023-12-05** `5c3748c387f7` — 6 breaking, 16 warning, 9 info
  - removed the enum value `custom` of the request property `scan_frequency`
  - removed the enum value `hourly` of the request property `scan_frequency`
  - the `scan_frequency` request property type changed from `string` to no type
  - the response property `message` became optional for the status `200`
  - …27 more

[Change history](https://skmtc.dev/projectdiscovery/apis/pdcp-api/changes/v1/scans/schedule/post.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/cd865d59d034/schema)
