GET api/v1/devices/{deviceId}/particle

Get Particle.io specific details about the device.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
deviceId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

ParticleDeviceDetailsDto
NameDescriptionTypeAdditional information
CheckInterval

How frequently this device should have the variables read.

time interval

None.

DateAdded

When the device was added to the system.

date

None.

Connected

If the device is currently connected.

boolean

None.

Enabled

If collection from this device is enabled.

boolean

None.

LastApp

The last application seen on the device.

string

None.

ParticleDeviceId

The device Id at Particle.io

string

None.

Variables

The variables on the particle device.

Collection of ParticleVariableSettingDto

None.

Functions

List of functions available on the Particle device.

Collection of ParticleFunctionDto

None.

PublishUnknownEventsAsMeasurements

If events with numeric values should be treated as measurements

boolean

None.

PublishUnknownEventsAsStatusPosts

If events with string or no value should be treated as status posts.

boolean

None.

Links

Hypermedia links for the device.

Collection of LinkDto

None.

OnlineNotificationOption

If and how to notify when the device comes online

ParticlsStatusNotifyOptionDto

None.

OfflineNotificationOption

If and how to notify when the device goes offline.

ParticlsStatusNotifyOptionDto

None.

FaultCount

integer

None.

Faulted

boolean

None.

CircuitBreakerResetAt

date

None.

IgnoreRename

boolean

None.

Response Formats

application/json, text/json, application/senml+json

Sample:
{
  "CheckInterval": "00:00:00.1234567",
  "DateAdded": "2017-10-24T07:30:10.6609701+00:00",
  "Connected": true,
  "Enabled": true,
  "LastApp": "sample string 5",
  "ParticleDeviceId": "sample string 6",
  "Variables": [
    {
      "CheckInterval": "00:00:00.1234567",
      "Enabled": true,
      "Name": "sample string 3",
      "Type": "sample string 4"
    },
    {
      "CheckInterval": "00:00:00.1234567",
      "Enabled": true,
      "Name": "sample string 3",
      "Type": "sample string 4"
    }
  ],
  "Functions": [
    {
      "Name": "sample string 1",
      "Links": [
        {
          "Href": "sample string 1",
          "Rel": "sample string 2",
          "Action": "sample string 3"
        },
        {
          "Href": "sample string 1",
          "Rel": "sample string 2",
          "Action": "sample string 3"
        }
      ]
    },
    {
      "Name": "sample string 1",
      "Links": [
        {
          "Href": "sample string 1",
          "Rel": "sample string 2",
          "Action": "sample string 3"
        },
        {
          "Href": "sample string 1",
          "Rel": "sample string 2",
          "Action": "sample string 3"
        }
      ]
    }
  ],
  "PublishUnknownEventsAsMeasurements": true,
  "PublishUnknownEventsAsStatusPosts": true,
  "Links": [
    {
      "Href": "sample string 1",
      "Rel": "sample string 2",
      "Action": "sample string 3"
    },
    {
      "Href": "sample string 1",
      "Rel": "sample string 2",
      "Action": "sample string 3"
    }
  ],
  "OnlineNotificationOption": {
    "PostStatusMessage": true,
    "Message": "sample string 2"
  },
  "OfflineNotificationOption": {
    "PostStatusMessage": true,
    "Message": "sample string 2"
  },
  "FaultCount": 9,
  "Faulted": true,
  "CircuitBreakerResetAt": "2017-10-24T07:30:10.6609701+00:00",
  "IgnoreRename": true
}

application/xml, text/xml

Sample:
<ParticleDeviceDetailsDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Particle.Models">
  <CheckInterval>PT0.1234567S</CheckInterval>
  <CircuitBreakerResetAt>2017-10-24T07:30:10.6609701+00:00</CircuitBreakerResetAt>
  <Connected>true</Connected>
  <DateAdded>2017-10-24T07:30:10.6609701+00:00</DateAdded>
  <Enabled>true</Enabled>
  <FaultCount>9</FaultCount>
  <Faulted>true</Faulted>
  <Functions>
    <ParticleFunctionDto>
      <Links xmlns:d4p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared">
        <d4p1:LinkViewModel>
          <d4p1:Action>sample string 3</d4p1:Action>
          <d4p1:Href>sample string 1</d4p1:Href>
          <d4p1:Rel>sample string 2</d4p1:Rel>
        </d4p1:LinkViewModel>
        <d4p1:LinkViewModel>
          <d4p1:Action>sample string 3</d4p1:Action>
          <d4p1:Href>sample string 1</d4p1:Href>
          <d4p1:Rel>sample string 2</d4p1:Rel>
        </d4p1:LinkViewModel>
      </Links>
      <Name>sample string 1</Name>
    </ParticleFunctionDto>
    <ParticleFunctionDto>
      <Links xmlns:d4p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared">
        <d4p1:LinkViewModel>
          <d4p1:Action>sample string 3</d4p1:Action>
          <d4p1:Href>sample string 1</d4p1:Href>
          <d4p1:Rel>sample string 2</d4p1:Rel>
        </d4p1:LinkViewModel>
        <d4p1:LinkViewModel>
          <d4p1:Action>sample string 3</d4p1:Action>
          <d4p1:Href>sample string 1</d4p1:Href>
          <d4p1:Rel>sample string 2</d4p1:Rel>
        </d4p1:LinkViewModel>
      </Links>
      <Name>sample string 1</Name>
    </ParticleFunctionDto>
  </Functions>
  <IgnoreRename>true</IgnoreRename>
  <LastApp>sample string 5</LastApp>
  <Links xmlns:d2p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared">
    <d2p1:LinkViewModel>
      <d2p1:Action>sample string 3</d2p1:Action>
      <d2p1:Href>sample string 1</d2p1:Href>
      <d2p1:Rel>sample string 2</d2p1:Rel>
    </d2p1:LinkViewModel>
    <d2p1:LinkViewModel>
      <d2p1:Action>sample string 3</d2p1:Action>
      <d2p1:Href>sample string 1</d2p1:Href>
      <d2p1:Rel>sample string 2</d2p1:Rel>
    </d2p1:LinkViewModel>
  </Links>
  <OfflineNotificationOption>
    <Message>sample string 2</Message>
    <PostStatusMessage>true</PostStatusMessage>
  </OfflineNotificationOption>
  <OnlineNotificationOption>
    <Message>sample string 2</Message>
    <PostStatusMessage>true</PostStatusMessage>
  </OnlineNotificationOption>
  <ParticleDeviceId>sample string 6</ParticleDeviceId>
  <PublishUnknownEventsAsMeasurements>true</PublishUnknownEventsAsMeasurements>
  <PublishUnknownEventsAsStatusPosts>true</PublishUnknownEventsAsStatusPosts>
  <Variables>
    <ParticleVariableSettingDto>
      <CheckInterval>PT0.1234567S</CheckInterval>
      <Enabled>true</Enabled>
      <Name>sample string 3</Name>
      <Type>sample string 4</Type>
    </ParticleVariableSettingDto>
    <ParticleVariableSettingDto>
      <CheckInterval>PT0.1234567S</CheckInterval>
      <Enabled>true</Enabled>
      <Name>sample string 3</Name>
      <Type>sample string 4</Type>
    </ParticleVariableSettingDto>
  </Variables>
</ParticleDeviceDetailsDto>