setProfilePhoto
- Home
- Multimedia
- UgcPhoto
- setProfilePhoto
setProfilePhoto
Sets the profile picture for a given user or group.
Parameters
| Name | Description |
| blogID optional | The primary identifier for the user or group’s site. (Same as siteID) |
| userID optional | The user’s primary identifier. |
| photoID optional | The photo’s primary identifier |
| photoPath optional | The path to the image on the internal filesystem |
| photoUrl optional | External url of the image |
| output optional | The response output format. Accepts JSON and XML. |
Request Syntax
| https://services.onesite.com/rest/ugcPhoto?action=setProfilePhoto&photoID=160546016&userID=229928503&devkey=[devkey] |
JSON Response
|
1 2 3 4 5 6 |
{ "service":"ugcPhoto", "action":"setProfilePhoto", "code":1, "message":"Profile picture successfully changed." } |
Service Information
| Service | ugcPhoto |
| Method | setProfilePhoto |
| Type | REST |
| Response Types | JSON, XML |