Create Single Document Relationship

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

https://developer.veevavault.com/api/23.3/#Create_Document_Relationship

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

Create a new relationship on a document.

You cannot create or delete standard relationship types. Examples of standard relationship types include Based On and Original Source. Learn about Document Relationships in Vault Help.

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