GET
/
file
/
{type}
/
{id}
/
upload
curl --request GET \
  --url https://api.helpyousponsor.com/v1/file/{type}/{id}/upload \
  --header 'Authorization: Bearer <token>'
{
  "type": "entity",
  "id": 1,
  "name": "John Doe",
  "program": {},
  "hysform": {},
  "entity": {},
  "program_id": "program1",
  "profileThumb": "http://example.com/thumb.jpg",
  "submit": [
    {}
  ],
  "donor": {},
  "slug": "5f4dcc3b5aa765d61d8327deb882cf99",
  "upload": {},
  "box_access_token": "access_token",
  "box_folder_id": "folder_id",
  "emailsets": false,
  "years": [
    {}
  ],
  "template_errors": [
    {}
  ]
}

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

Response

200
application/json
Successful operation
type
string
Example:

"entity"

id
integer
Example:

1

name
string
Example:

"John Doe"

program
object
hysform
object
entity
object
program_id
string
Example:

"program1"

profileThumb
string
Example:

"http://example.com/thumb.jpg"

submit
object[]
donor
object
slug
string
Example:

"5f4dcc3b5aa765d61d8327deb882cf99"

upload
object
box_access_token
string
Example:

"access_token"

box_folder_id
string
Example:

"folder_id"

emailsets
boolean
Example:

false

years
object[]
template_errors
object[]