Skip to content
POST/api/{version}/objects/documents/{doc_id}/versions/{major_version}/{minor_version}/events
NameDescription
Content-Typeapplication/x-www-form-urlencoded
Acceptapplication/json (default) or application/xml
NameDescription
{doc_id}The document id field value.
{major_version}The document major_version_number__v field value.
{minor_version}The document minor_version_number__v field value.
NameDescription
event_type__v
required
The event type. For example, distribution__v.
event_subtype__v
required
The event subtype. For example, approved_email__v.
classification__v
required
The event classification. The available classifications vary based on the event_subtype__v.
external_id__v
conditional
Set an external ID value on the document event. This parameter may be required depending on the document type, subtype, and classification.

Additional fields may be required depending on the document event type, subtype, and classification. Use the Retrieve Document Event Subtype Metadata endpoint to retrieve metadata for the required fields.

curl -X POST -H "Authorization: {SESSION_ID}" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "event_type__v=distribution__v" \ -d "event_subtype__v=approved_email__v" \ -d "classification__v=download__v" \ -d "external_id__v=1234" \ -d "user_email__v=vern@veeva.com" \ https://myvault.veevavault.com/api/v23.2/objects/documents/72/versions/0/2/events
{ "responseStatus": "SUCCESS" }

On SUCCESS, Vault logs the document event.