API relationships

From Charitylog Manual
Revision as of 14:15, 11 September 2020 by Msim (talk | contribs)
Jump to: navigation, search

Go to API overview

Relationships are created using the clients endpoint, passing the id numbers of the 2 clients in the URL. An example call to create a relatiionship between person 37 and person 59 would look like:

[PUT] https://api.dizions.co.uk/v2/clients/relationship_details/set/37/59

[

 {
     "id": "44",
     "relation_first_to_second": "6",
     "relation_second_to_first": "5",
     "major": "Y"
 }

]