{
  "opencollection": "1.0.0",
  "info": {
    "name": "APIContext Schedules API",
    "version": "v2026-09-02"
  },
  "items": [
    {
      "info": {
        "name": "Schedules",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List-Schedules",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://client.apimetrics.io/api/3/schedules/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List schedules for the project."
        },
        {
          "info": {
            "name": "Create-Schedule",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://client.apimetrics.io/api/3/schedules/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create a new schedule for the project."
        },
        {
          "info": {
            "name": "Get-Schedule",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://client.apimetrics.io/api/3/schedules/:schedule_id",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "schedule_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get a specific schedule by ID."
        },
        {
          "info": {
            "name": "Update-Schedule",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://client.apimetrics.io/api/3/schedules/:schedule_id",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "schedule_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update an existing schedule."
        },
        {
          "info": {
            "name": "Delete-Schedule",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://client.apimetrics.io/api/3/schedules/:schedule_id",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "schedule_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete an existing schedule for this org."
        },
        {
          "info": {
            "name": "Add-Call-To-Schedule",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://client.apimetrics.io/api/3/schedules/:schedule_id/targets/:target_id",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "schedule_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "target_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Add a target to an existing schedule."
        },
        {
          "info": {
            "name": "Remove-Call-From-Schedule",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://client.apimetrics.io/api/3/schedules/:schedule_id/targets/:target_id",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "schedule_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "target_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Remove a target from an existing schedule."
        },
        {
          "info": {
            "name": "List-Schedules-By-Call",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://client.apimetrics.io/api/2/schedules/call/:call_id/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "call_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List schedules that target a specific API call."
        },
        {
          "info": {
            "name": "List-Schedules-By-Workflow",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://client.apimetrics.io/api/2/schedules/workflow/:workflow_id/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "workflow_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List schedules that target a specific workflow."
        },
        {
          "info": {
            "name": "List-Schedules",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://client.apimetrics.io/api/2/schedules/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List all schedules for the authenticated project.\n\nA project with no schedules and no cursor gets a freshly-created\n\"Default Schedule\".\n\nDeprecated: use ``GET /api/3/schedules/`` instead."
        },
        {
          "info": {
            "name": "Create-Schedule",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://client.apimetrics.io/api/2/schedules/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create a new schedule.\n\nDeprecated: use ``POST /api/3/schedules/`` instead."
        },
        {
          "info": {
            "name": "Get-Schedule",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://client.apimetrics.io/api/2/schedules/:schedule_id/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "schedule_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get a single schedule by id.\n\nDeprecated: use ``GET /api/3/schedules/{schedule_id}`` instead."
        },
        {
          "info": {
            "name": "Update-Schedule",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://client.apimetrics.io/api/2/schedules/:schedule_id/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "schedule_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Partially update a schedule (only supplied fields change).\n\nDeprecated: use ``PUT /api/3/schedules/{schedule_id}`` instead."
        },
        {
          "info": {
            "name": "Delete-Schedule",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://client.apimetrics.io/api/2/schedules/:schedule_id/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "schedule_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete a schedule and return its last representation.\n\nDeprecated: use ``DELETE /api/3/schedules/{schedule_id}`` instead."
        },
        {
          "info": {
            "name": "Ensure-Schedule-Call",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://client.apimetrics.io/api/2/schedules/:schedule_id/call/:call_id",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "schedule_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "call_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Associate an API call with a schedule (idempotent; 202 if already associated).\n\nDeprecated: use ``POST /api/3/schedules/{schedule_id}/targets/{target_id}``\ninstead."
        },
        {
          "info": {
            "name": "Remove-Schedule-Call",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://client.apimetrics.io/api/2/schedules/:schedule_id/call/:call_id",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "schedule_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "call_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Disassociate an API call from a schedule (202 if it was not associated).\n\nDeprecated: use ``DELETE /api/3/schedules/{schedule_id}/targets/{target_id}``\ninstead."
        },
        {
          "info": {
            "name": "Ensure-Schedule-Workflow",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://client.apimetrics.io/api/2/schedules/:schedule_id/run/:workflow_id",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "schedule_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "workflow_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Associate a workflow with a schedule (idempotent; 202 if already associated).\n\nDeprecated: use ``POST /api/3/schedules/{schedule_id}/targets/{target_id}``\ninstead -- it accepts both call and workflow target ids."
        },
        {
          "info": {
            "name": "Remove-Schedule-Workflow",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://client.apimetrics.io/api/2/schedules/:schedule_id/run/:workflow_id",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "schedule_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "workflow_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Disassociate a workflow from a schedule (202 if it was not associated).\n\nDeprecated: use ``DELETE /api/3/schedules/{schedule_id}/targets/{target_id}``\ninstead -- it accepts both call and workflow target ids."
        },
        {
          "info": {
            "name": "List-Schedule-Downtimes",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://client.apimetrics.io/api/2/schedules/:schedule_id/downtime/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "schedule_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List scheduled downtimes for a schedule."
        },
        {
          "info": {
            "name": "Create-Schedule-Downtime",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://client.apimetrics.io/api/2/schedules/:schedule_id/downtime/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "schedule_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create a scheduled downtime under a schedule."
        },
        {
          "info": {
            "name": "Get-Schedule-Downtime",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://client.apimetrics.io/api/2/schedules/downtime/:downtime_id/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "downtime_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get a single scheduled downtime by id."
        },
        {
          "info": {
            "name": "Update-Schedule-Downtime",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://client.apimetrics.io/api/2/schedules/downtime/:downtime_id/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "downtime_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Partially update a scheduled downtime (only supplied fields change)."
        },
        {
          "info": {
            "name": "Delete-Schedule-Downtime",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://client.apimetrics.io/api/2/schedules/downtime/:downtime_id/",
            "headers": [
              {
                "name": "apimetrics-project-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "downtime_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://auth.apimetrics.io/authorize?audience=https://client.apimetrics.io",
              "accessTokenUrl": "https://auth.apimetrics.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete a scheduled downtime and return its last representation."
        }
      ]
    }
  ],
  "bundled": true
}