---
updatedAt: 2026-06-05T14:43:26.000Z
agentTools:
  projectIndex: https://gtidocs.readme.io/llms.txt
---

# Add objects to a Threat Profile

Use this endpoint to add Threat objects ([Threat Actors](https://gtidocs.readme.io/reference/threat-actor-object), [Malware Families](https://gtidocs.readme.io/reference/malware-family-object), [Software or Toolkits](https://gtidocs.readme.io/reference/software-toolkit-object), [Campaigns](https://gtidocs.readme.io/reference/campaign-object), [IoC Collections](https://gtidocs.readme.io/reference/ioc-collection-object), [Reports](https://gtidocs.readme.io/reference/report-object) and [Vulnerabilities](https://gtidocs.readme.io/reference/vulnerability-object)) to a certain Threat Profile.

This endpoint requires objects' descriptors and the user to be the **owner** or an **editor** of the Threat Profile.

## Examples

Add the IoC collection with alienvault\_6603ebc9f7d8b30ccfe70c54 identifier and the cve-2024-11820 vulnerability to the 332e02da667746f180a9740e94a3ec98 Threat Profile.

```python
import requests

profile_id = "332e02da667746f180a9740e94a3ec98"
payload = {
    "data":[
        {
            "type": "collection",
            "id": "alienvault_6603ebc9f7d8b30ccfe70c54"},
        {
            "type": "collection",
            "id": "vulnerability--cve-2024-11820"}
    ]
}
url = f"https://www.virustotal.com/api/v3/threat_profiles/{profile_id}/relationships/recommendations"
headers = {
    "accept": "application/json",
    "x-apikey": <api-key>, 
    "content-type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
```

<br />

# OpenAPI definition

```json
{
  "info": {
    "title": "Threat Landscape",
    "version": "3.0"
  },
  "openapi": "3.1.0",
  "tags": [
    {
      "name": "Threat Profiles"
    }
  ],
  "paths": {
    "/threat_profiles/{profile_id}/relationships/recommendations": {
      "post": {
        "tags": [
          "Threat Profiles"
        ],
        "description": "",
        "operationId": "add-threat-profile-recommendations",
        "parameters": [
          {
            "description": "Your API key",
            "in": "header",
            "name": "x-apikey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Threat Profile's ID",
            "in": "path",
            "name": "profile_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "data": {
                    "description": "List of objects descriptors",
                    "format": "json",
                    "type": "string"
                  }
                },
                "required": [
                  "data"
                ],
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "properties": {},
                  "type": "object"
                }
              }
            },
            "description": "200"
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "properties": {},
                  "type": "object"
                }
              }
            },
            "description": "400"
          }
        },
        "security": [],
        "summary": "Add objects to a Threat Profile"
      }
    }
  },
  "security": [],
  "servers": [
    {
      "url": "https://www.virustotal.com/api/v3"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "headers": [],
    "proxy-enabled": false,
    "samples-enabled": true
  }
}
```