Upload an Image

  • Available in Sandbox
  • Available in Production
  • Available to Advisors
  • Supported

Upload a document to be attached to an application.

PUT

Headers

Header Required Values/Example Default
Content-Type Required application/x-www-form-urlencoded
Authorization Required Basic XXX

Parameters

Parameter Type Param Type Required Values/Example Default
id Path Int Required 1234
Id of the application
file Body File Required /Users/username/Downloads/file.png
File to be uploaded
metadata Body Object Required {"tag":"ID_DOCUMENT", "name": "id_document"}
Object that contains the document name and a tag. Possible tag values: SIGNATURE_IMAGE, ID_DOCUMENT, DOCUMENT, OTHER.

Code Example

curl -X PUT "https://api.tradier.com/v2/applications/{id}/images" \
     -H 'Authorization: Basic <TOKEN>' \
     -H 'Accept: application/json' \
     -H 'Content-Type: application/x-www-form-urlencoded' \
     -F 'metadata={"tag":"ID_DOCUMENT", "name": "id_document"}' \
     -F file=@/Users/username/Downloads/file.png

Response