---
title: "Add IoC Collectios association to a Hunting ruleset"
method: POST
path: "/intelligence/hunting_rulesets/{id}/relationships/associations"
tags: ["Livehunt"]
---

# Add IoC Collectios association to a Hunting ruleset

`POST /intelligence/hunting_rulesets/{id}/relationships/associations`

## Request

- Base URL: `https://www.virustotal.com/api/v3`
- URL: `https://www.virustotal.com/api/v3/intelligence/hunting_rulesets/{id}/relationships/associations`
- Auth: none required

## Path parameters

- `id` string, required

## Headers

- `x-apikey` string, required

## Request body

- object
  - `data` string, json: A list of IoC Collection objects descriptors

## Response `200`

200

- object

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/virustotal/apis/yara-hunting.md) - [All operations](https://skmtc.dev/virustotal/apis/yara-hunting/llms.txt) - [OpenAPI document](https://skmtc.dev/virustotal/apis/yara-hunting/revisions/8a36850f05b9?raw)
