Create Single Document Relationship
POST https://{{vaultDNS}}/api/{{version}}/objects/documents/:{doc_id}/versions/:{major_version}/:{minor_version}/relationships
https://developer.veevavault.com/api/21.3/#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
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Accept | string | ||
Content-Type | string |