Cyan Web API - Version 1


POST api/nodes

            Creates a node resource.
            

Request Information

Parameters

NameDescriptionAdditional information
nodeRepresentation

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "tenantId": "6a516bb7-6ed9-4542-bdfa-817d011e7a86",
  "nodeId": "9a2f8778-19bf-490a-a2ba-515612242508",
  "type": "sample string 3",
  "id": "sample string 4",
  "parentType": "sample string 5",
  "parentId": "sample string 6",
  "title": "sample string 7",
  "props": {
    "sample string 1": {},
    "sample string 3": {},
    "sample string 5": {}
  },
  "refs": {
    "sample string 1": {
      "type": "sample string 1",
      "id": "sample string 2"
    },
    "sample string 2": {
      "type": "sample string 1",
      "id": "sample string 2"
    },
    "sample string 3": {
      "type": "sample string 1",
      "id": "sample string 2"
    }
  },
  "cyanId": 8,
  "subjectToCleanup": true,
  "createdDateUtc": "2024-08-29T23:05:34.4251442+00:00",
  "updatedDateUtc": "2024-08-29T23:05:34.4251442+00:00"
}

application/xml, text/xml

Sample:
<NodeRepresentation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlueDot.Cyan.Server.Core.Models.Rest.Version1">
  <CreatedDateUtc>2024-08-29T23:05:34.4251442+00:00</CreatedDateUtc>
  <UpdatedDateUtc>2024-08-29T23:05:34.4251442+00:00</UpdatedDateUtc>
  <CyanId>8</CyanId>
  <Id>sample string 4</Id>
  <NodeId>9a2f8778-19bf-490a-a2ba-515612242508</NodeId>
  <ParentId>sample string 6</ParentId>
  <ParentType>sample string 5</ParentType>
  <Props xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringanyType>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value />
    </d2p1:KeyValueOfstringanyType>
    <d2p1:KeyValueOfstringanyType>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value />
    </d2p1:KeyValueOfstringanyType>
    <d2p1:KeyValueOfstringanyType>
      <d2p1:Key>sample string 5</d2p1:Key>
      <d2p1:Value />
    </d2p1:KeyValueOfstringanyType>
  </Props>
  <Refs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringNodeRefRepresentationPuhFCfmt>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>
        <Id>sample string 2</Id>
        <Type>sample string 1</Type>
      </d2p1:Value>
    </d2p1:KeyValueOfstringNodeRefRepresentationPuhFCfmt>
    <d2p1:KeyValueOfstringNodeRefRepresentationPuhFCfmt>
      <d2p1:Key>sample string 2</d2p1:Key>
      <d2p1:Value>
        <Id>sample string 2</Id>
        <Type>sample string 1</Type>
      </d2p1:Value>
    </d2p1:KeyValueOfstringNodeRefRepresentationPuhFCfmt>
    <d2p1:KeyValueOfstringNodeRefRepresentationPuhFCfmt>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>
        <Id>sample string 2</Id>
        <Type>sample string 1</Type>
      </d2p1:Value>
    </d2p1:KeyValueOfstringNodeRefRepresentationPuhFCfmt>
  </Refs>
  <SubjectToCleanup>true</SubjectToCleanup>
  <TenantId>6a516bb7-6ed9-4542-bdfa-817d011e7a86</TenantId>
  <Title>sample string 7</Title>
  <Type>sample string 3</Type>
</NodeRepresentation>

application/x-www-form-urlencoded

Sample:

Sample not available.