OpenCTI icon

OpenCTI

Interact with the OpenCTI Cyber Threat Intelligence platform

Actions149

Relationship → Create

AI-generated

Summary

Create a STIX relationship between two entities

Inputs

  • relationshipType (required) — Type of STIX relationship
  • fromId (required) — Source entity ID
  • toId (required) — Target entity ID
  • additionalFields — Optional fields such as confidence, description, labels, etc.

Output shape

a single created relationship object

Returns the full relationship object including its generated ID and all specified properties.

Examples

Example 1: Create a relationship linking a malware to an indicator

relationshipType: 'uses', fromId: 'malware--abc', toId: 'indicator--xyz', additionalFields: { confidence: 85 }

Links

Discussion