Handles the uploading of photos. The “file” method requires the photo to be passed via POST with multipart/form-data.


Name Description
userID required The user’s primary identifier.
blogID optional The primary identifier for the user or group’s site. (Same as siteID)
method optional Used when doing content uploads. Can be file, url, or path.
url optional The url of the photo
path optional The path of the photo
caption optional The caption of the photo
imageOrientation optional Used to rotate a photo. Options: rotateLeft, rotateRight, or rotate180
setAsAvatar optional If true, the newly uploaded photo is set to the user’s avatar.
output optional The response output format. Accepts JSON and XML.

Request Syntax


JSON Response