POST
https://spideriq.ai
/
api
/
v1
/
admin
/
proxy
/
schedules
curl -X POST "https://spideriq.ai/api/v1/admin/proxy/schedules" \
  -H "X-Admin-Key: your_admin_key" \
  -H "Content-Type: application/json" \
  -d '{
    "location_id": "33333333-3333-3333-3333-333333333333",
    "interval_minutes": 60,
    "rotation_method": "reconnect"
  }'
{
  "schedule_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "location_id": "33333333-3333-3333-3333-333333333333",
  "modem_id": null,
  "interval_minutes": 60,
  "rotation_method": "reconnect",
  "is_enabled": true,
  "next_run_at": "2026-01-05T14:00:00Z",
  "created_at": "2026-01-05T13:00:00Z"
}
This endpoint requires Admin API Key authentication via the X-Admin-Key header.
Creates a new scheduled rotation. You can schedule rotations for:
  • All modems at a location: Provide location_id
  • A specific modem: Provide modem_id

Request Body

location_id
string
UUID of location to schedule rotation for (all modems)
modem_id
string
UUID of specific modem to schedule rotation for
interval_minutes
integer
required
Interval between rotations in minutes (min: 5, max: 1440)
rotation_method
string
default:"reconnect"
Rotation method: reconnect, airplane, or reboot
is_enabled
boolean
default:"true"
Whether to enable the schedule immediately

Response

schedule_id
string
required
UUID of the created schedule
interval_minutes
integer
required
Configured rotation interval
next_run_at
string
required
ISO timestamp of first scheduled rotation
curl -X POST "https://spideriq.ai/api/v1/admin/proxy/schedules" \
  -H "X-Admin-Key: your_admin_key" \
  -H "Content-Type: application/json" \
  -d '{
    "location_id": "33333333-3333-3333-3333-333333333333",
    "interval_minutes": 60,
    "rotation_method": "reconnect"
  }'
{
  "schedule_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "location_id": "33333333-3333-3333-3333-333333333333",
  "modem_id": null,
  "interval_minutes": 60,
  "rotation_method": "reconnect",
  "is_enabled": true,
  "next_run_at": "2026-01-05T14:00:00Z",
  "created_at": "2026-01-05T13:00:00Z"
}

Notes

  • Only one of location_id or modem_id should be provided
  • The schedule starts immediately after creation
  • First rotation occurs after interval_minutes from creation time
  • Use reconnect for fastest rotation (~10s), airplane for most reliable (~30s)