OneTrust Inventory Relationships V2 API

The Inventory Relationships V2 APIs are used to manage V2 inventory relationships.

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /api/inventory-linking/v1/contextual-entities/inventory/{inventoryId}/pages List an inventory's relationships · Get List of Relationships #
Ask an LLM
“What other inventories is a given asset or processing activity linked to?”
“Can I page through all relationships of one inventory record?”
Tell an agent
List all relationships for inventory {inventoryId}.
Show page {page} of the links on inventory {inventoryId}.
PUT /api/inventory-linking/v1/contextual-entities/{contextualLinkId}/contextual-entity-types/names/{entityTypeName} Update a relationship by entity type name · Update Relationship by Type Name #
Ask an LLM
“Can I edit a contextual link's attributes when I only know the entity type's name?”
“Is it possible to change the processing activity on a relationship referenced by type name?”
Tell an agent
Update relationship {contextualLinkId} of type name {entityTypeName} with attributes {attributes}.
Set processing activity {processingActivityId} on link {contextualLinkId} (type name {entityTypeName}).
PUT /api/inventory-linking/v1/contextual-entities/{contextualLinkId}/contextual-entity-types/names/{entityTypeName}/data-elements Link personal data to a relationship by type name · Link or Unlink Personal Data to Relationship by Type Name #
Ask an LLM
“Can I attach or detach personal data elements on a relationship identified by entity type name?”
“Where do I link data elements to a contextual link when I have the type name, not the type ID?”
Tell an agent
Link or unlink personal data on relationship {contextualLinkId} using type name {entityTypeName}.
Change the personal data tied to link {contextualLinkId} of type name {entityTypeName}.
POST /api/inventory-linking/v1/contextual-entities/{contextualLinkId}/contextual-entity-types/names/{entityTypeName}/data-elements/pages List a relationship's personal data by type name · Get Personal Data for Relationship by Type Name #
Ask an LLM
“Which personal data elements are tied to a relationship, looked up by entity type name?”
“Can I page personal data on a link when I know the type name?”
Tell an agent
List personal data on relationship {contextualLinkId} with type name {entityTypeName}.
Show page {page} of data elements for link {contextualLinkId}, type name {entityTypeName}.
PUT /api/inventory-linking/v1/contextual-entities/{contextualLinkId}/contextual-entity-types/{entityTypeId} Update a relationship by entity type ID · Update Relationship by Type ID #
Ask an LLM
“Can I edit a contextual link's attributes using the entity type's ID?”
“Is changing the processing activity on a relationship possible by type ID?”
Tell an agent
Update relationship {contextualLinkId} of type ID {entityTypeId} with attributes {attributes}.
Set processing activity {processingActivityId} on link {contextualLinkId} for type ID {entityTypeId}.
PUT /api/inventory-linking/v1/contextual-entities/{contextualLinkId}/contextual-entity-types/{entityTypeId}/data-elements Link personal data to a relationship by type ID · Link or Unlink Personal Data to Relationship by Type ID #
Ask an LLM
“I only have the numeric entity type ID — where do I add or drop data elements on that contextual link?”
“Which call links data elements to a contextual link by type ID?”
Tell an agent
Link or unlink personal data on relationship {contextualLinkId} using type ID {entityTypeId}.
Change the personal data tied to link {contextualLinkId}, entity type ID {entityTypeId}.
POST /api/inventory-linking/v1/contextual-entities/{contextualLinkId}/contextual-entity-types/{entityTypeId}/data-elements/pages List a relationship's personal data by type ID · Get Personal Data for Relationship by Type ID #
Ask an LLM
“Given a contextual link and its entity type ID, what data elements does it carry?”
“Can I sort the personal data on a link identified by type ID?”
Tell an agent
List personal data on relationship {contextualLinkId} with type ID {entityTypeId}.
Show data elements for link {contextualLinkId}, type ID {entityTypeId}, sorted by {sort}.
POST /api/inventory-linking/v1/inventories/relations Link inventories together · Create Relationship #
Ask an LLM
“Can I create a two-way link between an asset and several other inventories?”
“What link type name and label are needed to relate two inventory records?”
Tell an agent
Link inventory {sourceInventory} to {targetInventory} as {linkTypeName} labeled {linkTypeLabel}.
Create a {linkTypeLabel} relationship from {sourceInventory} to {targetInventory} using link type {linkTypeName}.
GET /api/inventory-linking/v1/relationship-types/names/{relationshipTypeName}/relationship/{relationshipId} Get a relationship by relationship type name · Get Relationship by Type Name #
Ask an LLM
“Can I read a relationship's details when I know the relationship type name?”
“What does a link between two entities look like, fetched by relationship type name?”
Tell an agent
Get relationship {relationshipId} of type name {relationshipTypeName}.
Show details of link {relationshipId} under relationship type name {relationshipTypeName}.
DELETE /api/inventory-linking/v1/relationship-types/names/{relationshipTypeName}/relationship/{relationshipId} Delete a relationship by relationship type name · Delete Relationship by Type Name #
Ask an LLM
“Can I remove a link between two entities using the relationship type name?”
“Is deleting a relationship by type name permanent?”
Tell an agent destructive · confirm first
Delete relationship {relationshipId} of type name {relationshipTypeName}.
Remove the link {relationshipId} under relationship type name {relationshipTypeName}.
GET /api/inventory-linking/v1/relationship-types/{relationshipTypeId}/relationship/{relationshipId} Get a relationship by relationship type ID · Get Relationship by Type ID #
Ask an LLM
“Can I read a relationship's details using the relationship type ID?”
“Which call fetches one entity link when I have the relationship type ID?”
Tell an agent
Get relationship {relationshipId} of type ID {relationshipTypeId}.
Show details of link {relationshipId} under relationship type ID {relationshipTypeId}.
DELETE /api/inventory-linking/v1/relationship-types/{relationshipTypeId}/relationship/{relationshipId} Delete a relationship by relationship type ID · Delete Relationship by Type ID #
Ask an LLM
“Is it possible to delete an entity link when all I know is the numeric relationship type ID?”
“Which call unlinks two entities when I know the relationship type ID?”
Tell an agent destructive · confirm first
Delete relationship {relationshipId} of type ID {relationshipTypeId}.
Remove the link {relationshipId} under relationship type ID {relationshipTypeId}.

Documentation

📖
Documentation
https://developer.onetrust.com/onetrust/reference/attribute-management
📖
Documentation
https://developer.onetrust.com/onetrust/reference/activity-log
📖
Documentation
https://developer.onetrust.com/onetrust/reference/preferences-v2
📖
Documentation
https://developer.onetrust.com/onetrust/reference/banner
📖
Documentation
https://developer.onetrust.com/onetrust/reference/consent-receipts
📖
Documentation
https://developer.onetrust.com/onetrust/reference/applications
📖
Documentation
https://developer.onetrust.com/onetrust/reference/categorizations
📖
Documentation
https://developer.onetrust.com/onetrust/reference/domain-data
📖
Documentation
https://developer.onetrust.com/onetrust/reference/preferences
📖
Documentation
https://developer.onetrust.com/onetrust/reference/mobile-app-data
📖
Documentation
https://developer.onetrust.com/onetrust/reference/privacy-notice-v2
📖
Documentation
https://developer.onetrust.com/onetrust/reference/collection-points
📖
Documentation
https://developer.onetrust.com/onetrust/reference/catalog-search-v1
📖
Documentation
https://developer.onetrust.com/onetrust/reference/classification
📖
Documentation
https://developer.onetrust.com/onetrust/reference/custom-scan
📖
Documentation
https://developer.onetrust.com/onetrust/reference/carbon-management
📖
Documentation
https://developer.onetrust.com/onetrust/reference/audit-records
📖
Documentation
https://developer.onetrust.com/onetrust/reference/bulk-export
📖
Documentation
https://developer.onetrust.com/onetrust/reference/attachments
📖
Documentation
https://developer.onetrust.com/onetrust/reference/system-credentials
📖
Documentation
https://developer.onetrust.com/onetrust/reference/inventory-relationships-v2
📖
Documentation
https://developer.onetrust.com/onetrust/reference/model-management
📖
Documentation
https://developer.onetrust.com/onetrust/reference/tasks
📖
Documentation
https://developer.onetrust.com/onetrust/reference/groups-v2
📖
Documentation
https://developer.onetrust.com/onetrust/reference/assessment-actions
📖
Documentation
https://developer.onetrust.com/onetrust/reference/inventory
📖
Documentation
https://developer.onetrust.com/onetrust/reference/inventory-1
📖
Documentation
https://developer.onetrust.com/onetrust/reference/drop-management
📖
Documentation
https://developer.onetrust.com/onetrust/reference/incidents
📖
Documentation
https://developer.onetrust.com/onetrust/reference/document-controller
📖
Documentation
https://developer.onetrust.com/onetrust/reference/audits
📖
Documentation
https://developer.onetrust.com/onetrust/reference/initiatives
📖
Documentation
https://developer.onetrust.com/onetrust/reference/document-attachments
📖
Documentation
https://developer.onetrust.com/onetrust/reference/issues
📖
Documentation
https://developer.onetrust.com/onetrust/reference/control-implementations
📖
Documentation
https://developer.onetrust.com/onetrust/reference/training
📖
Documentation
https://developer.onetrust.com/onetrust/reference/contracts

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/onetrust:onetrust-inventory-relationships-v2-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

onetrust-inventory-relationships-v2-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Platform - Inventory Inventory Relationships V2 API
  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
  description: The Inventory APIs are used to manage relationships and link data within the inventory.
servers:
- url: https://{hostname}
  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:


# --- truncated at 32 KB (55 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/onetrust/refs/heads/main/openapi/onetrust-inventory-relationships-v2-api-openapi.yml