Skip to content
GET/api/{version}/vobjects/{object_name}/{object_record_id}/attachments/{attachment_id}/versions
NameDescription
Acceptapplication/json (default) or application/xml
NameDescription
{object_name}The object name__v field value (product__v, country__v, custom_object__c, etc.).
{object_record_id}The object record id field value.
{attachment_id}The attachment id field value.
curl -X GET -H "Authorization: {SESSION_ID}" \ https://myvault.veevavault.com/api/v26.1/vobjects/site__v/1357752909483/attachments/571/versions
{ "responseStatus": "SUCCESS", "data": [ { "version__v": 1, "url": "https://myvault.veevavault.com/api/v26.1/vobjects/site__v/1357752909483/attachments/571/versions/1" } ] }

On SUCCESS, the response lists the following metadata for each version of the requested attachment:

Metadata FieldDescription
version__vVersion of the attachment. Attachment versioning uses integer numbers beginning with 1 and incrementing sequentially (1, 2, 3,...). There is no concept of major or minor version numbers with attachments.
urlLink to the Retrieve Object Record Attachment Version Metadata endpoint to retrieve this attachment version.