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

# Set Scan Schedule

`POST /v1/scans/schedule`

set a scan schedule for a user

## Headers

- `X-Team-Id` string

## Request body

- object
  - `scan_id` string, required
  - `scan_frequency` 'hourly' | 'daily' | 'weekly' | 'monthly' | 'custom', required — Allowed frequencies for the scheduler
  - `start_time` string, time
  - `hourly_frequency` integer
  - `custom_weekdays` integer[] — 0-6 denoting Sunday-Saturday. It accepts an array of weekday

## Response `200`

Example response

- object
  - `message` string, required

## Other responses

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

---

[API](https://skmtc.net/projectdiscovery/apis/pdcp-api.md) · [All operations](https://skmtc.net/projectdiscovery/apis/pdcp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/projectdiscovery/pdcp-api/versions/220f0adf9efd/schema)
