Cyan Web API - Version 1


POST api/deviceGroups

            Creates a DeviceGroup
            

Request Information

Parameters

NameDescriptionAdditional information
deviceGroupRepresentation

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "deviceGroupId": "0dfc006d-d7e8-433e-a1f0-e048c7489198",
  "tenantId": "4cfd9820-1814-4f51-8d3e-a5c0c3a78ebc",
  "lookupKey": "sample string 3",
  "name": "sample string 4",
  "description": "sample string 5",
  "isDefault": true,
  "createdDateUtc": "2026-05-30T10:11:46.0942051+00:00",
  "updatedDateUtc": "2026-05-30T10:11:46.0942051+00:00"
}

application/xml, text/xml

Sample:
<DeviceGroupRepresentation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlueDot.Cyan.Server.Core.Models.Rest.Version1">
  <CreatedDateUtc>2026-05-30T10:11:46.0942051+00:00</CreatedDateUtc>
  <UpdatedDateUtc>2026-05-30T10:11:46.0942051+00:00</UpdatedDateUtc>
  <Description>sample string 5</Description>
  <DeviceGroupId>0dfc006d-d7e8-433e-a1f0-e048c7489198</DeviceGroupId>
  <IsDefault>true</IsDefault>
  <LookupKey>sample string 3</LookupKey>
  <Name>sample string 4</Name>
  <TenantId>4cfd9820-1814-4f51-8d3e-a5c0c3a78ebc</TenantId>
</DeviceGroupRepresentation>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DeviceGroupRepresentation'.