profile/add-mugshot

Add a mugshot to a profile and return the photo model. Parameters can be posted as form data or JSON.

Usage

Requires POST.

https://www.geni.com/api/profile-122248213/add-mugshot

Parameters

Name Type Description Required
album_id String Id of the album where the photo will be stored false
date Date Photo's date in JSON form false
description String Photo's description false
file String Base64 encoded file to create photo from, unless photo_id is provided true
photo_id String If provided, it will be used as a mugshot photo false
title String Photo's title false

Returned Fields

Name Type Description
album_id String Id of the album where the photo is stored
content_type String Photo's original content type
created_on String Photo's creation date
date String Photo's date
description String Photo's description
guid String Old globally unique identifier
id String Photo's id
sizes PhotoImageSizeMap URLs to the photo's sizes
title String Photo's title
url String Photo's API URL
Note: Blank fields will not be returned to save bandwidth.

rails-1a-012