---
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

## Request body

- object
  - `scan_id` string, required
  - `scan_frequency` string, required

## Response `200`

Example response

- object
  - `message` string, required

## Other responses

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

## Changes

- **2024-01-31** `4f557b176ebd` — 5 breaking, 6 warning, 4 info
  - the request property `scan_id` became required
  - removed the enum value `daily` of the request property `scan_frequency`
  - removed the enum value `monthly` of the request property `scan_frequency`
  - removed the enum value `weekly` of the request property `scan_frequency`
  - …11 more
- **2023-12-06** `35be9c1301b7` — 1 info
  - api tag `scans` added
- **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/4f557b176ebd/schema)
