Skip to content

Deep Copy copies an object record, including all of the record’s related child and grandchild records. A single deep copy cannot copy more than 10,000 records at a time.

See Copying Object Records for details on required access permissions.

You can perform a regular copy an object record using the create object endpoint with the source_record_id field.

POST/api/{version}/vobjects/{object_name}/{object_record_ID}/actions/deepcopy
NameDescription
Content-Typeapplication/json or text/csv
Acceptapplication/json (default) or application/xml
NameDescription
{object_name}The name of the parent object to copy. For example, product__v.
{object_record_ID}The ID of the specific object record to copy.

In the body, pass in any fields to override the copied fields. For example, add the abbreviation__c field to override the copied value for abbreviation.

curl -X POST -H "Authorization: {SESSION_ID}" \ -H "Content-Type: application/json" \ https://myvault.veevavault.com/api/v18.3/vobjects/product__v/00P000000000202/actions/deepcopy
{ "responseStatus": "SUCCESS", "job_id": 26001, "url": "/api/v18.3/services/jobs/26001" }