Amazon IoT Core Job Templates API

The Job Templates API from Amazon IoT Core — 2 operation(s) for job templates.

GitHub OpenAPI

Operations 4

PUT /job-templates/{jobTemplateId} Create Job Template #
DELETE /job-templates/{jobTemplateId} Delete Job Template #
GET /job-templates/{jobTemplateId} Describe Job Template #
GET /job-templates List Job Templates #

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/amazon-iot-core:amazon-iot-core-job-templates-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

amazon-iot-core-job-templates-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS IoT Job Templates API
  version: '2015-05-28'
  description: Generated from AWS's published Smithy model for AWS IoT. 4 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://iot.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /job-templates/{jobTemplateId}:
    put:
      operationId: CreateJobTemplate
      summary: Create Job Template
      description: Creates a job template. Requires permission to access the CreateJobTemplate action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateJobTemplateResponse'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '410':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: jobTemplateId
        in: path
        required: true
        schema:
          type: string
        description: A unique identifier for the job template. We recommend using a UUID. Alpha-numeric characters, "-", and
          "_" are valid for use here.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                jobArn:
                  type: string
                  description: The ARN of the job to use as the basis for the job template.
                documentSource:
                  type: string
                  description: An S3 link, or S3 object URL, to the job document. The link is an Amazon S3 object URL and
                    is required if you don't specify a value for document. For example, --document-source https://s3.region-code.amazonaws.com/example-firmware/device-firmware.1.0
                    For more information, see Methods for accessing a bucket.
                document:
                  type: string
                  description: The job document. Required if you don't specify a value for documentSource.
                description:
                  type: string
                  description: A description of the job document.
                presignedUrlConfig:
                  $ref: '#/components/schemas/PresignedUrlConfig'
                jobExecutionsRolloutConfig:
                  $ref: '#/components/schemas/JobExecutionsRolloutConfig'
                abortConfig:
                  $ref: '#/components/schemas/AbortConfig'
                timeoutConfig:
                  $ref: '#/components/schemas/TimeoutConfig'
                tags:
                  type: array
                  items:
                    $ref: '#/components/schemas/Tag'
                  description: Metadata that can be used to manage the job template.
                jobExecutionsRetryConfig:
                  $ref: '#/components/schemas/JobExecutionsRetryConfig'
                maintenanceWindows:
                  type: array
                  items:
                    $ref: '#/components/schemas/MaintenanceWindow'
                  description: Allows you to configure an optional maintenance window for the rollout of a job document to
                    all devices in the target group for a job.
                destinationPackageVersions:
                  type: array
                  items:
                    type: string
                  description: The package version Amazon Resource Names (ARNs) that are installed on the device when the
                    job successfully completes. The package version must be in either the Published or Deprecated state when
                    the job deploys. For more information, see Package version lifecycle. Note:The following Length Constraints
                    relates to a single ARN. Up to 25 package version ARNs are allowed.
              required:
              - description
      tags:
      - Job Templates
    delete:
      operationId: DeleteJobTemplate
      summary: Delete Job Template
      description: Deletes the specified job template.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: jobTemplateId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the job template to delete.
      tags:
      - Job Templates
    get:
      operationId: DescribeJobTemplate
      summary: Describe Job Template
      description: Returns information about a job template.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeJobTemplateResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: jobTemplateId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the job template.
      tags:
      - Job Templates
  /job-templates:
    get:
      operationId: ListJobTemplates
      summary: List Job Templates
      description: Returns a list of job templates. Requires permission to access the ListJobTemplates action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListJobTemplatesResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
      parameters:
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results to return in the list.
      - name: nextToken
        in: query
        schema:
          type: string
        description: The token to use to return the next set of results in the list.
      tags:
      - Job Templates
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: iot
  schemas:
    AbortConfig:
      type: object
      properties:
        criteriaList:
          type: array
          items:
            $ref: '#/components/schemas/AbortCriteria'
          description: The list of criteria that determine when and how to abort the job.
      required:
      - criteriaList
    AbortCriteria:
      type: object
      properties:
        failureType:
          type: string
          enum:
          - FAILED
          - REJECTED
          - TIMED_OUT
          - ALL
          description: The type of job execution failures that can initiate a job abort.
        action:
          type: string
          enum:
          - CANCEL
          description: The type of job action to take to initiate the job abort.
        thresholdPercentage:
          type: number
          description: The minimum percentage of job execution failures that must occur to initiate the job abort. Amazon
            Web Services IoT Core supports up to two digits after the decimal (for example, 10.9 and 10.99, but not 10.999).
        minNumberOfExecutedThings:
          type: integer
          description: The minimum number of things which must receive job execution notifications before the job can be aborted.
      required:
      - failureType
      - action
      - thresholdPercentage
      - minNumberOfExecutedThings
    ConflictException:
      type: object
      properties:
        message:
          type: string
        resourceId:
          type: string
          description: A resource with the same name already exists.
    CreateJobTemplateResponse:
      type: object
      properties:
        jobTemplateArn:
          type: string
          description: The ARN of the job template.
        jobTemplateId:
          type: string
          description: The unique identifier of the job template.
    DescribeJobTemplateResponse:
      type: object
      properties:
        jobTemplateArn:
          type: string
          description: The ARN of the job template.
        jobTemplateId:
          type: string
          description: The unique identifier of the job template.
        description:
          type: string
          description: A description of the job template.
        documentSource:
          type: string
          description: An S3 link to the job document.
        document:
          type: string
          description: The job document.
        createdAt:
          type: string
          format: date-time
          description: The time, in seconds since the epoch, when the job template was created.
        presignedUrlConfig:
          $ref: '#/components/schemas/PresignedUrlConfig'
        jobExecutionsRolloutConfig:
          $ref: '#/components/schemas/JobExecutionsRolloutConfig'
        abortConfig:
          $ref: '#/components/schemas/AbortConfig'
        timeoutConfig:
          $ref: '#/components/schemas/TimeoutConfig'
        jobExecutionsRetryConfig:
          $ref: '#/components/schemas/JobExecutionsRetryConfig'
        maintenanceWindows:
          type: array
          items:
            $ref: '#/components/schemas/MaintenanceWindow'
          description: Allows you to configure an optional maintenance window for the rollout of a job document to all devices
            in the target group for a job.
        destinationPackageVersions:
          type: array
          items:
            type: string
          description: The package version Amazon Resource Names (ARNs) that are installed on the device when the job successfully
            completes. The package version must be in either the Published or Deprecated state when the job deploys. For more
            information, see Package version lifecycle. Note:The following Length Constraints relates to a single ARN. Up
            to 25 package version ARNs are allowed.
    ExponentialRolloutRate:
      type: object
      properties:
        baseRatePerMinute:
          type: integer
          description: The minimum number of things that will be notified of a pending job, per minute at the start of job
            rollout. This parameter allows you to define the initial rate of rollout.
        incrementFactor:
          type: number
          description: The exponential factor to increase the rate of rollout for a job. Amazon Web Services IoT Core supports
            up to one digit after the decimal (for example, 1.5, but not 1.55).
        rateIncreaseCriteria:
          $ref: '#/components/schemas/RateIncreaseCriteria'
      required:
      - baseRatePerMinute
      - incrementFactor
      - rateIncreaseCriteria
    InternalFailureException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    InvalidRequestException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    JobExecutionsRetryConfig:
      type: object
      properties:
        criteriaList:
          type: array
          items:
            $ref: '#/components/schemas/RetryCriteria'
          description: The list of criteria that determines how many retries are allowed for each failure type for a job.
      required:
      - criteriaList
    JobExecutionsRolloutConfig:
      type: object
      properties:
        maximumPerMinute:
          type: integer
          description: The maximum number of things that will be notified of a pending job, per minute. This parameter allows
            you to create a staged rollout.
        exponentialRate:
          $ref: '#/components/schemas/ExponentialRolloutRate'
    JobTemplateSummary:
      type: object
      properties:
        jobTemplateArn:
          type: string
          description: The ARN of the job template.
        jobTemplateId:
          type: string
          description: The unique identifier of the job template.
        description:
          type: string
          description: A description of the job template.
        createdAt:
          type: string
          format: date-time
          description: The time, in seconds since the epoch, when the job template was created.
    LimitExceededException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    ListJobTemplatesResponse:
      type: object
      properties:
        jobTemplates:
          type: array
          items:
            $ref: '#/components/schemas/JobTemplateSummary'
          description: A list of objects that contain information about the job templates.
        nextToken:
          type: string
          description: The token for the next set of results, or null if there are no additional results.
    MaintenanceWindow:
      type: object
      properties:
        startTime:
          type: string
          description: Displays the start time of the next maintenance window.
        durationInMinutes:
          type: integer
          description: Displays the duration of the next maintenance window.
      required:
      - startTime
      - durationInMinutes
    PresignedUrlConfig:
      type: object
      properties:
        roleArn:
          type: string
          description: The ARN of an IAM role that grants permission to download files from the S3 bucket where the job data/updates
            are stored. The role must also grant permission for IoT to download the files. For information about addressing
            the confused deputy problem, see cross-service confused deputy prevention in the Amazon Web Services IoT Core
            developer guide.
        expiresInSec:
          type: integer
          description: How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600
            seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.
    RateIncreaseCriteria:
      type: object
      properties:
        numberOfNotifiedThings:
          type: integer
          description: The threshold for number of notified things that will initiate the increase in rate of rollout.
        numberOfSucceededThings:
          type: integer
          description: The threshold for number of succeeded things that will initiate the increase in rate of rollout.
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    RetryCriteria:
      type: object
      properties:
        failureType:
          type: string
          enum:
          - FAILED
          - TIMED_OUT
          - ALL
          description: The type of job execution failures that can initiate a job retry.
        numberOfRetries:
          type: integer
          description: The number of retries allowed for a failure type for the job.
      required:
      - failureType
      - numberOfRetries
    Tag:
      type: object
      properties:
        Key:
          type: string
          description: The tag's key.
        Value:
          type: string
          description: The tag's value.
      required:
      - Key
    TimeoutConfig:
      type: object
      properties:
        inProgressTimeoutInMinutes:
          type: integer
          description: Specifies the amount of time, in minutes, this device has to finish execution of this job. The timeout
            interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The in progress timer can't be updated
            and will apply to all job executions for the job. Whenever a job execution remains in the IN_PROGRESS status for
            longer than this interval, the job execution will fail and switch to the terminal TIMED_OUT status.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/iot/service/2015-05-28/iot-2015-05-28.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)