Microsoft Azure Scheduled Jobs API

The Scheduled Jobs API from Microsoft Azure, for scheduled jobs.

GitHub OpenAPI

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /scheduledJobs List scheduled job definitions in an application · Microsoft Azure Get The List Of Scheduled Job Definitions In An Application #
Ask an LLM
“Which scheduled jobs are defined in my IoT Central application?”
“Can I cap how many scheduled job definitions come back per page?”
Tell an agent
List the scheduled job definitions in my application, {page_size} per page.
Show all scheduled jobs in the app using API version {api_version}.
GET /scheduledJobs/{scheduledJobId} Get a scheduled job definition · Microsoft Azure Get A Scheduled Job By Id #
Ask an LLM
“What schedule and device group does one of my scheduled jobs use?”
“Is a particular scheduled job still enabled?”
Tell an agent
Show scheduled job {scheduled_job_id}.
Get the schedule and settings of scheduled job {scheduled_job_id}.
PUT /scheduledJobs/{scheduledJobId} Create or update a scheduled job · Microsoft Azure Create Or Update A Scheduled Job #
Ask an LLM
“How do I schedule a recurring job to run against a device group?”
“Can I set a cancellation threshold or batch size on a scheduled job?”
Tell an agent
Create scheduled job {scheduled_job_id} for device group {group} running {data} on schedule {schedule}.
Save scheduled job {scheduled_job_id} named {display_name} with batch settings {batch}.
PATCH /scheduledJobs/{scheduledJobId} Patch an existing scheduled job · Microsoft Azure Update A Scheduled Job Via Patch #
Ask an LLM
“Can I patch part of an existing scheduled job instead of replacing it?”
“How do I update a scheduled job only if nobody else changed it?”
Tell an agent
Patch scheduled job {scheduled_job_id}.
Update scheduled job {scheduled_job_id} only if its ETag is {etag}.
DELETE /scheduledJobs/{scheduledJobId} Delete a scheduled job · Microsoft Azure Delete A Scheduled Job #
Ask an LLM
“How do I delete a scheduled job so it never runs again?”
“Can I remove a scheduled job definition by its id?”
Tell an agent destructive · confirm first
Delete scheduled job {scheduled_job_id}.
Remove the scheduled job definition {scheduled_job_id} from my application.
GET /scheduledJobs/{scheduledJobId}/jobs List job runs of a scheduled job · Microsoft Azure Get The List Of Jobs For A Scheduled Job Definition #
Ask an LLM
“Which jobs has a scheduled job definition actually launched so far?”
“How can I see the run history of one scheduled job?”
Tell an agent
List the jobs spawned by scheduled job {scheduled_job_id}.
Show {page_size} runs at a time for scheduled job {scheduled_job_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-scheduled-jobs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-scheduled-jobs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure IoT Central Scheduled Jobs API
  description: Azure IoT Central is a service that makes it easy to connect, monitor, and manage your IoT devices at scale.
  version: 2022-10-31-preview
servers:
- url: /api
security:
- azure_auth:
  - user_impersonation
tags:
- name: Scheduled Jobs
paths:
  /scheduledJobs:
    get:
      operationId: microsoftAzureScheduledjobsList
      summary: Microsoft Azure Get The List Of Scheduled Job Definitions In An Application
      x-ms-examples:
        List scheduled jobs:
          $ref: ./examples/scheduledjobs_list.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/MaxPageSize'
      x-ms-pageable:
        nextLinkName: nextLink
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduledJobCollection'
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: Needs a more full description created.
      tags:
      - Scheduled Jobs
  /scheduledJobs/{scheduledJobId}:
    get:
      operationId: microsoftAzureScheduledjobsGet
      summary: Microsoft Azure Get A Scheduled Job By Id
      description: Get details about a scheduled job by ID.
      x-ms-examples:
        Get scheduled job by ID:
          $ref: ./examples/scheduledjobs_get.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/ScheduledJobId'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduledJob'
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Scheduled Jobs
    put:
      operationId: microsoftAzureScheduledjobsCreate
      summary: Microsoft Azure Create Or Update A Scheduled Job
      description: Create or update a scheduled job by ID.
      x-ms-examples:
        Create a scheduled job:
          $ref: ./examples/scheduledjobs_create.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/ScheduledJobId'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduledJob'
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Scheduled Jobs
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScheduledJob'
        description: Scheduled job definition.
        required: true
    patch:
      operationId: microsoftAzureScheduledjobsUpdate
      summary: Microsoft Azure Update A Scheduled Job Via Patch
      description: Update an existing scheduled job by ID.
      x-ms-examples:
        Update Scheduled Job:
          $ref: ./examples/scheduledjobs_update.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/ScheduledJobId'
      - $ref: '#/components/parameters/IfMatch'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduledJob'
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Scheduled Jobs
      requestBody:
        content:
          application/merge-patch+json:
            schema:
              type: object
        description: Scheduled job patch.
        required: true
    delete:
      operationId: microsoftAzureScheduledjobsRemove
      summary: Microsoft Azure Delete A Scheduled Job
      description: Delete an existing scheduled job by ID.
      x-ms-examples:
        Delete scheduled job:
          $ref: ./examples/scheduledjobs_delete.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/ScheduledJobId'
      responses:
        '204':
          description: Success
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Scheduled Jobs
  /scheduledJobs/{scheduledJobId}/jobs:
    get:
      operationId: microsoftAzureScheduledjobsListjobs
      summary: Microsoft Azure Get The List Of Jobs For A Scheduled Job Definition
      x-ms-examples:
        List running job instances:
          $ref: ./examples/scheduledjobs_list_jobs.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/ScheduledJobId'
      - $ref: '#/components/parameters/MaxPageSize'
      x-ms-pageable:
        nextLinkName: nextLink
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobCollection'
        default:
          description: An error response received from the IoT Central Service.
          headers:
            x-ms-error-code:
              description: Error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: Needs a more full description created.
      tags:
      - Scheduled Jobs
components:
  schemas:
    Job:
      description: The job definition.
      type: object
      properties:
        id:
          description: Unique ID of the job.
          type: string
          readOnly: true
        scheduledJobId:
          description: Id of the scheduled job definition that created this job.
          type: string
        displayName:
          description: Display name of the job.
          type: string
        description:
          description: Detailed description of the job.
          type: string
        group:
          description: The ID of the device group on which to execute the job.
          type: string
        batch:
          description: The batching configuration for the job.
          $ref: '#/components/schemas/JobBatch'
        cancellationThreshold:
          description: The cancellation threshold for the job.
          $ref: '#/components/schemas/JobCancellationThreshold'
        data:
          description: The capabilities being updated by the job and the values with which they are being updated.
          type: array
          items:
            $ref: '#/components/schemas/JobData'
          minItems: 1
        start:
          description: The start time of the job
          type: string
          format: date-time
          readOnly: true
        end:
          description: The end time of the job
          type: string
          format: date-time
          readOnly: true
        progress:
          description: The progress statistics of the job.
          $ref: '#/components/schemas/JobProgress'
          readOnly: true
        status:
          description: Indicates whether the job is starting, running, etc.
          type: string
          readOnly: true
        organizations:
          description: List of organizations of the job, only one organization is supported today, multiple organizations will be supported soon.
          type: array
          items:
            type: string
          maxItems: 1
          minItems: 1
      required:
      - group
      - data
    ScheduledJobCollection:
      description: The paged results of scheduled job definitions.
      type: object
      properties:
        value:
          description: The collection of scheduled jobs.
          type: array
          items:
            $ref: '#/components/schemas/ScheduledJob'
        nextLink:
          description: URL to get the next page of scheduled jobs.
          type: string
      required:
      - value
    JobCancellationThreshold:
      description: The job cancellation threshold definition.
      type: object
      properties:
        type:
          description: Whether the cancellation threshold is per a specified number of devices or a percentage of the total devices.
          type: string
          enum:
          - number
          - percentage
          x-ms-enum:
            name: JobCancellationThresholdType
            modelAsString: false
            values:
            - value: number
              name: Number
              description: Job cancellation threshold based on specified number of devices.
            - value: percentage
              name: Percentage
              description: Job cancellation threshold based on percentage of total devices.
        value:
          description: The number or percentage of devices on which the cancellation threshold is applied.
          type: number
        batch:
          description: Whether the cancellation threshold applies per-batch or to the overall job.
          type: boolean
      required:
      - type
      - value
    Error:
      description: The response error definition.
      type: object
      properties:
        error:
          description: Error details for current request.
          $ref: '#/components/schemas/ErrorDetails'
      required:
      - error
    JobCollection:
      description: The paged results of jobs.
      type: object
      properties:
        value:
          description: The collection of jobs.
          type: array
          items:
            $ref: '#/components/schemas/Job'
        nextLink:
          description: URL to get the next page of jobs.
          type: string
      required:
      - value
    ScheduledJob:
      description: The scheduled job definition.
      type: object
      properties:
        etag:
          description: ETag used to prevent conflict in scheduled job updates.
          type: string
        id:
          description: Unique ID of the scheduled job.
          type: string
          readOnly: true
        displayName:
          description: Display name of the scheduled job.
          type: string
        description:
          description: Detailed description of the scheduled job.
          type: string
        group:
          description: The ID of the device group on which to execute the scheduled job.
          type: string
        batch:
          description: The batching configuration for the scheduled job.
          $ref: '#/components/schemas/JobBatch'
        cancellationThreshold:
          description: The cancellation threshold for the scheduled job.
          $ref: '#/components/schemas/JobCancellationThreshold'
        data:
          description: Data related to the operation being performed by this job. All entries must be of the same type.
          type: array
          items:
            $ref: '#/components/schemas/JobData'
          minItems: 1
        organizations:
          description: List of organizations of the job, only one organization is supported today, multiple organizations will be supported soon.
          type: array
          items:
            type: string
          maxItems: 1
          minItems: 1
        schedule:
          description: The schedule at which to execute the job.
          $ref: '#/components/schemas/JobSchedule'
        enabled:
          description: Whether the scheduled job is enabled.
          type: boolean
        completed:
          description: Whether the scheduled job has completed.
          type: boolean
          readOnly: true
      required:
      - schedule
      - group
      - data
    JobData:
      description: The job data definition.
      type: object
      properties:
        type:
          description: Type of the job data.
          type: string
      required:
      - type
      discriminator:
        propertyName: type
    ErrorDetails:
      description: The detail information of the error.
      type: object
      properties:
        code:
          type: string
          description: Error code.
        message:
          type: string
          description: Error message details.
        requestId:
          type: string
          description: Correlation Id for current request.
        time:
          type: string
          format: date-time-rfc1123
          description: The time that error request failed.
      required:
      - code
      - message
    JobScheduleEnd:
      description: The end definition of job schedule.
      type: object
      properties:
        type:
          description: Type of the job schedule end.
          type: string
      required:
      - type
      discriminator:
        propertyName: type
    JobBatch:
      description: The job batch definition.
      type: object
      properties:
        type:
          description: Whether batching is done on a specified number of devices or a percentage of the total devices.
          type: string
          enum:
          - number
          - percentage
          x-ms-enum:
            name: JobBatchType
            modelAsString: false
            values:
            - value: number
              name: Number
              description: Job Batching based on number of devices.
            - value: percentage
              name: Percentage
              description: Job Batching based percentage of total applied devices.
        value:
          description: The number or percentage of devices on which batching is done.
          type: number
      required:
      - type
      - value
    JobSchedule:
      description: The schedule definition of job.
      type: object
      properties:
        recurrence:
          description: The recurrence of the scheduled job. If not provided, the job will run once at the specified start time.
          type: string
          enum:
          - daily
          - weekly
          - monthly
          x-ms-enum:
            name: JobRecurrence
            modelAsString: false
            values:
            - value: daily
              name: Daily
              description: The job will run once daily
            - value: weekly
              name: Weekly
              description: The job will run once every week
            - value: monthly
              name: Monthly
              description: The job will run once every month
        start:
          description: The start time for the scheduled job
          type: string
          format: date-time
        end:
          description: The specification of when to end the scheduled job.
          $ref: '#/components/schemas/JobScheduleEnd'
      required:
      - start
    JobProgress:
      description: progress summary for a scheduled job.
      type: object
      properties:
        total:
          description: The total number of entities targeted by the job.
          type: integer
          format: int32
        pending:
          description: The number of entities for which the job is not yet running.
          type: integer
          format: int32
        completed:
          description: The number of entities for which the job has completed.
          type: integer
          format: int32
        failed:
          description: The number of entities for which the job has failed.
          type: integer
          format: int32
  parameters:
    Version:
      in: query
      name: api-version
      description: The version of the API being called.
      x-ms-parameter-location: client
      required: true
      schema:
        type: string
    MaxPageSize:
      in: query
      name: maxpagesize
      description: The maximum number of resources to return from one response.
      x-ms-parameter-location: method
      required: false
      schema:
        type: integer
        format: int32
        maximum: 100
        minimum: 1
    ScheduledJobId:
      in: path
      name: scheduledJobId
      description: Unique ID of the scheduled job.
      x-ms-parameter-location: method
      required: true
      schema:
        type: string
        maxLength: 255
        pattern: ^[a-zA-Z0-9_-]*$
    IfMatch:
      in: header
      name: If-Match
      description: Only perform the operation if the entity's etag matches one of the etags provided or * is provided.
      x-ms-parameter-location: method
      required: false
      schema:
        type: string
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow
x-ms-parameterized-host:
  hostTemplate: '{subdomain}.{baseDomain}'
  parameters:
  - $ref: '#/components/parameters/BaseDomain'
  - $ref: '#/components/parameters/Subdomain'