Skip to main content

GroupedLightService

A list of all methods in the GroupedLightService service. Click on the method name to view detailed information about that method.

MethodsDescription
GetGroupedLightsAsyncList all grouped lights
GetGroupedLightAsyncGet details of a single grouped light from its given {groupedLightId}.
UpdateGroupedLightAsyncUpdate a single grouped light from its given {groupedLightId}.

GetGroupedLightsAsync

List all grouped lights

  • HTTP Method: GET
  • Endpoint: /clip/v2/resource/grouped_light

Return Type

GetGroupedLightsOkResponse

Example Usage Code Snippet

using OpenHue;

var client = new OpenHueClient();

var response = await client.GroupedLight.GetGroupedLightsAsync();

Console.WriteLine(response);

GetGroupedLightAsync

Get details of a single grouped light from its given {groupedLightId}.

  • HTTP Method: GET
  • Endpoint: /clip/v2/resource/grouped_light/{groupedLightId}

Parameters

NameTypeRequiredDescription
groupedLightIdstringID of the grouped light

Return Type

GetGroupedLightOkResponse

Example Usage Code Snippet

using OpenHue;

var client = new OpenHueClient();

var response = await client.GroupedLight.GetGroupedLightAsync("groupedLightId");

Console.WriteLine(response);

UpdateGroupedLightAsync

Update a single grouped light from its given {groupedLightId}.

  • HTTP Method: PUT
  • Endpoint: /clip/v2/resource/grouped_light/{groupedLightId}

Parameters

NameTypeRequiredDescription
inputGroupedLightPutThe request body.
groupedLightIdstringID of the light

Return Type

UpdateGroupedLightOkResponse

Example Usage Code Snippet

using OpenHue;
using OpenHue.Models;

var client = new OpenHueClient();

var input = new GroupedLightPut();

var response = await client.GroupedLight.UpdateGroupedLightAsync(input, "groupedLightId");

Console.WriteLine(response);

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →