For each relationship in the request body:
-
If an
idordata.idis provided and matches an existing
relationship, that relationship is updated in place. On update there
are some restrictions:a. Only
data.keyanddata.description, andmetacan be
changed else a 400 is raised
b. Other existing properties indatacan be provided but only with
the same value
c. Any other root properties thandataandmetaare ignored -
If no id is provided but a relationship with the same source entity,
target entity and relationship type (data.key) already exists, the
incoming relationship is de-duplicated: it is merged into the existing
one following the relationship de-duplication rules (highest TLP wins,
earliestestimated_threat_start_timeand latest
estimated_threat_end_timeare kept, and descriptions are
concatenated). The provided source is added to the existing sources. -
Otherwise, a new relationship is created.
Duplicates within the same request body (matching on source, target and
type) are merged together following the same de-duplication rules before
being persisted.
Returns 201 if at least one relationship was created, otherwise
200.
Required permissions
modify entities
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
