Clone entities
This API enables you to clone an existing entity.
A new Entity ID is assigned to the new entity. The Entity type, attribute values, and relationships are copied from the original entity.
Request
Parameter | Required | Description | Example | |
---|---|---|---|---|
Headers |
Authorization
|
Yes | Information about the authentication access token in the format
Bearer <accessToken> . For more information, see
Authentication API. |
|
Query | valuesToCopy |
No | Enables you to specify the attributes values that must be copied, which can be OV or All. The default value is OV. | To clone an entity with only OV attribute values:
To clone an entity with all attribute values:
|
Body | attributeReplacementMapping |
No | The source entity attribute paths and new value for it in the cloned
entity, which can be any one of the following:
|
|
relationshipTypesToCopy |
No | The relationship types that must be copied into the cloned entity. | ||
crosswalks |
No | The crosswalks that must be set for a cloned entity. Default crosswalks are generated if you don’t specify crosswalks here. |
Response
JSON object with cloned entity.
Example 1: Clone an entity that has John as the first name and with a HasAddress relationship type, where John is the current source entity attribute value
Request
Response
Example 2: Clone an entity without a first name and a new last name
Request
Response