Skip to content

Bulk Update Document Templates

Update from 1-500 document templates to your Vault.

PUT/api/{version}/objects/documents/templates
NameDescription
Content-Typeapplication/json or text/csv
Acceptapplication/json (default) or application/xml

You can update the following fields on document templates:

NameDescription
name__vChange the name of an existing document template.
label__vChange the label of an existing document template. This is the name users will see among the available binder templates in the UI.
active__vSet to true or false to indicate whether or not the document templates should be set to active, i.e., available for selection when creating a document.

See Bulk Create Document Templates for example inputs, which are the same as those used in this request.

curl -X PUT -H "Authorization: {SESSION_ID}" \
-H "Content-Type: text/csv" \
--data-binary @"C:\Vault\Templates\update_document_templates.csv" \
https://myvault.veevavault.com/api/v17.3/objects/documents/templates
{
   "responseStatus":"SUCCESS",
   "data":[
      {
         "responseStatus":"SUCCESS",
         "name":"claim_document_template__c"
      },
      {
         "responseStatus":"SUCCESS",
         "name":"clinical_study_document_template__c"
      },
      {
         "responseStatus":"FAILURE",
         "errors":[
            {
               "type":"INVALID_DATA",
               "message":"Error message describing why this template was not created."
            }
         ]
      }
   ]
}