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": "7aa70ca4-9f3f-48a1-b22d-729123dbd4ec",
  "tenantId": "514f8a84-d214-4d85-87c5-515dcd0e782d",
  "lookupKey": "sample string 3",
  "name": "sample string 4",
  "description": "sample string 5",
  "isDefault": true,
  "createdDateUtc": "2026-11-05T14:59:13.6946439+00:00",
  "updatedDateUtc": "2026-11-05T14:59:13.6946439+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-11-05T14:59:13.6946439+00:00</CreatedDateUtc>
  <UpdatedDateUtc>2026-11-05T14:59:13.6946439+00:00</UpdatedDateUtc>
  <Description>sample string 5</Description>
  <DeviceGroupId>7aa70ca4-9f3f-48a1-b22d-729123dbd4ec</DeviceGroupId>
  <IsDefault>true</IsDefault>
  <LookupKey>sample string 3</LookupKey>
  <Name>sample string 4</Name>
  <TenantId>514f8a84-d214-4d85-87c5-515dcd0e782d</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'.