{"_id":"5b9feefe87213200035e7553","project":"556dd000d0f4740d00380dfd","version":{"_id":"556dd000d0f4740d00380e00","project":"556dd000d0f4740d00380dfd","__v":14,"createdAt":"2015-06-02T15:47:12.583Z","releaseDate":"2015-06-02T15:47:12.583Z","categories":["556dd001d0f4740d00380e01","556e17023f11b01900a36978","556eff53fc3aa80d00e1aa67","557078cf910c090d00c43414","557078dc9ea7860d008b24ed","5571a533dbb3632100974aed","5571c4ed6d8908230061f39e","5575b9b10b81dc230069c981","5580706cbe698419008f2ca7","55a4117d53611017004387d4","58502492f744712700462b20","588279ccd63d450f00e1aa58","59e76819193831002803721e","5a6899886b88e400403c3ce5"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"category":{"_id":"556e17023f11b01900a36978","__v":8,"project":"556dd000d0f4740d00380dfd","version":"556dd000d0f4740d00380e00","pages":["556e1717c9d85a1900914cda","556e1772c9d85a1900914cdd","556e19fbc9d85a1900914cee","557053d2cc189a21001ab2ee","557062f79ea7860d008b24a0","557067329ea7860d008b24ae","5579a14a507db52f00907e79","55807040be698419008f2ca5"],"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-06-02T20:50:10.014Z","from_sync":false,"order":1,"slug":"applications","title":"Applications"},"user":"5a689524b4349e00302e7ff0","__v":4,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-09-17T18:14:22.645Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"method":"put","examples":{"codes":[{"code":"curl -X PUT {host}/applications/{id}/images \\\n  -H 'Content-Type: application/x-www-form-urlencoded' \\\n  -H 'Authorization: Basic XXX' \\\n  -F 'metadata={\"tag\":\"ID_DOCUMENT\", \"name\": \"id_document\"}' \\\n  -F file=:::at:::/Users/username/Downloads/file.png","language":"curl"}]},"results":{"codes":[]},"settings":"","auth":"required","params":[{"_id":"5b9feefe87213200035e7558","ref":"","in":"header","required":true,"desc":"","default":"application/x-www-form-urlencoded","type":"string","name":"Content-Type"},{"_id":"5b9feefe87213200035e7557","ref":"","in":"path","required":true,"desc":"Id of the application","default":"","type":"string","name":"id"},{"_id":"5b9feefe87213200035e7556","ref":"","in":"header","required":true,"desc":"Authorization is required for this API.  Please use a valid credentials.","default":"Basic XXX","type":"string","name":"Authorization"},{"_id":"5b9feefe87213200035e7555","ref":"","in":"body","required":true,"desc":"File to be uploaded","default":"","type":"file","name":"file"},{"_id":"5b9feefe87213200035e7554","ref":"","in":"body","required":true,"desc":"Object that contains the document name and a tag. Possible tag values: SIGNATURE_IMAGE, ID_DOCUMENT, DOCUMENT, OTHER.","default":"","type":"object","name":"metadata"}],"url":"/applications/:id/images"},"isReference":true,"order":10,"body":"","excerpt":"Upload a document to be attached to an application","slug":"upload-an-image","type":"endpoint","title":"Upload an Image"}

putUpload an Image

Upload a document to be attached to an application

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
required
string
Id of the application

Body Params

file:
required
file
File to be uploaded
metadata:
required
object
Object that contains the document name and a tag. Possible tag values: SIGNATURE_IMAGE, ID_DOCUMENT, DOCUMENT, OTHER.

Headers

Content-Type:
required
stringapplication/x-www-form-urlencoded
Authorization:
required
stringBasic XXX
Authorization is required for this API. Please use a valid credentials.

Examples