Link an Entities

Last update: September 10, 2026
•
1 min to read

Create a link between entities in the Hubstream instance.

HTTP Method

POST

Endpoint

/api/data/write/StandardIntelLiteWriter

Request URL

{Base URL}/api/data/write/StandardIntelLiteWriter

Sample Request Body

This sample JSON creates a new Domain (“Testing”) and links it to an existing Company entity (ID = 1) using the specified relationship (“Related Entities” with “Confirmed” quality).

{
  "EntityName": "Domain",
  "ParentEntityName": "Company",
  "Data": {
    "Meta": {
      "$charset": "UTF-8"
    },
    "Links": [
      {
        "$id": "Yi21J",
        "$fid": "tpbKT",
        "$tid": "2fmIw",
        "LinkName": "Related Entities",
        "LinkQuality": "Confirmed"
      }
    ],
    "Nodes": {
      "Company": [
        {
          "$id": "tpbKT",
          "ID": "1",
          "$isTemporary": true
        }
      ],
      "Domain": [
        {
          "$id": "2fmIw",
          "GUID": "e9c6525634af86bd3ca9ef1d8b3a6a99",
          "Name": "Testing"
        }
      ]
    }
  }
}

Parameters

Param NameData TypeDescription
EntityNameStringThe child entity to be linked (for example, Domain).
ParentEntityNameStringName of the parent entity type (for example, Company).
$id (Links)StringA dynamically generated identifier for the link object. Used to reference the link internally within the request.
$fidStringA dynamically generated From identifier (parent entity).
$tidStringA dynamically generated To identifier (child entity).
$isTemporaryBooleantrue or false. true indicates that the Company entity is temporary and may be created or resolved during processing.
LinkNameStringName of the link relationship (for example, Related Entities).
LinkQualityStringQuality or strength of the relationship. Eg: Confirmed
GUIDStringA dynamically generated globally unique identifier.
$id (Nodes)StringA dynamically generated identifier used to match nodes with $fid and $tid in the link.
IDIntegerID of the link entity.
NameStringName of the link entity (for example, Linking Domain).

Curl Example

Multi-line format (for readability):

curl --header "Accept-Language: en" \
     --http1.1 \
     --insecure \
     --verbose \
     --ntlm \
     --user "device-name1\jdoe:P@ssw0rd" \
     -X POST \
     "https://hubstreamproduction.hubstreamonline.com/api/data/write/StandardIntelLiteWriter" \
     -H "Content-Type: application/json" \
     -d '{
       "EntityName": "Domain",
       "ParentEntityName": "Company",
       "Data": {
         "Meta": {
           "$charset": "UTF-8"
         },
         "Links": [
           {
             "$id": "Yi21J",
             "$fid": "tpbKT",
             "$tid": "2fmIw",
             "LinkName": "Related Entities",
             "LinkQuality": "Confirmed"
           }
         ],
         "Nodes": {
           "Company": [
             {
               "$id": "tpbKT",
               "ID": "1",
               "$isTemporary": true
             }
           ],
           "Domain": [
             {
               "$id": "2fmIw",
               "GUID": "e9c6525634af86bd3ca9ef1d8b3a6a99",
               "Name": "Testing"
             }
           ]
         }
       }
     }'

Single-line format (for terminal use)

curl --header "Accept-Language: en" --http1.1 --insecure --verbose --ntlm --user "device-name1\jdoe:P@ssw0rd" -X POST "https://hubstreamproduction.hubstreamonline.com/api/data/write/StandardIntelLiteWriter" -H "Content-Type: application/json" -d "{\"EntityName\":\"Domain\",\"ParentEntityName\":\"Company\",\"Data\":{\"Meta\":{\"$charset\":\"UTF-8\"},\"Links\":[{\"$id\":\"Yi21J\",\"$fid\":\"tpbKT\",\"$tid\":\"2fmIw\",\"LinkName\":\"Related Entities\",\"LinkQuality\":\"Confirmed\"}],\"Nodes\":{\"Company\":[{\"$id\":\"tpbKT\",\"ID\":\"1\",\"$isTemporary\":true}],\"Domain\":[{\"$id\":\"2fmIw\",\"GUID\":\"e9c6525634af86bd3ca9ef1d8b3a6a99\",\"Name\":\"Testing\"}]}}}"

Sample Responses

Status code 2XX indicates a successful request and response.

200 OK

  • Description: Operation succeeded

Response Body

{
  "ID": 1,
  "DataRow": {
    "RowError": "",
    "RowState": 2,
    "Table": [
      {
        "ID": 1,
        "Action": "INSERT",
        "EntityTypeID": 53,
        "GUID": "e9c65256-34af-86bd-3ca9-ef1d8b3a6a99"
      }
    ],
    "ItemArray": [
      1,
      "INSERT",
      53,
      "e9c65256-34af-86bd-3ca9-ef1d8b3a6a99"
    ],
    "HasErrors": false
  }
}