Arduino devices_v2_metadata API

Provides a set of endpoints to manage the metadata of a device

OpenAPI Specification

arduino-devices-v2-metadata-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  description: Provides a set of endpoints to manage Devices, Things, Properties and Timeseries
  title: Arduino IoT Cloud binaries_v2 devices_v2_metadata API
  version: '2.0'
tags:
- description: Provides a set of endpoints to manage the metadata of a device
  name: devices_v2_metadata
paths:
  /iot/v2/devices/{id}/metadata:
    get:
      description: Returns metadata of a device
      operationId: devices_v2_metadata#list
      parameters:
      - description: The id of the device
        in: path
        name: id
        required: true
        schema:
          type: string
      - in: header
        name: X-Organization
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
            application/vnd.goa.error+json:
              schema:
                $ref: '#/components/schemas/error'
          description: Unauthorized
        '404':
          description: Not Found
      security:
      - oauth2: []
      summary: list devices_v2_metadata
      tags:
      - devices_v2_metadata
    put:
      description: Sets metadata of a device
      operationId: devices_v2_metadata#set
      parameters:
      - description: The id of the device
        in: path
        name: id
        required: true
        schema:
          type: string
      - in: header
        name: X-Organization
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetDevicesV2MetadataPayload'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SetDevicesV2MetadataPayload'
        required: true
        x-originalParamName: payload
      responses:
        '200':
          description: OK
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
            application/vnd.goa.error+json:
              schema:
                $ref: '#/components/schemas/error'
          description: Unauthorized
        '404':
          description: Not Found
      security:
      - oauth2: []
      summary: set devices_v2_metadata
      tags:
      - devices_v2_metadata
  /iot/v2/devices/{id}/metadata/{key}:
    delete:
      description: Removes the a metadata key of the device.
      operationId: devices_v2_metadata#delete
      parameters:
      - description: The id of the device
        in: path
        name: id
        required: true
        schema:
          type: string
      - in: path
        name: key
        required: true
        schema:
          type: string
      - in: header
        name: X-Organization
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
            application/vnd.goa.error+json:
              schema:
                $ref: '#/components/schemas/error'
          description: Unauthorized
        '404':
          description: Not Found
      security:
      - oauth2: []
      summary: delete devices_v2_metadata
      tags:
      - devices_v2_metadata
components:
  schemas:
    error:
      description: Error response media type (default view)
      properties:
        code:
          description: an application-specific error code, expressed as a string value.
          example: invalid_value
          type: string
        detail:
          description: a human-readable explanation specific to this occurrence of the problem.
          example: Value of ID must be an integer
          type: string
        id:
          description: a unique identifier for this particular occurrence of the problem.
          example: 3F1FKVRR
          type: string
        meta:
          additionalProperties: true
          description: a meta object containing non-standard meta-information about the error.
          example:
            timestamp: 1458609066
          type: object
        status:
          description: the HTTP status code applicable to this problem, expressed as a string value.
          example: '400'
          type: string
      title: 'Mediatype identifier: application/vnd.goa.error+json; view=default'
      type: object
    SetDevicesV2MetadataPayload:
      additionalProperties: true
      title: SetDevicesV2MetadataPayload
      type: object
externalDocs:
  description: See docs on Confluence
  url: https://arduino.atlassian.net/wiki/spaces/FTWEB/pages/91160610/Arduino+IoT+Cloud