Skip to content

Delete a relationship from multiple documents.

  • 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 1000.
DELETE/api/{version}/objects/documents/relationships/batch
NameDescription
Content-Typeapplication/json (default) or text/csv
Acceptapplication/json (default) or text/csv

Create a CSV or JSON input file.

NameDescription
idThe ID of the relationship to delete.
curl -X DELETE -H "Authorization: {SESSION_ID}" \ -H "Content-Type: text/csv" \ -H "Accept: text/csv" \ --data-binary @"C:\Vault\Document Relationships\document_relationships.csv" \ https://myvault.veevavault.com/api/v17.2/objects/documents/relationships/batch
{ "responseStatus": "SUCCESS", "data": [ { "responseStatus": "SUCCESS", "id": 10 }, { "responseStatus": "SUCCESS", "id": 11 }, { "responseStatus": "FAILURE" "errors": [ { "type": "INVALID_DATA", "message": "Error message describing why this relationship was not deleted." } ] } ] }

On SUCCESS, Vault returns the relationship IDs of the deleted relationships.