---
updatedAt: 2026-05-27T12:52:11.000Z
agentTools:
  projectIndex: https://developer.onetrust.com/onetrust/llms.txt
---

# Link Incident to Inventory

Use this API to link an incident with a specific inventory type. 

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Privacy Automation - Incident Management",
    "description": "The Incident Management API allows you to efficiently manage and respond to incidents.",
    "version": "1.0",
    "contact": {
      "name": "OneTrust Support",
      "url": "https://my.onetrust.com/s/contactsupport"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/api",
      "variables": {
        "hostname": {
          "default": "hostname",
          "description": "The OneTrust hostname such as app.onetrust.com, app-eu.onetrust.com, app-de.onetrust.com, app-uk.onetrust.com, app-apac.onetrust.com, trial.onetrust.com, or uat.onetrust.com."
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Incidents",
      "description": "APIs used to create, update, search, and manage incidents, including linking incidents to inventories, retrieving details, and tracking their lifecycle.",
      "externalDocs": {
        "description": "OpenAPI 3.1.0 - Download Definition",
        "url": "https://developer.onetrust.com/onetrust/openapi/privacy-automation-incident-management.json"
      }
    }
  ],
  "x-onetrust": {
    "spec-label": "OpenAPI 3.1.0",
    "links": [
      "{'Incident Management Knowledge Base': 'https://my.onetrust.com/s/topic/0TO1Q000000ItS1WAK/incident-management'}"
    ]
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false,
    "metrics-enabled": false
  },
  "paths": {
    "/incident/v1/incidents/{incidentId}/inventory-links/{inventoryType}": {
      "post": {
        "operationId": "createInventoryLinks",
        "summary": "Link Incident to Inventory",
        "description": "Use this API to link an incident with a specific inventory type. ",
        "tags": [
          "Incidents"
        ],
        "x-onetrust": {
          "spec-label": "https://developer.onetrust.com/onetrust/openapi/privacy-automation-incident-management.json"
        },
        "parameters": [
          {
            "name": "incidentId",
            "in": "path",
            "description": "Incident ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "f7114aef-b6b6-42d6-9249-56a467950aa7"
          },
          {
            "name": "inventoryType",
            "in": "path",
            "description": "Type of inventory being linked. Allowed values: {assets, processing-activities, vendors, entities}",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "assets",
                "processing-activities",
                "vendors",
                "entities"
              ]
            },
            "example": "assets"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "description": "Inventory Link Creation Request",
                "$ref": "#/components/schemas/InventoryLinkCreationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Inventory links successfully created",
            "content": {
              "application/json": {
                "schema": {
                  "description": "List of inventory link associations",
                  "$ref": "#/components/schemas/InventoryLinkAssociationInformation"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "429": {
            "description": "Too Many Requests. \nFor more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).",
            "headers": {
              "Retry-After": {
                "schema": {
                  "description": "The number of seconds after which requests will be allowed again.",
                  "format": "int32"
                }
              },
              "ot-period": {
                "schema": {
                  "description": "The unit of time for which the rate limit applies",
                  "enum": [
                    "HOUR",
                    "MINUTE"
                  ]
                }
              },
              "ot-ratelimit-event-id": {
                "schema": {
                  "description": "The unique identifier for the rate-limiting event.",
                  "format": "uuid"
                }
              },
              "ot-request-made": {
                "schema": {
                  "description": "The number of requests made within the specified period.",
                  "format": "int32"
                }
              },
              "ot-requests-allowed": {
                "schema": {
                  "description": "The number of requests allowed within the specified period.",
                  "format": "int32"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "OAUTH2": [
              "INCIDENT"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "InventoryLinkCreationRequest": {
        "type": "object",
        "properties": {
          "inventoryIds": {
            "description": "Inventory Identifiers",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "example": [
              "550e8400-e29b-41d4-a716-446655440000",
              "550e8400-e29b-41d4-a716-446655440001"
            ],
            "uniqueItems": true
          },
          "externalIds": {
            "description": "Set of unique identifiers for the record from an external system",
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "EXT-12345",
              "EXT-67890"
            ],
            "uniqueItems": true
          },
          "sourceType": {
            "description": "Source of inventory link creation",
            "type": "string",
            "example": "INTEGRATION",
            "default": "MANUAL",
            "enum": [
              "MANUAL",
              "ASSESSMENT",
              "INTEGRATION"
            ],
            "$ref": "#/components/schemas/LinkCreationMode"
          }
        }
      },
      "LinkCreationMode": {
        "type": "string",
        "example": "INTEGRATION",
        "default": "MANUAL",
        "enum": [
          "MANUAL",
          "ASSESSMENT",
          "INTEGRATION"
        ]
      },
      "EntityOrganizationInformation": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique identifier of the organization.",
            "type": "string",
            "format": "uuid",
            "example": "f2229953-b4b5-4042-8cb9-b78038cc4c46"
          },
          "name": {
            "description": "The name of the organization.",
            "type": "string",
            "example": "Business Unit"
          }
        },
        "required": [
          "id"
        ]
      },
      "InventoryLinkAssociationInformation": {
        "type": "object",
        "properties": {
          "inventoryType": {
            "description": "Type of the associated inventory",
            "type": "string",
            "example": "assets",
            "enum": [
              "assets",
              "processing-activities",
              "vendors",
              "entities"
            ]
          },
          "id": {
            "description": "Unique identifier of the associated inventory",
            "type": "string",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440001"
          },
          "name": {
            "description": "Name of the associated inventory",
            "type": "string",
            "example": "Customer Data Asset"
          },
          "organization": {
            "description": "Organization of the associated inventory",
            "example": {
              "id": "d1119953-b4b5-4042-8cb9-b78038cc2c46",
              "name": "Organization"
            },
            "$ref": "#/components/schemas/EntityOrganizationInformation"
          }
        }
      }
    },
    "securitySchemes": {
      "OAUTH2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://{hostname}/api/access/v1/oauth/token",
            "scopes": {
              "INCIDENT": "Grants the user permission to view and manage the incident details.",
              "INCIDENT_READ": "Grants the user permission to read incident data, including retrieving incident details.",
              "INCIDENT_CREATE": "Grants the user permission to create incident."
            }
          }
        }
      }
    }
  }
}
```

# Sibling pages

* [Update Incident Stage](https://developer.onetrust.com/onetrust/reference/assignstagebyname.md)
* [Create Incident](https://developer.onetrust.com/onetrust/reference/createincidentusingpost.md)
* [Update Incident Stage by Type](https://developer.onetrust.com/onetrust/reference/assignstagebyname_1.md)
* [Search Incidents](https://developer.onetrust.com/onetrust/reference/searchincidentsusingpost.md)
* [Get Incident](https://developer.onetrust.com/onetrust/reference/getincidentdetailbyincidentidusingget.md)
* [Update Incident](https://developer.onetrust.com/onetrust/reference/updateincidentusingput.md)