files
Upload a File
Upload a file with a given purpose to Chariot as multipart/form-data.
post/v1/files
Request
- Base URLhttps://sandboxapi.givechariot.com
- URLhttps://sandboxapi.givechariot.com/v1/files
- AuthHTTP bearer
Headers
Idempotency-Keystring
Request body multipart/form-data
Example request
{
"purpose": "manual_upload",
"description": "Donation receipt for donation to the nonprofit"
}Response
The Idempotency-Key had already stored this file, so the existing File is returned and nothing was uploaded again.
Example response
{
"id": "file_01j8rs605a4gctmbm58d87mvsj",
"file_name": "donation_receipt.pdf",
"description": "Donation receipt for donation to the nonprofit",
"purpose": "manual_upload",
"content_type": "application/pdf",
"size_bytes": 20841,
"created_at": "2020-01-31T23:59:59Z",
"updated_at": "2020-01-31T23:59:59Z"
}Changes
No recorded changes to this operation across all 12 revisions of this API.