profile/add-mugshot

Add a mugshot to a profile and return the photo model.

Usage

Requires POST.

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

Parameters

Name Type Description Required
album_id String The id of the album where the photo will be stored false
date Date The photo's date in JSON form false
description String The photo's description false
file Binary 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 The photo's title false

Returned Fields

Name Type Description
album_id String The id of the album where the photo is stored
content_type String The photo's original content type
created_on String The photo's creation date
date String The photo's date
description String The photo's description
guid String The old GUID
id String The photo's id
sizes PhotoImageSizeMap URLs to the photo's sizes
title String The photo's title
url String The api url of the photo
Note: Blank fields will not be returned to save bandwidth.

app004