curl --request PATCH \ --url 'https://api.e2enetworks.com/myaccount/api/v1/gpu/notebooks/autoscale-groups/{group_id}/scheduled-policies/{policy_id}/?project_id=<PROJECT_ID>&location=<LOCATION>&apikey=<API_KEY>' \ --header 'Authorization: Bearer <API_TOKEN>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": false}'import requests
response = requests.patch( "https://api.e2enetworks.com/myaccount/api/v1/gpu/notebooks/autoscale-groups/{group_id}/scheduled-policies/{policy_id}/", params={"project_id": "<PROJECT_ID>", "location": "<LOCATION>", "apikey": "<API_KEY>"}, headers={"Authorization": "Bearer <API_TOKEN>"}, json={ "enabled": False, },)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/gpu/notebooks/autoscale-groups/{group_id}/scheduled-policies/{policy_id}/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", location: "<LOCATION>", apikey: "<API_KEY>" });
const response = await fetch(url, { method: "PATCH", headers: { "Authorization": "Bearer <API_TOKEN>", "Content-Type": "application/json" }, body: JSON.stringify({ "enabled": false }),});console.log(await response.json());Pauses or resumes one schedule of an Auto Scaling Group. A paused schedule does not run and holds no capacity. This is the only field the call changes; to change anything else, edit the group. Needs the permission to update.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Auto Scaling Group ID
Schedule ID
Query Parameters
Section titled “Query Parameters”Project ID
Active IAM ID (To access contact person account) Find your Active IAM ID here
Location
Request Bodyrequired
Section titled “Request Bodyrequired”object
false pauses the schedule, true resumes it. Required.
Example
falseResponses
Section titled “Responses”Schedule updated
object
object
ID of the Auto Scaling Group.
The schedule’s name. Empty when none was sent.
When the schedule runs, as a cron expression.
The time zone cron_expression is read in.
Minimum number of VMs the schedule sets.
Maximum number of VMs the schedule sets.
false when the schedule is paused and does not run.
How long, in seconds, the schedule holds its range before the group goes back to its own. null when the change is permanent.
When the hold that is on now ends. null when the schedule is not holding.
When the schedule runs next. null when it is paused.
When the schedule last ran. null until it has.
object
Example
{ "code": 200, "message": "Success", "data": { "id": 12, "group_id": 41, "name": "Morning", "cron_expression": "0 8 * * 1-5", "timezone_name": "Asia/Kolkata", "target_min_replicas": 3, "target_max_replicas": 10, "enabled": true, "duration_seconds": 28800, "window_ends_at": null, "next_run_at": "2026-10-22T08:00:00+05:30", "last_run_at": null, "created_at": "2026-10-21T10:02:11+00:00" }, "errors": {}}enabled is missing (“enabled is required.”) or not true or false (“enabled must be a boolean.”). errors is “Project ID is missing or invalid” when project_id is missing or not a number.
object
object
Example
{ "code": 400, "message": "Bad Request", "data": {}, "errors": "enabled is required."}No Auto Scaling Group with that ID in the project and region, or no schedule with that ID in the group. errors is “Autoscale Group not found” or “Scheduled Policy not found”.
object
object
Example
{ "code": 404, "message": "Bad Request", "data": {}, "errors": "Scheduled Policy not found"}The schedule could not be paused or resumed. data is “Failed to pause the schedule:
object
object
Example
{ "code": 500, "message": "Internal Server Error", "data": "Failed to pause the schedule: <error>", "errors": {}}