---
title: "Copy Inventory"
method: POST
path: "/api/inventory/v2/inventories/{schemaName}/{id}/copy"
tags: ["Inventory"]
---

# Copy Inventory

`POST /api/inventory/v2/inventories/{schemaName}/{id}/copy`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/api/inventory/v2/inventories/{schemaName}/{id}/copy`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `INVENTORY`, `COPY_INVENTORY`

Use this API to create a copy of an existing inventory.

## Path parameters

- `schemaName` 'processing-activities' | 'vendors' | 'assets' | 'entities', required
- `id` string, uuid, required

## Query parameters

- `inheritFromMaster` boolean
- `copyRelated` boolean
- `copyAsChild` boolean

## Request body

- Inventory
  - `id` string, uuid: Unique identifier of the inventory item
  - `organization` ObjectReference
    - `id` string, uuid
    - `value` string
    - `valueKey` string
  - `canViewDetails` boolean: Flag indicating if the current user can view inventory details
  - `name` string: Name of the inventory
  - `riskLevel` 'ZERO' | 'LOW' | 'MEDIUM' | 'HIGH' | 'VERY_HIGH': Risk level of the inventory
  - `riskScore` number: Risk score of the inventory
  - `status` KeyNameDto
    - `key` string, required: The key identifier
    - `name` string: The display name associated with the key
  - `externalId` string: External identifier of the inventory
  - `createdDate` string, date-time: Date and time when the inventory was created
  - `createdBy` ObjectReference
    - `id` string, uuid
    - `value` string
    - `valueKey` string
  - `updatedDate` string, date-time: Date and time when the inventory was last updated
  - `updatedBy` ObjectReference
    - `id` string, uuid
    - `value` string
    - `valueKey` string
  - `selectFields` object: Map of select fields with their values
  - `textFields` object: Map of text fields with their values
  - `number` integer: Sequence number of the inventory
  - `isParent` boolean: Flag indicating if this inventory is a parent
  - `inheritFromMaster` boolean: Flag indicating if this inventory inherits from master
  - `parentInventoryId` string, uuid: ID of the parent inventory
  - `masterRecord` string: Reference to the master record
  - `workflow` ObjectReference
    - `id` string, uuid
    - `value` string
    - `valueKey` string
  - `workflowStage` InventoryWorkflowStageDto
    - `stage` ObjectReference
      - `id` string, uuid
      - `value` string
      - `valueKey` string
    - `badgeColor` string: Color code for the workflow stage badge
  - `inherentRiskLevel` 'ZERO' | 'LOW' | 'MEDIUM' | 'HIGH' | 'VERY_HIGH': Inherent risk level of the inventory
  - `inherentRiskScore` number: Inherent risk score of the inventory
  - `targetRiskLevel` 'ZERO' | 'LOW' | 'MEDIUM' | 'HIGH' | 'VERY_HIGH': Target risk level of the inventory
  - `targetRiskScore` number: Target risk score of the inventory
  - `totalHierarchyRiskLevel` 'ZERO' | 'LOW' | 'MEDIUM' | 'HIGH' | 'VERY_HIGH': Total hierarchy risk level of the inventory
  - `totalHierarchyRiskScore` number: Total hierarchy risk score of the inventory
  - `totalHierarchyInherentRiskLevel` 'ZERO' | 'LOW' | 'MEDIUM' | 'HIGH' | 'VERY_HIGH': Total hierarchy inherent risk level of the inventory
  - `totalHierarchyInherentRiskScore` number: Total hierarchy inherent risk score of the inventory
  - `totalHierarchyTargetRiskLevel` 'ZERO' | 'LOW' | 'MEDIUM' | 'HIGH' | 'VERY_HIGH': Total hierarchy target risk level of the inventory
  - `totalHierarchyTargetRiskScore` number: Total hierarchy target risk score of the inventory
  - `inventoryDeleteType` 'HARD' | 'SOFT' | 'NONE': Type of deletion for the inventory
  - `deletedReason` string: Reason for deletion of the inventory
  - `deletedBy` string, uuid: ID of the user who deleted the inventory
  - `deletedDate` string, date-time: Date and time when the inventory was deleted
  - `isGlobalAttributeConfigurationEnabled` boolean: Flag indicating if global attribute configuration is enabled
  - `sourceId` string, uuid: ID of the source inventory
  - `integrationWorkflowId` string: ID of the integration workflow
  - `sourceType` string: Type of the source inventory
  - `reviewType` string: Type of review for the inventory
  - `similarRecord` SimilarRecordDetail
    - `id` string, uuid
    - `name` string
    - `organization` ObjectReference
      - `id` string, uuid
      - `value` string
      - `valueKey` string
    - `location` ObjectReference
      - `id` string, uuid
      - `value` string
      - `valueKey` string
    - `hasAccessToSimilarRecord` boolean
  - `detailsUri` string: URI for viewing the inventory details page
  - `redacted` string[]: Field names that should be redacted when user lacks advanced view access
  - `editable` boolean
  - `deletable` boolean

## Response `200`

OK - Inventory successfully copied.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500`: Internal Server Error

---

[API](https://skmtc.dev/onetrust/apis/privacy-automation-data-mapping-automation.md) - [All operations](https://skmtc.dev/onetrust/apis/privacy-automation-data-mapping-automation/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/privacy-automation-data-mapping-automation/revisions/daead5d9fad6?raw)
