Difference between revisions of "API clients"

From Charitylog Manual
Jump to: navigation, search
Line 1: Line 1:
 
[[API Details|Go to API overview]]
 
[[API Details|Go to API overview]]
  
These are organisations/people that are people, e.g. clients, staff volunteers etc. These types of people are defined in the dictionary:
+
The records in the system are devided into types, which can be People types like clients, staff, volunteers, etc, or Organisation types like funders, schools, GP surgeries etc. The clients endpoint can be used to access any People type, e.g. if volunteers are type 7, a list of volunteers can be retrieved using:
 +
 
 +
[GET] https<nowiki/>://api.dizions.co.uk/v2/clients/type/7
 +
 
 +
The type can be specified when creating records, e.g. if staff are type 8, a new staff record can be created like this:
 +
 
 +
[POST] https<nowiki/>://api.dizions.co.uk/v2/clients
 +
first_name: John
 +
surname: Smith
 +
type: 8
  
[GET] https<nowiki/>://api.dizions.co.uk/v2/dictionary/client_type
 
  
These can then be applied as a filter, e.g. if volunteers are type 7, a list of volunteers can be retrieved using:
+
These types of people are defined in the dictionary:
  
  [GET] https<nowiki/>://api.dizions.co.uk/v2/clients/type/7
+
  [GET] https<nowiki/>://api.dizions.co.uk/v2/dictionary/client_type

Revision as of 13:13, 24 February 2022

Go to API overview

The records in the system are devided into types, which can be People types like clients, staff, volunteers, etc, or Organisation types like funders, schools, GP surgeries etc. The clients endpoint can be used to access any People type, e.g. if volunteers are type 7, a list of volunteers can be retrieved using:

[GET] https://api.dizions.co.uk/v2/clients/type/7

The type can be specified when creating records, e.g. if staff are type 8, a new staff record can be created like this:

[POST] https://api.dizions.co.uk/v2/clients
first_name: John
surname: Smith
type: 8


These types of people are defined in the dictionary:

[GET] https://api.dizions.co.uk/v2/dictionary/client_type