curl --request POST \
--url https://api.helpyousponsor.com/v1/file/{type}/{id}/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file
{
"message": "Successful"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Type of the file (entity or donor)
ID of the entity or donor
File to be uploaded
The body is of type object
.
Successful operation
The response is of type object
.
curl --request POST \
--url https://api.helpyousponsor.com/v1/file/{type}/{id}/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file
{
"message": "Successful"
}