Difference between revisions of "API relationships"
From Charitylog Manual
(Created page with "Go to API overview Relationships are created using the clients endpoint.") |
|||
Line 1: | Line 1: | ||
[[API Details|Go to API overview]] | [[API Details|Go to API overview]] | ||
− | Relationships are created using the clients endpoint. | + | Relationships are created using the clients endpoint. An example call would look like: |
+ | |||
+ | [PUT] https<nowiki/>://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' | ||
+ | } | ||
+ | ] |
Revision as of 14:10, 11 September 2020
Relationships are created using the clients endpoint. An example call 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' }
]