GET api/v1/bots/lifxbots

Get all LifxBots for the current account.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of LifxBotDto
NameDescriptionTypeAdditional information
Lights

Collection of LifxLightDto

None.

Id

User Id

globally unique identifier

None.

Name

The users name

string

None.

UserName

UserName (used to login with)

string

None.

FullUserName

User Id and Account name

string

None.

BotType

The type of bot.

string

None.

DisplayName

Users first and last name

string

None.

DevicesCheckIntervalMinutes

How often the spark account should be checked for new devices.

integer

None.

MeasurementCollectionIntervalMinutes

How often measurements should be collected from the devices (applies to new devices only).

integer

None.

Links

Collection of links appropriate for the user

Collection of LinkDto

None.

Actions

Collection of LinkDto

None.

Description

string

None.

Enabled

boolean

None.

Response Formats

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

Sample:
[
  {
    "Lights": [
      {
        "LifxId": "sample string 1",
        "Assigned": true,
        "DeviceId": "f126523d-0b92-4918-823e-9c9d224366e6",
        "Name": "sample string 4",
        "Power": "sample string 5",
        "Connected": true,
        "BrightnessPercentage": 7,
        "GroupName": "sample string 8",
        "LocationName": "sample string 9",
        "Hue": 10.1,
        "ColorTemperature": 11,
        "Saturation": 12.1,
        "ProductName": "sample string 13",
        "LastSeen": "2017-10-23T16:55:27.0175164+00:00",
        "Links": [],
        "Actions": []
      },
      {
        "LifxId": "sample string 1",
        "Assigned": true,
        "DeviceId": "f126523d-0b92-4918-823e-9c9d224366e6",
        "Name": "sample string 4",
        "Power": "sample string 5",
        "Connected": true,
        "BrightnessPercentage": 7,
        "GroupName": "sample string 8",
        "LocationName": "sample string 9",
        "Hue": 10.1,
        "ColorTemperature": 11,
        "Saturation": 12.1,
        "ProductName": "sample string 13",
        "LastSeen": "2017-10-23T16:55:27.0175164+00:00",
        "Links": [],
        "Actions": []
      }
    ],
    "Id": "a562ae3d-2c50-4531-8e34-bccf43cf4418",
    "Name": "sample string 2",
    "UserName": "sample string 3",
    "FullUserName": "sample string 4",
    "BotType": "sample string 5",
    "DisplayName": "sample string 6",
    "DevicesCheckIntervalMinutes": 7,
    "MeasurementCollectionIntervalMinutes": 8,
    "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"
      }
    ],
    "Actions": [
      {
        "Href": "sample string 1",
        "Rel": "sample string 2",
        "Action": "sample string 3"
      },
      {
        "Href": "sample string 1",
        "Rel": "sample string 2",
        "Action": "sample string 3"
      }
    ],
    "Description": "sample string 9",
    "Enabled": true
  },
  {
    "Lights": [
      {
        "LifxId": "sample string 1",
        "Assigned": true,
        "DeviceId": "f126523d-0b92-4918-823e-9c9d224366e6",
        "Name": "sample string 4",
        "Power": "sample string 5",
        "Connected": true,
        "BrightnessPercentage": 7,
        "GroupName": "sample string 8",
        "LocationName": "sample string 9",
        "Hue": 10.1,
        "ColorTemperature": 11,
        "Saturation": 12.1,
        "ProductName": "sample string 13",
        "LastSeen": "2017-10-23T16:55:27.0175164+00:00",
        "Links": [],
        "Actions": []
      },
      {
        "LifxId": "sample string 1",
        "Assigned": true,
        "DeviceId": "f126523d-0b92-4918-823e-9c9d224366e6",
        "Name": "sample string 4",
        "Power": "sample string 5",
        "Connected": true,
        "BrightnessPercentage": 7,
        "GroupName": "sample string 8",
        "LocationName": "sample string 9",
        "Hue": 10.1,
        "ColorTemperature": 11,
        "Saturation": 12.1,
        "ProductName": "sample string 13",
        "LastSeen": "2017-10-23T16:55:27.0175164+00:00",
        "Links": [],
        "Actions": []
      }
    ],
    "Id": "a562ae3d-2c50-4531-8e34-bccf43cf4418",
    "Name": "sample string 2",
    "UserName": "sample string 3",
    "FullUserName": "sample string 4",
    "BotType": "sample string 5",
    "DisplayName": "sample string 6",
    "DevicesCheckIntervalMinutes": 7,
    "MeasurementCollectionIntervalMinutes": 8,
    "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"
      }
    ],
    "Actions": [
      {
        "Href": "sample string 1",
        "Rel": "sample string 2",
        "Action": "sample string 3"
      },
      {
        "Href": "sample string 1",
        "Rel": "sample string 2",
        "Action": "sample string 3"
      }
    ],
    "Description": "sample string 9",
    "Enabled": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfLifxBotDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots.LifxBot">
  <LifxBotDto>
    <Actions xmlns:d3p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared" xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">
      <d3p1:LinkViewModel>
        <d3p1:Action>sample string 3</d3p1:Action>
        <d3p1:Href>sample string 1</d3p1:Href>
        <d3p1:Rel>sample string 2</d3p1:Rel>
      </d3p1:LinkViewModel>
      <d3p1:LinkViewModel>
        <d3p1:Action>sample string 3</d3p1:Action>
        <d3p1:Href>sample string 1</d3p1:Href>
        <d3p1:Rel>sample string 2</d3p1:Rel>
      </d3p1:LinkViewModel>
    </Actions>
    <BotType xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">sample string 5</BotType>
    <Description xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">sample string 9</Description>
    <DevicesCheckIntervalMinutes xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">7</DevicesCheckIntervalMinutes>
    <DisplayName xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">sample string 6</DisplayName>
    <Enabled xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">true</Enabled>
    <FullUserName xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">sample string 4</FullUserName>
    <Id xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">a562ae3d-2c50-4531-8e34-bccf43cf4418</Id>
    <Links xmlns:d3p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared" xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">
      <d3p1:LinkViewModel>
        <d3p1:Action>sample string 3</d3p1:Action>
        <d3p1:Href>sample string 1</d3p1:Href>
        <d3p1:Rel>sample string 2</d3p1:Rel>
      </d3p1:LinkViewModel>
      <d3p1:LinkViewModel>
        <d3p1:Action>sample string 3</d3p1:Action>
        <d3p1:Href>sample string 1</d3p1:Href>
        <d3p1:Rel>sample string 2</d3p1:Rel>
      </d3p1:LinkViewModel>
    </Links>
    <MeasurementCollectionIntervalMinutes xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">8</MeasurementCollectionIntervalMinutes>
    <Name xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">sample string 2</Name>
    <UserName xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">sample string 3</UserName>
    <Lights>
      <LifxLightDto>
        <Actions xmlns:d5p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared" />
        <Assigned>true</Assigned>
        <BrightnessPercentage>7</BrightnessPercentage>
        <ColorTemperature>11</ColorTemperature>
        <Connected>true</Connected>
        <DeviceId>f126523d-0b92-4918-823e-9c9d224366e6</DeviceId>
        <GroupName>sample string 8</GroupName>
        <Hue>10.1</Hue>
        <LastSeen>2017-10-23T16:55:27.0175164+00:00</LastSeen>
        <LifxId>sample string 1</LifxId>
        <Links xmlns:d5p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared" />
        <LocationName>sample string 9</LocationName>
        <Name>sample string 4</Name>
        <Power>sample string 5</Power>
        <ProductName>sample string 13</ProductName>
        <Saturation>12.1</Saturation>
      </LifxLightDto>
      <LifxLightDto>
        <Actions xmlns:d5p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared" />
        <Assigned>true</Assigned>
        <BrightnessPercentage>7</BrightnessPercentage>
        <ColorTemperature>11</ColorTemperature>
        <Connected>true</Connected>
        <DeviceId>f126523d-0b92-4918-823e-9c9d224366e6</DeviceId>
        <GroupName>sample string 8</GroupName>
        <Hue>10.1</Hue>
        <LastSeen>2017-10-23T16:55:27.0175164+00:00</LastSeen>
        <LifxId>sample string 1</LifxId>
        <Links xmlns:d5p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared" />
        <LocationName>sample string 9</LocationName>
        <Name>sample string 4</Name>
        <Power>sample string 5</Power>
        <ProductName>sample string 13</ProductName>
        <Saturation>12.1</Saturation>
      </LifxLightDto>
    </Lights>
  </LifxBotDto>
  <LifxBotDto>
    <Actions xmlns:d3p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared" xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">
      <d3p1:LinkViewModel>
        <d3p1:Action>sample string 3</d3p1:Action>
        <d3p1:Href>sample string 1</d3p1:Href>
        <d3p1:Rel>sample string 2</d3p1:Rel>
      </d3p1:LinkViewModel>
      <d3p1:LinkViewModel>
        <d3p1:Action>sample string 3</d3p1:Action>
        <d3p1:Href>sample string 1</d3p1:Href>
        <d3p1:Rel>sample string 2</d3p1:Rel>
      </d3p1:LinkViewModel>
    </Actions>
    <BotType xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">sample string 5</BotType>
    <Description xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">sample string 9</Description>
    <DevicesCheckIntervalMinutes xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">7</DevicesCheckIntervalMinutes>
    <DisplayName xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">sample string 6</DisplayName>
    <Enabled xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">true</Enabled>
    <FullUserName xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">sample string 4</FullUserName>
    <Id xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">a562ae3d-2c50-4531-8e34-bccf43cf4418</Id>
    <Links xmlns:d3p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared" xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">
      <d3p1:LinkViewModel>
        <d3p1:Action>sample string 3</d3p1:Action>
        <d3p1:Href>sample string 1</d3p1:Href>
        <d3p1:Rel>sample string 2</d3p1:Rel>
      </d3p1:LinkViewModel>
      <d3p1:LinkViewModel>
        <d3p1:Action>sample string 3</d3p1:Action>
        <d3p1:Href>sample string 1</d3p1:Href>
        <d3p1:Rel>sample string 2</d3p1:Rel>
      </d3p1:LinkViewModel>
    </Links>
    <MeasurementCollectionIntervalMinutes xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">8</MeasurementCollectionIntervalMinutes>
    <Name xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">sample string 2</Name>
    <UserName xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Bots">sample string 3</UserName>
    <Lights>
      <LifxLightDto>
        <Actions xmlns:d5p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared" />
        <Assigned>true</Assigned>
        <BrightnessPercentage>7</BrightnessPercentage>
        <ColorTemperature>11</ColorTemperature>
        <Connected>true</Connected>
        <DeviceId>f126523d-0b92-4918-823e-9c9d224366e6</DeviceId>
        <GroupName>sample string 8</GroupName>
        <Hue>10.1</Hue>
        <LastSeen>2017-10-23T16:55:27.0175164+00:00</LastSeen>
        <LifxId>sample string 1</LifxId>
        <Links xmlns:d5p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared" />
        <LocationName>sample string 9</LocationName>
        <Name>sample string 4</Name>
        <Power>sample string 5</Power>
        <ProductName>sample string 13</ProductName>
        <Saturation>12.1</Saturation>
      </LifxLightDto>
      <LifxLightDto>
        <Actions xmlns:d5p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared" />
        <Assigned>true</Assigned>
        <BrightnessPercentage>7</BrightnessPercentage>
        <ColorTemperature>11</ColorTemperature>
        <Connected>true</Connected>
        <DeviceId>f126523d-0b92-4918-823e-9c9d224366e6</DeviceId>
        <GroupName>sample string 8</GroupName>
        <Hue>10.1</Hue>
        <LastSeen>2017-10-23T16:55:27.0175164+00:00</LastSeen>
        <LifxId>sample string 1</LifxId>
        <Links xmlns:d5p1="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared" />
        <LocationName>sample string 9</LocationName>
        <Name>sample string 4</Name>
        <Power>sample string 5</Power>
        <ProductName>sample string 13</ProductName>
        <Saturation>12.1</Saturation>
      </LifxLightDto>
    </Lights>
  </LifxBotDto>
</ArrayOfLifxBotDto>