POST
/
file
/
{type}
/
{id}
/
upload
curl --request POST \
  --url https://api.helpyousponsor.com/v1/file/{type}/{id}/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data'
{
  "message": "Successful"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

type
string
required

Type of the file (entity or donor)

id
integer
required

ID of the entity or donor

Body

multipart/form-data
File to be uploaded
file
file

File to be uploaded

Response

200
application/json
Successful operation
message
string
Example:

"Successful"