Cyan Web API - Version 1


POST api/deviceApplications

            Creates a DeviceApplication.
            

Request Information

Parameters

NameDescriptionAdditional information
deviceApplicationRepresentation

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "deviceId": "0a414e31-9bec-472b-8b19-6260e4864154",
  "applicationId": "7e4841e9-dbae-4942-a973-1545e6f8b706",
  "isLicensed": true,
  "createdDateUtc": "2025-12-12T14:53:05.8657648+00:00",
  "updatedDateUtc": "2025-12-12T14:53:05.8657648+00:00"
}

application/xml, text/xml

Sample:
<DeviceApplicationRepresentation 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-12-12T14:53:05.8657648+00:00</CreatedDateUtc>
  <UpdatedDateUtc>2025-12-12T14:53:05.8657648+00:00</UpdatedDateUtc>
  <ApplicationId>7e4841e9-dbae-4942-a973-1545e6f8b706</ApplicationId>
  <DeviceId>0a414e31-9bec-472b-8b19-6260e4864154</DeviceId>
  <IsLicensed>true</IsLicensed>
</DeviceApplicationRepresentation>

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 'DeviceApplicationRepresentation'.