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": "554a40ef-2fce-4c77-95f6-d620ed7ad7a9",
  "tenantId": "c63df8a4-235a-42a3-a6a1-935f10609977",
  "lookupKey": "sample string 3",
  "name": "sample string 4",
  "description": "sample string 5",
  "isDefault": true,
  "createdDateUtc": "2026-10-27T09:05:02.0491698+00:00",
  "updatedDateUtc": "2026-10-27T09:05:02.0491698+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-10-27T09:05:02.0491698+00:00</CreatedDateUtc>
  <UpdatedDateUtc>2026-10-27T09:05:02.0491698+00:00</UpdatedDateUtc>
  <Description>sample string 5</Description>
  <DeviceGroupId>554a40ef-2fce-4c77-95f6-d620ed7ad7a9</DeviceGroupId>
  <IsDefault>true</IsDefault>
  <LookupKey>sample string 3</LookupKey>
  <Name>sample string 4</Name>
  <TenantId>c63df8a4-235a-42a3-a6a1-935f10609977</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'.