Create Single Document Relationship

POST https://{{vaultDNS}}/api/{{version}}/objects/documents/:{doc_id}/versions/:{major_version}/:{minor_version}/relationships

https://developer.veevavault.com/api/22.2/#create-single-document-relationship

Create a new relationship on a document.

If you need to create a relationship on more than one document, it is best practice to use the bulk API.

Request Body

[{"name"=>"target_doc_id__v", "value"=>"", "datatype"=>"null"}, {"name"=>"relationship_type__v", "value"=>"", "datatype"=>"null"}, {"name"=>"target_major_version__v", "value"=>"", "datatype"=>"null"}, {"name"=>"target_minor_version__v", "value"=>"", "datatype"=>"null"}]

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Acceptstring
Content-Typestring