Skip to main content

List things by model

GET 

/iot/models/:modelId/things

Retrieves list of things belonging to specified model with pagination metadata.

Authorization Action:

core:models:getThings

Request

Path Parameters

    modelId uuidrequired

    Unique model identifier.

Query Parameters

    offset integer

    Number of items to skip during retrieval.

    limit integer

    Possible values: >= 1 and <= 100

    Default value: 10

    Size of the subset to retrieve.

    order string

    Possible values: [name, id]

    Default value: id

    Order type.

    dir string

    Possible values: [asc, desc]

    Default value: desc

    Order direction.

Responses

Data retrieved.

Schema
    things object[]
  • Array [
  • id uuidrequired

    Unique thing identifier generated by the service.

    name string

    Free-form thing name.

    key uuidrequired

    Auto-generated access key.

    metadata object
    oneOf
    type string

    Possible values: [device]

    control_channel_id uuid
    event_channel_id uuid
  • ]
  • total integer

    Total number of items.

    offset integer

    Number of items to skip during retrieval.

    limit integer

    Maximum number of items to return in one page.

Loading...