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>"
],
"name": "<string>",
"run_at": "<string>",
"secrets": [
"<string>"
],
"start_time": "<string>",
"task_message": "<string>"
}
'import requests
url = "https://neo.api.projectdiscovery.io/api/v1/schedules/{id}"
payload = {
"custom_weekdays": [3],
"direct_agent_id": "<string>",
"file_keys": ["<string>"],
"name": "<string>",
"run_at": "<string>",
"secrets": ["<string>"],
"start_time": "<string>",
"task_message": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
custom_weekdays: [3],
direct_agent_id: '<string>',
file_keys: ['<string>'],
name: '<string>',
run_at: '<string>',
secrets: ['<string>'],
start_time: '<string>',
task_message: '<string>'
})
};
fetch('https://neo.api.projectdiscovery.io/api/v1/schedules/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://neo.api.projectdiscovery.io/api/v1/schedules/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'custom_weekdays' => [
3
],
'direct_agent_id' => '<string>',
'file_keys' => [
'<string>'
],
'name' => '<string>',
'run_at' => '<string>',
'secrets' => [
'<string>'
],
'start_time' => '<string>',
'task_message' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://neo.api.projectdiscovery.io/api/v1/schedules/{id}"
payload := strings.NewReader("{\n \"custom_weekdays\": [\n 3\n ],\n \"direct_agent_id\": \"<string>\",\n \"file_keys\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"run_at\": \"<string>\",\n \"secrets\": [\n \"<string>\"\n ],\n \"start_time\": \"<string>\",\n \"task_message\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://neo.api.projectdiscovery.io/api/v1/schedules/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"custom_weekdays\": [\n 3\n ],\n \"direct_agent_id\": \"<string>\",\n \"file_keys\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"run_at\": \"<string>\",\n \"secrets\": [\n \"<string>\"\n ],\n \"start_time\": \"<string>\",\n \"task_message\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://neo.api.projectdiscovery.io/api/v1/schedules/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"custom_weekdays\": [\n 3\n ],\n \"direct_agent_id\": \"<string>\",\n \"file_keys\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"run_at\": \"<string>\",\n \"secrets\": [\n \"<string>\"\n ],\n \"start_time\": \"<string>\",\n \"task_message\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"schedule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"next_execution_at": "2023-11-07T05:31:56Z",
"scan_frequency": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": "Bad request",
"code": "user_spending_cap_reached",
"error_id": "<string>",
"kind": "forbidden request",
"message": "<string>"
}{
"error": "Bad request",
"code": "user_spending_cap_reached",
"error_id": "<string>",
"kind": "forbidden request",
"message": "<string>"
}{
"error": "Bad request",
"code": "user_spending_cap_reached",
"error_id": "<string>",
"kind": "forbidden request",
"message": "<string>"
}{
"error": "Bad request",
"code": "user_spending_cap_reached",
"error_id": "<string>",
"kind": "forbidden request",
"message": "<string>"
}{
"error": "Bad request",
"code": "user_spending_cap_reached",
"error_id": "<string>",
"kind": "forbidden request",
"message": "<string>"
}Update schedule
Update an existing schedule. Partial updates supported - only include fields to change. Note: Changing schedule_type (recurring ↔ one_time) is not supported; delete and recreate the schedule instead.
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>"
],
"name": "<string>",
"run_at": "<string>",
"secrets": [
"<string>"
],
"start_time": "<string>",
"task_message": "<string>"
}
'import requests
url = "https://neo.api.projectdiscovery.io/api/v1/schedules/{id}"
payload = {
"custom_weekdays": [3],
"direct_agent_id": "<string>",
"file_keys": ["<string>"],
"name": "<string>",
"run_at": "<string>",
"secrets": ["<string>"],
"start_time": "<string>",
"task_message": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
custom_weekdays: [3],
direct_agent_id: '<string>',
file_keys: ['<string>'],
name: '<string>',
run_at: '<string>',
secrets: ['<string>'],
start_time: '<string>',
task_message: '<string>'
})
};
fetch('https://neo.api.projectdiscovery.io/api/v1/schedules/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://neo.api.projectdiscovery.io/api/v1/schedules/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'custom_weekdays' => [
3
],
'direct_agent_id' => '<string>',
'file_keys' => [
'<string>'
],
'name' => '<string>',
'run_at' => '<string>',
'secrets' => [
'<string>'
],
'start_time' => '<string>',
'task_message' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://neo.api.projectdiscovery.io/api/v1/schedules/{id}"
payload := strings.NewReader("{\n \"custom_weekdays\": [\n 3\n ],\n \"direct_agent_id\": \"<string>\",\n \"file_keys\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"run_at\": \"<string>\",\n \"secrets\": [\n \"<string>\"\n ],\n \"start_time\": \"<string>\",\n \"task_message\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://neo.api.projectdiscovery.io/api/v1/schedules/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"custom_weekdays\": [\n 3\n ],\n \"direct_agent_id\": \"<string>\",\n \"file_keys\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"run_at\": \"<string>\",\n \"secrets\": [\n \"<string>\"\n ],\n \"start_time\": \"<string>\",\n \"task_message\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://neo.api.projectdiscovery.io/api/v1/schedules/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"custom_weekdays\": [\n 3\n ],\n \"direct_agent_id\": \"<string>\",\n \"file_keys\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"run_at\": \"<string>\",\n \"secrets\": [\n \"<string>\"\n ],\n \"start_time\": \"<string>\",\n \"task_message\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"schedule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"next_execution_at": "2023-11-07T05:31:56Z",
"scan_frequency": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": "Bad request",
"code": "user_spending_cap_reached",
"error_id": "<string>",
"kind": "forbidden request",
"message": "<string>"
}{
"error": "Bad request",
"code": "user_spending_cap_reached",
"error_id": "<string>",
"kind": "forbidden request",
"message": "<string>"
}{
"error": "Bad request",
"code": "user_spending_cap_reached",
"error_id": "<string>",
"kind": "forbidden request",
"message": "<string>"
}{
"error": "Bad request",
"code": "user_spending_cap_reached",
"error_id": "<string>",
"kind": "forbidden request",
"message": "<string>"
}{
"error": "Bad request",
"code": "user_spending_cap_reached",
"error_id": "<string>",
"kind": "forbidden request",
"message": "<string>"
}Authorizations
JWT authentication token
Path Parameters
Schedule ID
Body
0 <= x <= 6LLM model identifier. "auto" defers model selection to the agent, which picks per-request based on task complexity, cost, and security context.
auto, opus-5, opus-4.8, opus-4.7, opus-4.6, sonnet-4.6, haiku-4.5, gpt-5.6-sol-high, gpt-5.6-terra-high, gemini-3-pro, gemini-3-flash, grok-4.3-high, grok-4.3-fast, grok-4.5-high, grok-4.5-fast, kimi-k3, glm-5.2, deepseek-v4-pro-high, deepseek-v4-flash 256Output reporting mode - 'full' returns all data (default), 'changes_only' generates a diff report. Omit the field to leave unchanged.
full, changes_only For one_time schedules - relative ("5m", "1h", "2d") or absolute ("14:30", "3:00PM") time. Required when changing to one_time.
daily, weekly, monthly, custom Change schedule type. Requires run_at when changing to one_time, or scan_frequency when changing to recurring.
recurring, one_time Start time in HH:MM format (24h)
1Response
Schedule updated
Show child attributes
Show child attributes

