Microsoft Azure Device Templates API

The Device Templates API from Microsoft Azure, for device templates.

GitHub OpenAPI

Operations 5

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 /deviceTemplates List IoT Central device templates · Microsoft Azure Get The List Of Device Templates In An Application With Basic… #
Ask an LLM
“Which device templates are published in my IoT Central app?”
“Can I sort or filter the device templates list?”
Tell an agent
List all device templates in my IoT Central app.
List device templates matching {filter}, ordered by {orderby}.
GET /deviceTemplates/{deviceTemplateId} Get an IoT Central device template · Microsoft Azure Get A Device Template By Id #
Ask an LLM
“What capability model does a specific device template define?”
“Can I look up an IoT Central device template by ID?”
Tell an agent
Show device template {template}.
Get the capability model of device template {template}.
PUT /deviceTemplates/{deviceTemplateId} Publish an IoT Central device template · Microsoft Azure Publish A New Device Template Default Views Will Be… #
Ask an LLM
“How do I publish a new device template with a capability model to IoT Central?”
“What does a device template need before I can create it?”
Tell an agent
Create device template {template} with capability model {model}.
Publish device template {template} named {name}.
PATCH /deviceTemplates/{deviceTemplateId} Update an IoT Central device template · Microsoft Azure Update The Cloud Properties And Overrides Of An Existing Device… #
Ask an LLM
“How do I patch an existing device template's display name or description?”
“Can I use an ETag to avoid overwriting someone else's template changes?”
Tell an agent
Update device template {template}.
Patch device template {template} only if its ETag is {etag}.
DELETE /deviceTemplates/{deviceTemplateId} Delete an IoT Central device template · Microsoft Azure Delete A Device Template #
Ask an LLM
“Can I delete a device template I no longer use?”
“How do I remove an outdated device template from IoT Central?”
Tell an agent destructive · confirm first
Delete device template {template}.
Remove outdated device template {template} from the app.

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-device-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

microsoft-azure-device-templates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure IoT Central Device Templates 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: Device Templates
paths:
  /deviceTemplates:
    get:
      operationId: microsoftAzureDevicetemplatesList
      summary: Microsoft Azure Get The List Of Device Templates In An Application With Basic…
      x-ms-examples:
        List device templates:
          $ref: ./examples/devicetemplates_list.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/Filter'
      - $ref: '#/components/parameters/MaxPageSize'
      - $ref: '#/components/parameters/OrderBy'
      x-ms-pageable:
        nextLinkName: nextLink
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceTemplateCollection'
        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:
      - Device Templates
  /deviceTemplates/{deviceTemplateId}:
    get:
      operationId: microsoftAzureDevicetemplatesGet
      summary: Microsoft Azure Get A Device Template By Id
      x-ms-examples:
        Get a device template by ID:
          $ref: ./examples/devicetemplates_get.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/DeviceTemplateId'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceTemplate'
        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:
      - Device Templates
    put:
      operationId: microsoftAzureDevicetemplatesCreate
      summary: Microsoft Azure Publish A New Device Template Default Views Will Be…
      x-ms-examples:
        Create a device template:
          $ref: ./examples/devicetemplates_create.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/DeviceTemplateId'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceTemplate'
        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:
      - Device Templates
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeviceTemplate'
        description: Device template body.
        required: true
    patch:
      operationId: microsoftAzureDevicetemplatesUpdate
      summary: Microsoft Azure Update The Cloud Properties And Overrides Of An Existing Device…
      x-ms-examples:
        Update a device template:
          $ref: ./examples/devicetemplates_update.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/DeviceTemplateId'
      - $ref: '#/components/parameters/IfMatch'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceTemplate'
        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:
      - Device Templates
      requestBody:
        content:
          application/json:
            schema:
              type: object
          application/merge-patch+json:
            schema:
              type: object
        description: Device template patch body.
        required: true
    delete:
      operationId: microsoftAzureDevicetemplatesRemove
      summary: Microsoft Azure Delete A Device Template
      description: Delete an existing device template by device ID.
      x-ms-examples:
        Delete a device template by ID:
          $ref: ./examples/devicetemplates_delete.json
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/DeviceTemplateId'
      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:
      - Device Templates
components:
  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
    Filter:
      in: query
      name: filter
      description: An expression on the resource type that selects the resources to be returned.
      x-ms-parameter-location: method
      required: false
      schema:
        type: string
    OrderBy:
      in: query
      name: orderby
      description: An expression that specify the order of the returned resources.
      x-ms-parameter-location: method
      required: false
      schema:
        type: string
    DeviceTemplateId:
      in: path
      name: deviceTemplateId
      description: Unique [Digital Twin Model Identifier](https://github.com/Azure/opendigitaltwins-dtdl/blob/master/DTDL/v2/dtdlv2.md#digital-twin-model-identifier) of the device template.
      x-ms-parameter-location: method
      required: true
      schema:
        type: string
    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
  schemas:
    Error:
      description: The response error definition.
      type: object
      properties:
        error:
          description: Error details for current request.
          $ref: '#/components/schemas/ErrorDetails'
      required:
      - error
    DeviceTemplateCollection:
      description: The paged results of device templates.
      type: object
      properties:
        value:
          description: The collection of device templates.
          type: array
          items:
            $ref: '#/components/schemas/DeviceTemplate'
        nextLink:
          description: URL to get the next page of device templates.
          type: string
      required:
      - value
    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
    DeviceTemplate:
      description: The device template definition.
      type: object
      properties:
        '@id':
          description: Unique ID of the device template.
          type: string
          readOnly: true
        '@type':
          description: The JSON-LD types of this device template.
          type: array
          items:
            type: string
        etag:
          description: ETag used to prevent conflict in device template updates.
          type: string
        displayName:
          description: Display name of the device template.
          type: string
        description:
          description: Detailed description of the device template.
          type: string
        capabilityModel:
          description: The capability model utilized by this device template.
          type: object
      required:
      - '@type'
      - capabilityModel
  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'