2024-07-01T08:00:00Z.
Schedule a start time
Send aPOST request to /api/sites/start with the site id and the desired startDate:
Schedule a stop time
Send aPOST request to /api/sites/stop with the site id and the desired stopDate:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Automate when your HackGATE test environment goes live and shuts down by scheduling start and stop times. HackGATE notifies all org members by email.
2024-07-01T08:00:00Z.
POST request to /api/sites/start with the site id and the desired startDate:
curl -X POST https://api-admin.hackgate.io/api/sites/start \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"id": "SITE_ID", "startDate": "2024-07-01T08:00:00Z"}'
POST request to /api/sites/stop with the site id and the desired stopDate:
curl -X POST https://api-admin.hackgate.io/api/sites/stop \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"id": "SITE_ID", "stopDate": "2024-07-05T18:00:00Z"}'
| Field | Type | Description |
|---|---|---|
id | string | The site ID returned when the site was created. |
startDate | string (ISO 8601 UTC) | The datetime at which the site should be enabled. |
stopDate | string (ISO 8601 UTC) | The datetime at which the site should be disabled. |
Was this page helpful?