Skip to content

Update an Attachment field by uploading a file. If you need to update more than one Attachment field, it is best practice to update in bulk with Update Object Records.

POST/api/{version}/vobjects/{object_name}/{object_record_id}/attachment_fields/{attachment_field_name}/file
NameDescription
Content-Typemultipart/form-data
Acceptapplication/json (default) or application/xml
curl -X POST -H "Authorization: {SESSION_ID}" \ https://myvault.veevavault.com/api/v25.1/vobjects/product__v/00P000000000202/attachment_fields/file__c/file \ --form 'file=@"Cholecap Prescribing Information.doc"'
{ "responseStatus": "SUCCESS", "data": [ { "responseStatus": "SUCCESS", "data": { "id": "00P000000000202", "url": "/api/v25.1/vobjects/product__v/00P000000000202" } } ] }