URI: https://api.onlinephotosubmission.com/api/photos
HTTP Method: POST
Required Headers:
X-Auth-Token (see: Authentication)
Content-Type: application/json
Accept: application/json
Description: Accepts a Base64 Encoded JPEG image and stores it in CloudCard Online Photo Submission
Example Request Body
{ "person": { "id": 10 }, "encodedImage":"/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8KCwkMEQ8SEhEPERATFhwXExQaFRARGCEYGhwdHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCACmAKYDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwCcUuKUCjvVHCJjikpaPwoAbS0uMUUAJSYpxpDQAlJVPUdWsNPUm6uFXHbqazbfxbok84iW4ZQTgMykDPpQ5JDUWzco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xQSIPwpsh2p6Zo71HI2ZMdhQBHcOVTjjDYops2Shx/fooArvIyTmMHIxlfarNk5ZnY9SefyoooAtNyajoooAcDkYprqMUUUAVp4gwIrOubKNwdwBFFFA0QRwXVrza3TIP7h5WrVlrEn2gW9zGpc9GTpRRS3Wo+h6Nrnxz8Wx+CYfB6zsqRK0cl2pxPLH0CF+uB0z1I615Xcaxe3JKqViX/ZHP50UVnCKV7Gs5t2TYWsOTlmJJ6k1r21uuKKK1Rky0LaM9RSizhPVRRRQIkt4IoARGuAetOzk80UUCFHXJqBTmQmiigBoP7rPqxooooA//9k=" }
Example Response Body
{ "aspectRatio": 1.0, "classifications": [], "domainClass": "com.campuscardtools.myphotoid.Photo", "helperBotReviewed": false, "id": 1472, "isAspectRatioCorrect": true, "links": { "bytes": "https://s3.amazonaws.com/test-photos.onlinephotosubmission.com/n0897bjli3b9dehl21714k81dm5f4af18qe21krcvi1sq78vnq4n94d1b260do98.jpg" }, "lowestClassification": null, "originalPhoto": null, "person": { "id": 10, "username": "cardholder@sharptop.co", "email": "cardholder@sharptop.co", "identifier": "112werfg", "organization": { "id": 2, "name": "SharpTop Company", "photoRequirements": [...], "identifier": "a4ced449-86e0-453c-8649-0be73a411ebb", "badPhotoThreshold": 0.4, "goodPhotoThreshold": 0.8 }, "additionalPhotos": [], "additionalPhotoRequired": false, "previouslyApprovedPhoto": { "aspectRatio": 1.0, "classifications": [ { "id": 465, "score": 0.9502, "requirementName": "Helper Bot" } ], "domainClass": "com.campuscardtools.myphotoid.Photo", "helperBotReviewed": true, "id": 1282, "isAspectRatioCorrect": true, "links": { "bytes": "https://s3.amazonaws.com/test-photos.onlinephotosubmission.com/q8jrpg5i7f6qmpfa6s4c78adm50turcl1gi6iefivj0ek4918s5uus8hli578vbt.jpg" }, "lowestClassification": 0.9502, "originalPhoto": { "id": 1274, "publicKey": "jbgpkoc8qq65mstb6n5s5m7ps3tvot8e27920dlr3do3ioomh8h9km9d0oo59fpd", "links": { "bytes": "https://s3.amazonaws.com/test-photos.onlinephotosubmission.com/jbgpkoc8qq65mstb6n5s5m7ps3tvot8e27920dlr3do3ioomh8h9km9d0oo59fpd.jpg" } }, "person": {...}, "personHasApprovedPhoto": true, "publicKey": "q8jrpg5i7f6qmpfa6s4c78adm50turcl1gi6iefivj0ek4918s5uus8hli578vbt", "status": "DOWNLOADED", "version": 4 } }, "personHasApprovedPhoto": true, "publicKey": "n0897bjli3b9dehl21714k81dm5f4af18qe21krcvi1sq78vnq4n94d1b260do98", "status": "PENDING", "version": 0 }