Difference between revisions of "API: File Uploads"

From Charitylog Manual
Jump to: navigation, search
Line 3: Line 3:
 
[[File:helpheader_small.png|right]]
 
[[File:helpheader_small.png|right]]
  
You can upload files against clients and referrals, these can only be uploaded to Amazon S3.
+
You can upload files against clients and referrals. Like the web application, these are stored on Amazon S3.
  
[POST] https<nowiki/>://api.dizions.co.uk/v2/clients/id/CLIENT_ID/uploads
+
[POST] https<nowiki/>://api.dizions.co.uk/v2/clients/id/CLIENT_ID/uploads
  
[POST] https<nowiki/>://api.dizions.co.uk/v2/referrals/id/REFERRAL_ID/uploads
+
[POST] https<nowiki/>://api.dizions.co.uk/v2/referrals/id/REFERRAL_ID/uploads
  
 
In the body you'll need the files along with user_visibility and group_visibility settings which are IDs (comma separated if there's more than one)
 
In the body you'll need the files along with user_visibility and group_visibility settings which are IDs (comma separated if there's more than one)
  
 
----
 
----

Revision as of 15:15, 26 August 2020

Go to API overview

Helpheader small.png

You can upload files against clients and referrals. Like the web application, these are stored on Amazon S3.

[POST] https://api.dizions.co.uk/v2/clients/id/CLIENT_ID/uploads
[POST] https://api.dizions.co.uk/v2/referrals/id/REFERRAL_ID/uploads

In the body you'll need the files along with user_visibility and group_visibility settings which are IDs (comma separated if there's more than one)