Skip to main content
PATCH
/
api
/
v1
/
schedules
/
{id}
Update schedule
curl --request PATCH \
  --url https://neo.api.projectdiscovery.io/api/v1/schedules/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "custom_weekdays": [
    3
  ],
  "direct_agent_id": "<string>",
  "file_keys": [
    "<string>"
  ],
  "llm_model": "auto",
  "name": "<string>",
  "reporting_mode": "full",
  "run_at": "<string>",
  "scan_frequency": "daily",
  "schedule_type": "recurring",
  "secrets": [
    "<string>"
  ],
  "start_time": "<string>",
  "task_message": "<string>"
}
'
{
  "schedule": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "next_execution_at": "2023-11-07T05:31:56Z",
    "scan_frequency": "<string>",
    "status": "active",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.neo.projectdiscovery.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT authentication token

Path Parameters

id
string<uuid>
required

Schedule ID

Body

application/json
custom_weekdays
integer[] | null
Required range: 0 <= x <= 6
direct_agent_id
string | null
file_keys
string[] | null
llm_model
enum<string>

LLM model identifier. "auto" defers model selection to the agent, which picks per-request based on task complexity, cost, and security context.

Available options:
auto,
opus-4.7,
opus-4.6,
sonnet-4.6,
haiku-4.5,
gpt-5.5-high,
gpt-5.4-xhigh,
gpt-5.4-high,
gpt-5.3-codex-high,
gemini-3-pro,
gemini-3-flash,
grok-4.1-fast,
grok-4-fast,
grok-code,
kimi-k2.6,
glm-5
name
string
Maximum string length: 256
reporting_mode
enum<string>

Output reporting mode - 'full' returns all data (default), 'changes_only' generates a diff report. Omit the field to leave unchanged.

Available options:
full,
changes_only
run_at
string

For one_time schedules - relative ("5m", "1h", "2d") or absolute ("14:30", "3:00PM") time. Required when changing to one_time.

scan_frequency
enum<string>
Available options:
daily,
weekly,
monthly,
custom
schedule_type
enum<string>

Change schedule type. Requires run_at when changing to one_time, or scan_frequency when changing to recurring.

Available options:
recurring,
one_time
secrets
string[] | null
start_time
string | null

Start time in HH:MM format (24h)

task_message
string
Minimum string length: 1

Response

Schedule updated

schedule
object
required