Difference between revisions of "API: Creating Records"
From Charitylog Manual
Emilewhite (talk | contribs) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
[[API Details| Go to API overview]] | [[API Details| Go to API overview]] | ||
− | + | To create a new record, you will need to do what is referred to as a [PUT] request. For the [PUT] request to work, it relies on having fields within the body of the record. Most of of those will be mandatory fields. | |
− | |||
− | To create a record you need to do a [PUT] request, | ||
Create a client: | Create a client: | ||
Line 9: | Line 7: | ||
[PUT] https<nowiki/>://api.dizions.co.uk/v2/clients | [PUT] https<nowiki/>://api.dizions.co.uk/v2/clients | ||
− | Create a client | + | Create a client using an external ID (e.g if a client is also recorded in another system): |
[PUT] https<nowiki/>://api.dizions.co.uk/v2/clients/external_id/EXTERNAL_ID | [PUT] https<nowiki/>://api.dizions.co.uk/v2/clients/external_id/EXTERNAL_ID | ||
− | Create a referral (Record a Contact): | + | Create a referral (Also known as Record a Contact): |
[PUT] https<nowiki/>://api.dizions.co.uk/v2/referrals | [PUT] https<nowiki/>://api.dizions.co.uk/v2/referrals |
Latest revision as of 16:44, 29 November 2024
To create a new record, you will need to do what is referred to as a [PUT] request. For the [PUT] request to work, it relies on having fields within the body of the record. Most of of those will be mandatory fields.
Create a client:
[PUT] https://api.dizions.co.uk/v2/clients
Create a client using an external ID (e.g if a client is also recorded in another system):
[PUT] https://api.dizions.co.uk/v2/clients/external_id/EXTERNAL_ID
Create a referral (Also known as Record a Contact):
[PUT] https://api.dizions.co.uk/v2/referrals
Create a due contact (incomplete action) for a referral:
[PUT] https://api.dizions.co.uk/v2/due_contacts/referral/REFERRAL_ID