Skip to content

Update Object Records in bulk. You can use this endpoint to update user records (user__sys).

  • The maximum input size is 10 MB.
  • The values in the input must be UTF-8 encoded.
  • CSVs must follow the standard RFC 4180 format, with some exceptions.
  • The maximum batch size is 500.
PUT/api/{version}/vobjects/{object_name}
NameDescription
Content-Typetext/csv or application/json
Acceptapplication/json (default) or text/csv
X-VaultAPI-MigrationModeIf set to true, Vault bypasses entry criteria, entry actions, validation rules, and reference constraints when updating object records and allows you to update records to a specific state or state type. If a valid state or state type is not specified, the update job will fail. You must have the Record Migration permission to use this header.
NameDescription
{object_name}The name of the object, for example, product__v.

Include parameters as JSON or CSV. The following shows the required standard fields, but an Admin may set other standard or custom object fields as required in your Vault.

NameDescription
id
required
The object record ID. You can only update an object record ID once per request. If you provide duplicate IDs, the bulk update fails any duplicate records. Instead of id, you can use a unique field defined by the idParam query parameter.
{field_name}
optional
The field name to update on this object record. Use the Object Metadata API to retrieve all fields configured on objects. You can update any field with editable: true.
state__v
optional
Specifies the lifecycle state of the record when X-VaultAPI-MigrationMode is set to true. For example, draft_state__c.
state_label
optional
Specifies the lifecycle state type of the record when X-VaultAPI-MigrationMode is set to true. Use the format base:object_lifecycle: followed by the object state type. For example, base:object_lifecycle:initial_state_type. When providing both a state and state type, the state_label value must map to the provided state__v value. For example, if the state__v value is set to draft_state__c, the state_label value must already be set to draft in the destination Vault.
NameDescription
idParamOptional: To identify objects in your input by a unique field, add idParam={field_name} to the request endpoint. You can use any object field that has unique set to true in the object metadata. For example, idParam=external_id__v.
Download Input File

Additional Notes:

  • If an object is a parent in a parent-child relationship with another object, you cannot update its status__v field in bulk.
  • If an object has a field default configured, the value you use for that field overrides the default. Learn more about the order of operations for field defaults in Vault Help.
  • If Dynamic Security (Custom Sharing Rules) is configured on an object, you can add or remove users and groups on manually assigned roles. For example, editor__v.users. This will overwrite any users currently in the role.
  • You can also use this call to complete user tasks by setting the complete__v field to true.
  • The Edit permission is required on the object record when updating role assignments. This endpoint only supports updating standard roles (for example, viewer, editor, owner) and not custom roles. We recommend using the Assign Users & Groups to Roles on Object Records and the Remove Users & Groups from Roles on Object Records endpoints, which support all roles with better performance.
  • Vault does not update records and includes responseStatus of WARNING for operations that result in saving a record without making any changes. This means that the record’s Last Modified Date is not changed, triggers do not execute, and Vault does not create an event in the object record audit history.
  • When you create, add, or update user__sys, Vault synchronizes those changes with users across all Vaults to which that user is a member. This includes cross-domain Vaults.
  • To use this endpoint to update checkbox fields (Yes/No fields with the Show as checkbox setting) to a null value, you must use API v24.3+.
curl -X PUT -H "Authorization: {SESSION_ID}" \ -H "Content-Type: text/csv" \ -H "Accept: text/csv" \ --data-raw 'id,generic_name__vs,product_family__vs,abbreviation__vs,therapeutic_area__vs,manufacturer_name__v,regions__c 00P000000000602,Gluphosphate,gluphosphate__c,GLU,cardiology__vs,Veeva Labs,north_america__c 00P00000000K001,nitroprinaline__c,,NYA,veterinary__c,Veeva Labs,europe__c 00P00000000Q007,veniladrine sulfate,"veniladrine__c,vendolepene__c",VPR,psychiatry__vs,Veeva Labs,"north_america__c,south_america__c"' \ https://myvault.veevavault.com/api/v23.2/vobjects/product__v
{ "responseStatus": "WARNING", "warnings": [ { "warning_type": "NO_DATA_CHANGES", "message": "No changes in values - one or more records not updated" } ], "data": [ { "responseStatus": "SUCCESS", "data": { "id": "00P000000000602", "url": "/api/vv23.2/vobjects/product__v/00P000000000602" } }, { "responseStatus": "WARNING", "warnings": [ { "warning_type": "NO_DATA_CHANGES", "message": "No changes in values - record not updated" } ], "data": { "id": "00P00000000K001", "url": "/api/v23.2/vobjects/product__v/00P00000000K001" } }, { "responseStatus": "FAILURE", "errors": [ { "type": "INVALID_DATA", "message": "The resource [00P00000000Q007] does not exist" } ] } ] }

Vault returns a responseStatus for the request:

  • SUCCESS: This request executed with no warnings. Individual records may be failures.
  • WARNING: This request executed with at least one warning on an individual record. Other individual records may be failures.
  • FAILURE: This request failed to execute. For example, an invalid sessionId.

On SUCCESS or WARNING, Vault returns a responseStatus for each individual record input, which is one of the following:

  • SUCCESS: Vault successfully updated at least one field value on this record.
  • WARNING: Vault successfully evaluated this record and reported a warning. For example, Vault returns a warning for records that process with no changes (no-op).
  • FAILURE: This record could not be evaluated and Vault made no field value changes. For example, an invalid or duplicate record ID.

An API call which causes no operation to occur is called a no-op. For example, a call to update values on an object record which already has all of the requested values. The call succeeds and no operation occurs.

When the API processes a record with no changes, Vault:

  • does not update the record’s last_modified_date.
  • does not create an entry in the object record audit history.
  • does not execute SDK triggers.