Create Object Records

POST https://{{vaultDNS}}/api/{{version}}/vobjects/:{object_name}

https://developer.veevavault.com/api/23.2/#Create_Object_Record

You can use this endpoint to create User Tasks or User (user__sys) records. Learn more about User Tasks and the User & Person Objects in Vault Help.

  • The maximum input file size is 1GB.
  • The values in the input must be UTF-8 encoded.
  • CSVs must follow the standard format.
  • The maximum batch size is 500.

Note that you can only add relationships on object fields using ID values or based on a unique field on the target object. This API does not support object lookup fields

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-TypestringCan be text/csv or application/json
AcceptstringCan be text/csv or application/json
X-VaultAPI-MigrationModebooleanIf set to true, Vault bypasses entry criteria, entry actions, validation rules, and reference constraints when creating object records and allows you to create records in a specific state or state type. If a valid state or state type is not specified, records will be created in their initial state. You must have the Record Migration permission to use this header.
X-VaultAPI-UnchangedFieldBehaviornullWhen upserting, set to IgnoreSetOnCreateOnly (default) to ignore values given for the Object Type field and parent object fields if the record already exists and the value has not changed. Set to NeverIgnore to enforce edit permission for all fields in the payload, regardless of whether or not the value has changed. Read-only fields such as Object Type will fail even if the value has not changed. Set to AlwaysIgnore to ignore fields that match between the record and payload values during upsert.