Cyan Web API - Version 1


POST api/nodeRoutes

            Creates a NodeRoute.
            

Request Information

Parameters

NameDescriptionAdditional information
nodeRouteRepresentation

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "nodeRouteId": "152cf19d-6fa8-4526-9605-ffb161af2131",
  "tenantId": "740e657b-4912-4022-8fbd-89794b899ad6",
  "userId": "9c126d95-7772-4477-9377-27c2126ff638",
  "userGroupId": "680acc29-2121-4a8c-b5fa-88a2ca3125d8",
  "deviceId": "3222abb5-f5eb-4509-a134-5f1cd0f504af",
  "deviceGroupId": "c73a7f7e-70dd-4656-b870-cbb8a9861ff0",
  "applicationId": "c232d837-bc07-45e5-a2c4-f0856086ab35",
  "applicationVersionId": "26f32288-2e91-442d-96c6-066bb2d4e4b0",
  "nodeId": "e6c77ed8-24ef-4ac3-90b7-ffbfe5dc284e",
  "name": "sample string 4",
  "description": "sample string 5",
  "nodeCyanId": 6,
  "cyanId": 7,
  "customKey": "sample string 8",
  "customValue": "sample string 9",
  "applyParentRoutes": true,
  "applyToDescendants": true,
  "applyToTree": true,
  "applyToParents": true,
  "applyToSiblings": true,
  "applyToSiblingsType": "sample string 15",
  "ignoreNodeIdsInRouting": [
    "sample string 1",
    "sample string 2",
    "sample string 3"
  ],
  "createdDateUtc": "2025-12-14T16:01:52.2906967+00:00",
  "updatedDateUtc": "2025-12-14T16:01:52.2906967+00:00"
}

application/xml, text/xml

Sample:
<NodeRouteRepresentation 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-14T16:01:52.2906967+00:00</CreatedDateUtc>
  <UpdatedDateUtc>2025-12-14T16:01:52.2906967+00:00</UpdatedDateUtc>
  <ApplicationId>c232d837-bc07-45e5-a2c4-f0856086ab35</ApplicationId>
  <ApplicationVersionId>26f32288-2e91-442d-96c6-066bb2d4e4b0</ApplicationVersionId>
  <ApplyParentRoutes>true</ApplyParentRoutes>
  <ApplyToDescendants>true</ApplyToDescendants>
  <ApplyToParents>true</ApplyToParents>
  <ApplyToSiblings>true</ApplyToSiblings>
  <ApplyToSiblingsType>sample string 15</ApplyToSiblingsType>
  <ApplyToTree>true</ApplyToTree>
  <CustomKey>sample string 8</CustomKey>
  <CustomValue>sample string 9</CustomValue>
  <CyanId>7</CyanId>
  <Description>sample string 5</Description>
  <DeviceGroupId>c73a7f7e-70dd-4656-b870-cbb8a9861ff0</DeviceGroupId>
  <DeviceId>3222abb5-f5eb-4509-a134-5f1cd0f504af</DeviceId>
  <IgnoreNodeIdsInRouting xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
    <d2p1:string>sample string 3</d2p1:string>
  </IgnoreNodeIdsInRouting>
  <Name>sample string 4</Name>
  <NodeCyanId>6</NodeCyanId>
  <NodeId>e6c77ed8-24ef-4ac3-90b7-ffbfe5dc284e</NodeId>
  <NodeRouteId>152cf19d-6fa8-4526-9605-ffb161af2131</NodeRouteId>
  <TenantId>740e657b-4912-4022-8fbd-89794b899ad6</TenantId>
  <UserGroupId>680acc29-2121-4a8c-b5fa-88a2ca3125d8</UserGroupId>
  <UserId>9c126d95-7772-4477-9377-27c2126ff638</UserId>
</NodeRouteRepresentation>

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