CTIX
Network live
CTIXPOST

Bulk Add Relation

Source docs
POSThttps://cs-testv2.cyware.com/ctixapi/ingestion/threat-data/bulk-action/add_relation/

Add a relation to multiple threat data objects.

Body Parameters

NameTypeRequiredDescription
object_typestringrequired

Pass the type of threat data objects. To get the list of supported object types, see Supported SDO Types in Threat Data > Miscellaneous.

object_idsarrayrequired

Pass the list of threat data object IDs to perform the bulk action. To retrieve a list of object IDs, use the List Threat Data API under the Threat Data section.

dataobjectrequired

Pass the relation data to pass with the request.

Run it

Use the Request parameters panel to enter path IDs, query values, JSON body, and credentials. Then run any snippet below — all languages use the same values. Base URL: https://cs-testv2.cyware.com/ctixapi (change in API Settings).

Playground

Request parameters

Edit values here before running any snippet below (cURL, JavaScript, or Python). Code blocks are reference only — your inputs above are what gets sent.

CTIXConnect to Intel ExchangeRequired to change data
Credentials required for POST

Open API (HMAC signature) · Get credentials from Cyware Admin → Open API → Generate Credentials.

Signature and Expires are generated when you run a request. Access ID and Secret Key stay in memory for this tab only.

Credentials from Authentication auto-fill here for this product. If fields are empty after connecting, refresh this page or open the product docs again.

Request body (JSON)Valid JSON
cURL
curl --request POST \
  --url "https://cs-testv2.cyware.com/ctixapi/ingestion/threat-data/bulk-action/add_relation/?AccessID=%3Cyour%20access%20id%3E&Signature=%3Cyour%20signature%3E&Expires=%3Cyour%20expires%3E" \
  --data '{
  "object_type": "indicator",
  "object_ids": [
    "49d5e95e-3889-42de-8280-1ebf5c7cb95a"
  ],
  "data": {}
}'

View-only example — running live API calls requires a role with snippet testing access.

JavaScript
const url = "https://cs-testv2.cyware.com/ctixapi/ingestion/threat-data/bulk-action/add_relation/?AccessID=%3Cyour%20access%20id%3E&Signature=%3Cyour%20signature%3E&Expires=%3Cyour%20expires%3E";

const response = await fetch(url, {
  method: "POST",
  headers: {},
  body: JSON.stringify({
    "object_type": "indicator",
    "object_ids": [
      "49d5e95e-3889-42de-8280-1ebf5c7cb95a"
    ],
    "data": {}
  }),
});

const text = await response.text();
let data;
try { data = JSON.parse(text); } catch { data = text; }
console.log(response.status, data);

View-only example — running live API calls requires a role with snippet testing access.

Python
import requests

url = "https://cs-testv2.cyware.com/ctixapi/ingestion/threat-data/bulk-action/add_relation/"
params = {
    "AccessID": "<your access id>",
    "Signature": "<your signature>",
    "Expires": "<your expires>"
}
headers = {}
payload = {
  "object_type": "indicator",
  "object_ids": [
    "49d5e95e-3889-42de-8280-1ebf5c7cb95a"
  ],
  "data": {}
}
response = requests.request("POST", url, params=params, headers=headers, json=payload)
print(response.status_code)
print(response.text)

View-only example — running live API calls requires a role with snippet testing access.

Request Body
{
  "object_type": "indicator",
  "object_ids": [
    "49d5e95e-3889-42de-8280-1ebf5c7cb95a"
  ],
  "data": {}
}

View-only example — running live API calls requires a role with snippet testing access.

Example Response
{
  "message": "Action Successfully Executed"
}

View-only example — running live API calls requires a role with snippet testing access.