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": "3e122297-526a-4a26-a6d5-76eb034e1c2c",
  "tenantId": "77980866-9d00-4f56-abbd-1468ac3c7768",
  "lookupKey": "sample string 3",
  "name": "sample string 4",
  "description": "sample string 5",
  "isDefault": true,
  "createdDateUtc": "2026-02-08T20:44:22.420715+00:00",
  "updatedDateUtc": "2026-02-08T20:44:22.420715+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-02-08T20:44:22.420715+00:00</CreatedDateUtc>
  <UpdatedDateUtc>2026-02-08T20:44:22.420715+00:00</UpdatedDateUtc>
  <Description>sample string 5</Description>
  <DeviceGroupId>3e122297-526a-4a26-a6d5-76eb034e1c2c</DeviceGroupId>
  <IsDefault>true</IsDefault>
  <LookupKey>sample string 3</LookupKey>
  <Name>sample string 4</Name>
  <TenantId>77980866-9d00-4f56-abbd-1468ac3c7768</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'.