Avnet Direct Method API

Direct Method Api List

Operations 5

POST /api/v2/template-direct-method Add new direct method #
PUT /api/v2/template-direct-method/{directMethodGuid} Update a direct method #
DELETE /api/v2/template-direct-method/{directMethodGuid} Delete a direct method #
GET /api/v2/template-direct-method/{deviceTemplateGuid} Get device template direct methods list #
GET /api/v2/template-direct-method/{deviceTemplateGuid}/lookup Get device template direct methods lookup #

Documentation

Specifications

Other Resources

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/avnet:avnet-directmethod-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

avnet-directmethod-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: /IOTCONNECT™ Device Direct Method API
  description: 'Device REST API contains information of Device modules.


    Headers


    Needed Headers for all the API.


    Authorization    Bearer + access_token (Generated From api/v1.1/auth/login API)


    Content-Type    application/json'
  version: '2.0'
security:
- Bearer: []
tags:
- name: DirectMethod
  description: Direct Method Api List
paths:
  /api/v2/template-direct-method:
    post:
      tags:
      - DirectMethod
      summary: Add new direct method
      description: This API endpoint allows you to Add new Direct Method for given template.
      responses:
        '412':
          description: Indicates that a condition set for this request is failed, and the request cannot be carried out.
        '401':
          description: Indicates that authentication is failed because of the token is invalid or expired or missing.
        '403':
          description: Indicates that the user is not authorized to access this section.
        '500':
          description: Indicates that the request could not be carried out because of some technical error on the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '200':
          description: Indicates that the direct method created successfully and returns created direct method guid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DirectMethodCreateResponse'
        '409':
          description: 'Indicates that the request could not be carried out because of one of the below or other conflicts on the server.

            The device template doesn''t exist, invalid data type, direct method name already exists and invalid logged user or company.'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DirectMethodCreateRequest'
        description: Json object
      operationId: postApiV2TemplateDirectMethod
      x-operation-id-source: derived
  /api/v2/template-direct-method/{directMethodGuid}:
    put:
      tags:
      - DirectMethod
      summary: Update a direct method
      description: This API endpoint allows you to update a direct method. For that, you need to send directMethodGuid in request url along with the direct method update details in the request body.
      parameters:
      - name: directMethodGuid
        in: path
        description: Direct Method Guid
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '412':
          description: Indicates that a condition set for this request is failed, and the request cannot be carried out.
        '401':
          description: Indicates that authentication is failed because of the token is invalid or expired or missing.
        '403':
          description: Indicates that the user is not authorized to access this section.
        '500':
          description: Indicates that the request could not be carried out because of some technical error on the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '200':
          description: Indicates that the direct method updated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DirectMethodUpdateResponse'
        '409':
          description: "Indicates that the request could not be carried out because of one of the below or other conflicts on the server.\n            The device template doesn't exist, direct method doesn't exist, invalid data type, \n            direct method name already exists and invalid logged user or company."
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DirectMethodUpdateRequest'
        description: Json object
      operationId: putApiV2TemplateDirectMethodByDirectMethodGuid
      x-operation-id-source: derived
    delete:
      tags:
      - DirectMethod
      summary: Delete a direct method
      description: You can delete a direct method using this API endpoint. For that, you need to send directMethodGuid in request url.
      parameters:
      - name: directMethodGuid
        in: path
        description: Direct Method Guid
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '412':
          description: Indicates that a condition set for this request is failed, and the request cannot be carried out.
        '401':
          description: Indicates that authentication is failed because of the token is invalid or expired or missing.
        '403':
          description: Indicates that the user is not authorized to access this section.
        '500':
          description: Indicates that the request could not be carried out because of some technical error on the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '200':
          description: Indicates that the direct method deleted successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DirectMethodDeleteResponse'
        '409':
          description: "Indicates that the request could not be carried out because of one of the below or other conflicts on the server.\n            The direct method doesn't exist and invalid logged user or company."
      operationId: deleteApiV2TemplateDirectMethodByDirectMethodGuid
      x-operation-id-source: derived
  /api/v2/template-direct-method/{deviceTemplateGuid}:
    get:
      tags:
      - DirectMethod
      summary: Get device template direct methods list
      description: 'This API endpoint gives you the list of available direct methods in your device template. For that, you need to send deviceTemplateGuid in request url.


        You can also add the filters as given in the parameters. Though the filters are optional, to apply them, you need to send these filter parameters in a query string.'
      parameters:
      - name: deviceTemplateGuid
        in: path
        description: Device Template Guid
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '412':
          description: Indicates that a condition set for this request is failed, and the request cannot be carried out.
        '401':
          description: Indicates that authentication is failed because of the token is invalid or expired or missing.
        '403':
          description: Indicates that the user is not authorized to access this section.
        '500':
          description: Indicates that the request could not be carried out because of some technical error on the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '200':
          description: Indicates that the direct method list received successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DirectMethodListResponse'
        '409':
          description: "Indicates that the request could not be carried out because of one of the below or other conflicts on the server.\n            The device template doesn't exist and invalid logged user or company."
      operationId: getApiV2TemplateDirectMethodByDeviceTemplateGuid
      x-operation-id-source: derived
  /api/v2/template-direct-method/{deviceTemplateGuid}/lookup:
    get:
      tags:
      - DirectMethod
      summary: Get device template direct methods lookup
      description: This API endpoint gives you the lookup list of available direct methods in your device template. For that, you need to send deviceTemplateGuid in request url.
      parameters:
      - name: deviceTemplateGuid
        in: path
        description: Device Template Guid
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '412':
          description: Indicates that a condition set for this request is failed, and the request cannot be carried out.
        '401':
          description: Indicates that authentication is failed because of the token is invalid or expired or missing.
        '403':
          description: Indicates that the user is not authorized to access this section.
        '500':
          description: Indicates that the request could not be carried out because of some technical error on the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '200':
          description: Indicates that the direct method lookup received successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DirectMethodLookupResponse'
        '409':
          description: "Indicates that the request could not be carried out because of one of the below or other conflicts on the server.\n            The device doesn't exist and invalid logged user or company."
      operationId: getApiV2TemplateDirectMethodByDeviceTemplateGuidLookup
      x-operation-id-source: derived
components:
  schemas:
    DirectMethodUpdateResponse:
      type: object
      properties:
        data:
          type:
          - object
          - 'null'
        status:
          enum:
          - 100
          - 101
          - 102
          - 103
          - 200
          - 201
          - 202
          - 203
          - 204
          - 205
          - 206
          - 207
          - 208
          - 226
          - 300
          - 301
          - 302
          - 303
          - 304
          - 305
          - 306
          - 307
          - 308
          - 400
          - 401
          - 402
          - 403
          - 404
          - 405
          - 406
          - 407
          - 408
          - 409
          - 410
          - 411
          - 412
          - 413
          - 414
          - 415
          - 416
          - 417
          - 421
          - 422
          - 423
          - 424
          - 426
          - 428
          - 429
          - 431
          - 451
          - 500
          - 501
          - 502
          - 503
          - 504
          - 505
          - 506
          - 507
          - 508
          - 510
          - 511
          type: integer
          format: int32
        message:
          type:
          - string
          - 'null'
        count:
          type:
          - integer
          - 'null'
          format: int64
      additionalProperties: false
    DirectMethodListResponse:
      type: object
      properties:
        data:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/DirectMethodList'
        status:
          enum:
          - 100
          - 101
          - 102
          - 103
          - 200
          - 201
          - 202
          - 203
          - 204
          - 205
          - 206
          - 207
          - 208
          - 226
          - 300
          - 301
          - 302
          - 303
          - 304
          - 305
          - 306
          - 307
          - 308
          - 400
          - 401
          - 402
          - 403
          - 404
          - 405
          - 406
          - 407
          - 408
          - 409
          - 410
          - 411
          - 412
          - 413
          - 414
          - 415
          - 416
          - 417
          - 421
          - 422
          - 423
          - 424
          - 426
          - 428
          - 429
          - 431
          - 451
          - 500
          - 501
          - 502
          - 503
          - 504
          - 505
          - 506
          - 507
          - 508
          - 510
          - 511
          type: integer
          format: int32
        message:
          type:
          - string
          - 'null'
        count:
          type:
          - integer
          - 'null'
          format: int64
      additionalProperties: false
    ErrorModel:
      type: object
      properties:
        param:
          type:
          - string
          - 'null'
        message:
          type:
          - string
          - 'null'
      additionalProperties: false
    DirectMethodCreateResponse:
      type: object
      properties:
        data:
          type:
          - array
          - 'null'
          items:
            type:
            - object
            - 'null'
        status:
          enum:
          - 100
          - 101
          - 102
          - 103
          - 200
          - 201
          - 202
          - 203
          - 204
          - 205
          - 206
          - 207
          - 208
          - 226
          - 300
          - 301
          - 302
          - 303
          - 304
          - 305
          - 306
          - 307
          - 308
          - 400
          - 401
          - 402
          - 403
          - 404
          - 405
          - 406
          - 407
          - 408
          - 409
          - 410
          - 411
          - 412
          - 413
          - 414
          - 415
          - 416
          - 417
          - 421
          - 422
          - 423
          - 424
          - 426
          - 428
          - 429
          - 431
          - 451
          - 500
          - 501
          - 502
          - 503
          - 504
          - 505
          - 506
          - 507
          - 508
          - 510
          - 511
          type: integer
          format: int32
        message:
          type:
          - string
          - 'null'
        count:
          type:
          - integer
          - 'null'
          format: int64
      additionalProperties: false
    DirectMethodDeleteResponse:
      type: object
      properties:
        data:
          type:
          - array
          - 'null'
          items:
            type:
            - object
            - 'null'
        status:
          enum:
          - 100
          - 101
          - 102
          - 103
          - 200
          - 201
          - 202
          - 203
          - 204
          - 205
          - 206
          - 207
          - 208
          - 226
          - 300
          - 301
          - 302
          - 303
          - 304
          - 305
          - 306
          - 307
          - 308
          - 400
          - 401
          - 402
          - 403
          - 404
          - 405
          - 406
          - 407
          - 408
          - 409
          - 410
          - 411
          - 412
          - 413
          - 414
          - 415
          - 416
          - 417
          - 421
          - 422
          - 423
          - 424
          - 426
          - 428
          - 429
          - 431
          - 451
          - 500
          - 501
          - 502
          - 503
          - 504
          - 505
          - 506
          - 507
          - 508
          - 510
          - 511
          type: integer
          format: int32
        message:
          type:
          - string
          - 'null'
        count:
          type:
          - integer
          - 'null'
          format: int64
      additionalProperties: false
    DirectMethodUpdateRequest:
      required:
      - methodName
      - responseTimeoutInSeconds
      - templateGuid
      type: object
      properties:
        templateGuid:
          minLength: 1
          type: string
          description: Template Guid
        methodName:
          minLength: 1
          type: string
          description: Method Name
        responseTimeoutInSeconds:
          type: integer
          description: Response timeout seconds
          format: int32
      additionalProperties: false
    DirectMethodCreateRequest:
      required:
      - methodName
      - responseTimeoutInSeconds
      - templateGuid
      type: object
      properties:
        templateGuid:
          minLength: 1
          type: string
          description: Template Guid
        methodName:
          minLength: 1
          type: string
          description: Method Name
        responseTimeoutInSeconds:
          type: integer
          description: Response timeout seconds
          format: int32
      additionalProperties: false
    DirectMethodLookup:
      type: object
      properties:
        guid:
          type:
          - string
          - 'null'
          readOnly: true
        methodName:
          type:
          - string
          - 'null'
        responseTimeoutSecond:
          type:
          - integer
          - 'null'
          format: int32
      additionalProperties: false
    DirectMethodList:
      type: object
      properties:
        guid:
          type:
          - string
          - 'null'
          readOnly: true
        methodName:
          type:
          - string
          - 'null'
        responseTimeoutSecond:
          type: integer
          format: int32
        createdDate:
          type: string
          format: date-time
        createBy:
          type:
          - string
          - 'null'
          readOnly: true
      additionalProperties: false
    ErrorsResponse:
      type: object
      properties:
        status:
          type: integer
          format: int32
        message:
          type:
          - string
          - 'null'
        error:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ErrorModel'
      additionalProperties: false
    DirectMethodLookupResponse:
      type: object
      properties:
        data:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/DirectMethodLookup'
        status:
          enum:
          - 100
          - 101
          - 102
          - 103
          - 200
          - 201
          - 202
          - 203
          - 204
          - 205
          - 206
          - 207
          - 208
          - 226
          - 300
          - 301
          - 302
          - 303
          - 304
          - 305
          - 306
          - 307
          - 308
          - 400
          - 401
          - 402
          - 403
          - 404
          - 405
          - 406
          - 407
          - 408
          - 409
          - 410
          - 411
          - 412
          - 413
          - 414
          - 415
          - 416
          - 417
          - 421
          - 422
          - 423
          - 424
          - 426
          - 428
          - 429
          - 431
          - 451
          - 500
          - 501
          - 502
          - 503
          - 504
          - 505
          - 506
          - 507
          - 508
          - 510
          - 511
          type: integer
          format: int32
        message:
          type:
          - string
          - 'null'
        count:
          type:
          - integer
          - 'null'
          format: int64
      additionalProperties: false
  securitySchemes:
    Bearer:
      type: apiKey
      description: Please enter JWT with Bearer into field
      name: Authorization
      in: header