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": "8533ae75-c084-4783-9275-a83d87281d35",
  "tenantId": "95d50111-f09e-40dc-9ae4-dbfe97173930",
  "lookupKey": "sample string 3",
  "name": "sample string 4",
  "description": "sample string 5",
  "isDefault": true,
  "createdDateUtc": "2025-11-15T11:40:32.1652424+00:00",
  "updatedDateUtc": "2025-11-15T11:40:32.1652424+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>2025-11-15T11:40:32.1652424+00:00</CreatedDateUtc>
  <UpdatedDateUtc>2025-11-15T11:40:32.1652424+00:00</UpdatedDateUtc>
  <Description>sample string 5</Description>
  <DeviceGroupId>8533ae75-c084-4783-9275-a83d87281d35</DeviceGroupId>
  <IsDefault>true</IsDefault>
  <LookupKey>sample string 3</LookupKey>
  <Name>sample string 4</Name>
  <TenantId>95d50111-f09e-40dc-9ae4-dbfe97173930</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'.