Amazon IoT Core OTA Updates API

The OTA Updates API from Amazon IoT Core — 2 operation(s) for ota updates.

GitHub OpenAPI

Operations 4

POST /otaUpdates/{otaUpdateId} Create OTAUpdate #
DELETE /otaUpdates/{otaUpdateId} Delete OTAUpdate #
GET /otaUpdates/{otaUpdateId} Get OTAUpdate #
GET /otaUpdates List OTAUpdates #

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-ota-updates-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-ota-updates-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS IoT Ota Updates 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:
  /otaUpdates/{otaUpdateId}:
    post:
      operationId: CreateOTAUpdate
      summary: Create OTAUpdate
      description: Creates an IoT OTA update on a target group of things or groups. Requires permission to access the CreateOTAUpdate
        action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateOTAUpdateResponse'
        '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'
        '409':
          description: ResourceAlreadyExistsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceAlreadyExistsException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: otaUpdateId
        in: path
        required: true
        schema:
          type: string
        description: The ID of the OTA update to be created.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                description:
                  type: string
                  description: The description of the OTA update.
                targets:
                  type: array
                  items:
                    type: string
                  description: The devices targeted to receive OTA updates.
                protocols:
                  type: array
                  items:
                    type: string
                    enum:
                    - MQTT
                    - HTTP
                  description: The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP,
                    MQTT]. When both HTTP and MQTT are specified, the target device can choose the protocol.
                targetSelection:
                  type: string
                  enum:
                  - CONTINUOUS
                  - SNAPSHOT
                  description: 'Specifies whether the update will continue to run (CONTINUOUS), or will be complete after
                    all the things specified as targets have completed the update (SNAPSHOT). If continuous, the update may
                    also be run on a thing when a change is detected in a target. For example, an update will run on a thing
                    when the thing is added to a target group, even after the update was completed by all things originally
                    in the group. Valid values: CONTINUOUS | SNAPSHOT.'
                awsJobExecutionsRolloutConfig:
                  $ref: '#/components/schemas/AwsJobExecutionsRolloutConfig'
                awsJobPresignedUrlConfig:
                  $ref: '#/components/schemas/AwsJobPresignedUrlConfig'
                awsJobAbortConfig:
                  $ref: '#/components/schemas/AwsJobAbortConfig'
                awsJobTimeoutConfig:
                  $ref: '#/components/schemas/AwsJobTimeoutConfig'
                files:
                  type: array
                  items:
                    $ref: '#/components/schemas/OTAUpdateFile'
                  description: The files to be streamed by the OTA update.
                roleArn:
                  type: string
                  description: The IAM role that grants Amazon Web Services IoT Core access to the Amazon S3, IoT jobs and
                    Amazon Web Services Code Signing resources to create an OTA update job.
                additionalParameters:
                  type: object
                  additionalProperties:
                    type: string
                  description: A list of additional OTA update parameters, which are name-value pairs. They won't be sent
                    to devices as a part of the Job document.
                tags:
                  type: array
                  items:
                    $ref: '#/components/schemas/Tag'
                  description: Metadata which can be used to manage updates.
              required:
              - targets
              - files
              - roleArn
      tags:
      - Ota Updates
    delete:
      operationId: DeleteOTAUpdate
      summary: Delete OTAUpdate
      description: Delete an OTA update. Requires permission to access the DeleteOTAUpdate action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteOTAUpdateResponse'
        '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'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
        '409':
          description: VersionConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VersionConflictException'
      parameters:
      - name: otaUpdateId
        in: path
        required: true
        schema:
          type: string
        description: The ID of the OTA update to delete.
      - name: deleteStream
        in: query
        schema:
          type: boolean
        description: When true, the stream created by the OTAUpdate process is deleted when the OTA update is deleted. Ignored
          if the stream specified in the OTAUpdate is supplied by the user.
      - name: forceDeleteAWSJob
        in: query
        schema:
          type: boolean
        description: When true, deletes the IoT job created by the OTAUpdate process even if it is "IN_PROGRESS". Otherwise,
          if the job is not in a terminal state ("COMPLETED" or "CANCELED") an exception will occur. The default is false.
      tags:
      - Ota Updates
    get:
      operationId: GetOTAUpdate
      summary: Get OTAUpdate
      description: Gets an OTA update. Requires permission to access the GetOTAUpdate action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOTAUpdateResponse'
        '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'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: otaUpdateId
        in: path
        required: true
        schema:
          type: string
        description: The OTA update ID.
      tags:
      - Ota Updates
  /otaUpdates:
    get:
      operationId: ListOTAUpdates
      summary: List OTAUpdates
      description: Lists OTA updates. Requires permission to access the ListOTAUpdates action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListOTAUpdatesResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results to return at one time.
      - name: nextToken
        in: query
        schema:
          type: string
        description: A token used to retrieve the next set of results.
      - name: otaUpdateStatus
        in: query
        schema:
          type: string
          enum:
          - CREATE_PENDING
          - CREATE_IN_PROGRESS
          - CREATE_COMPLETE
          - CREATE_FAILED
          - DELETE_IN_PROGRESS
          - DELETE_FAILED
        description: The OTA update job status.
      tags:
      - Ota Updates
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:
    AwsJobAbortConfig:
      type: object
      properties:
        abortCriteriaList:
          type: array
          items:
            $ref: '#/components/schemas/AwsJobAbortCriteria'
          description: The list of criteria that determine when and how to abort the job.
      required:
      - abortCriteriaList
    AwsJobAbortCriteria:
      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
    AwsJobExecutionsRolloutConfig:
      type: object
      properties:
        maximumPerMinute:
          type: integer
          description: The maximum number of OTA update job executions started per minute.
        exponentialRate:
          $ref: '#/components/schemas/AwsJobExponentialRolloutRate'
    AwsJobExponentialRolloutRate:
      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 the
            job rollout. This is the initial rate of the rollout.
        incrementFactor:
          type: number
          description: The rate of increase for a job rollout. The number of things notified is multiplied by this factor.
        rateIncreaseCriteria:
          $ref: '#/components/schemas/AwsJobRateIncreaseCriteria'
      required:
      - baseRatePerMinute
      - incrementFactor
      - rateIncreaseCriteria
    AwsJobPresignedUrlConfig:
      type: object
      properties:
        expiresInSec:
          type: integer
          description: How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 1800
            seconds. Pre-signed URLs are generated when a request for the job document is received.
    AwsJobRateIncreaseCriteria:
      type: object
      properties:
        numberOfNotifiedThings:
          type: integer
          description: When this number of things have been notified, it will initiate an increase in the rollout rate.
        numberOfSucceededThings:
          type: integer
          description: When this number of things have succeeded in their job execution, it will initiate an increase in the
            rollout rate.
    AwsJobTimeoutConfig:
      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.
    CodeSigning:
      type: object
      properties:
        awsSignerJobId:
          type: string
          description: The ID of the AWSSignerJob which was created to sign the file.
        startSigningJobParameter:
          $ref: '#/components/schemas/StartSigningJobParameter'
        customCodeSigning:
          $ref: '#/components/schemas/CustomCodeSigning'
    CodeSigningCertificateChain:
      type: object
      properties:
        certificateName:
          type: string
          description: The name of the certificate.
        inlineDocument:
          type: string
          description: A base64 encoded binary representation of the code signing certificate chain.
    CodeSigningSignature:
      type: object
      properties:
        inlineDocument:
          type: string
          format: byte
          description: A base64 encoded binary representation of the code signing signature.
    CreateOTAUpdateResponse:
      type: object
      properties:
        otaUpdateId:
          type: string
          description: The OTA update ID.
        awsIotJobId:
          type: string
          description: The IoT job ID associated with the OTA update.
        otaUpdateArn:
          type: string
          description: The OTA update ARN.
        awsIotJobArn:
          type: string
          description: The IoT job ARN associated with the OTA update.
        otaUpdateStatus:
          type: string
          enum:
          - CREATE_PENDING
          - CREATE_IN_PROGRESS
          - CREATE_COMPLETE
          - CREATE_FAILED
          - DELETE_IN_PROGRESS
          - DELETE_FAILED
          description: The OTA update status.
    CustomCodeSigning:
      type: object
      properties:
        signature:
          $ref: '#/components/schemas/CodeSigningSignature'
        certificateChain:
          $ref: '#/components/schemas/CodeSigningCertificateChain'
        hashAlgorithm:
          type: string
          description: The hash algorithm used to code sign the file. You can use a string as the algorithm name if the target
            over-the-air (OTA) update devices are able to verify the signature that was generated using the same signature
            algorithm. For example, FreeRTOS uses SHA256 or SHA1, so you can pass either of them based on which was used for
            generating the signature.
        signatureAlgorithm:
          type: string
          description: The signature algorithm used to code sign the file. You can use a string as the algorithm name if the
            target over-the-air (OTA) update devices are able to verify the signature that was generated using the same signature
            algorithm. For example, FreeRTOS uses ECDSA or RSA, so you can pass either of them based on which was used for
            generating the signature.
    DeleteOTAUpdateResponse:
      type: object
      properties: {}
    Destination:
      type: object
      properties:
        s3Destination:
          $ref: '#/components/schemas/S3Destination'
    ErrorInfo:
      type: object
      properties:
        code:
          type: string
          description: The error code.
        message:
          type: string
          description: The error message.
    FileLocation:
      type: object
      properties:
        stream:
          $ref: '#/components/schemas/Stream'
        s3Location:
          $ref: '#/components/schemas/S3Location'
    GetOTAUpdateResponse:
      type: object
      properties:
        otaUpdateInfo:
          $ref: '#/components/schemas/OTAUpdateInfo'
    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.
    LimitExceededException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    ListOTAUpdatesResponse:
      type: object
      properties:
        otaUpdates:
          type: array
          items:
            $ref: '#/components/schemas/OTAUpdateSummary'
          description: A list of OTA update jobs.
        nextToken:
          type: string
          description: A token to use to get the next set of results.
    OTAUpdateFile:
      type: object
      properties:
        fileName:
          type: string
          description: The name of the file.
        fileType:
          type: integer
          description: An integer value you can include in the job document to allow your devices to identify the type of
            file received from the cloud.
        fileVersion:
          type: string
          description: The file version.
        fileLocation:
          $ref: '#/components/schemas/FileLocation'
        codeSigning:
          $ref: '#/components/schemas/CodeSigning'
        attributes:
          type: object
          additionalProperties:
            type: string
          description: A list of name-attribute pairs. They won't be sent to devices as a part of the Job document.
    OTAUpdateInfo:
      type: object
      properties:
        otaUpdateId:
          type: string
          description: The OTA update ID.
        otaUpdateArn:
          type: string
          description: The OTA update ARN.
        creationDate:
          type: string
          format: date-time
          description: The date when the OTA update was created.
        lastModifiedDate:
          type: string
          format: date-time
          description: The date when the OTA update was last updated.
        description:
          type: string
          description: A description of the OTA update.
        targets:
          type: array
          items:
            type: string
          description: The targets of the OTA update.
        protocols:
          type: array
          items:
            type: string
            enum:
            - MQTT
            - HTTP
          description: The protocol used to transfer the OTA update image. Valid values are [HTTP], [MQTT], [HTTP, MQTT].
            When both HTTP and MQTT are specified, the target device can choose the protocol.
        awsJobExecutionsRolloutConfig:
          $ref: '#/components/schemas/AwsJobExecutionsRolloutConfig'
        awsJobPresignedUrlConfig:
          $ref: '#/components/schemas/AwsJobPresignedUrlConfig'
        targetSelection:
          type: string
          enum:
          - CONTINUOUS
          - SNAPSHOT
          description: Specifies whether the OTA update will continue to run (CONTINUOUS), or will be complete after all those
            things specified as targets have completed the OTA update (SNAPSHOT). If continuous, the OTA update may also be
            run on a thing when a change is detected in a target. For example, an OTA update will run on a thing when the
            thing is added to a target group, even after the OTA update was completed by all things originally in the group.
        otaUpdateFiles:
          type: array
          items:
            $ref: '#/components/schemas/OTAUpdateFile'
          description: A list of files associated with the OTA update.
        otaUpdateStatus:
          type: string
          enum:
          - CREATE_PENDING
          - CREATE_IN_PROGRESS
          - CREATE_COMPLETE
          - CREATE_FAILED
          - DELETE_IN_PROGRESS
          - DELETE_FAILED
          description: The status of the OTA update.
        awsIotJobId:
          type: string
          description: The IoT job ID associated with the OTA update.
        awsIotJobArn:
          type: string
          description: The IoT job ARN associated with the OTA update.
        errorInfo:
          $ref: '#/components/schemas/ErrorInfo'
        additionalParameters:
          type: object
          additionalProperties:
            type: string
          description: A collection of name/value pairs
    OTAUpdateSummary:
      type: object
      properties:
        otaUpdateId:
          type: string
          description: The OTA update ID.
        otaUpdateArn:
          type: string
          description: The OTA update ARN.
        creationDate:
          type: string
          format: date-time
          description: The date when the OTA update was created.
    ResourceAlreadyExistsException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
        resourceId:
          type: string
          description: The ID of the resource that caused the exception.
        resourceArn:
          type: string
          description: The ARN of the resource that caused the exception.
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    S3Destination:
      type: object
      properties:
        bucket:
          type: string
          description: The S3 bucket that contains the updated firmware.
        prefix:
          type: string
          description: The S3 prefix.
    S3Location:
      type: object
      properties:
        bucket:
          type: string
          description: The S3 bucket.
        key:
          type: string
          description: The S3 key.
        version:
          type: string
          description: The S3 bucket version.
    ServiceUnavailableException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    SigningProfileParameter:
      type: object
      properties:
        certificateArn:
          type: string
          description: Certificate ARN.
        platform:
          type: string
          description: The hardware platform of your device.
        certificatePathOnDevice:
          type: string
          description: The location of the code-signing certificate on your device.
    StartSigningJobParameter:
      type: object
      properties:
        signingProfileParameter:
          $ref: '#/components/schemas/SigningProfileParameter'
        signingProfileName:
          type: string
          description: The code-signing profile name.
        destination:
          $ref: '#/components/schemas/Destination'
    Stream:
      type: object
      properties:
        streamId:
          type: string
          description: The stream ID.
        fileId:
          type: integer
          description: The ID of a file associated with a stream.
    Tag:
      type: object
      properties:
        Key:
          type: string
          description: The tag's key.
        Value:
          type: string
          description: The tag's value.
      required:
      - Key
    UnauthorizedException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    VersionConflictException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
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)