POST /users/{uid}/photo/{photoId}/{fileName}
Summary
- Method:
POST
- Response Code:
201
- Response Formats:
application/xml
application/json
- Since:
UForge 3.0
Uploads an avatar photo for an user.
- Requires Authentication:
true
- Entitlements Required:
user_profile_edit
uid
(required): the user name (login name) of theuser-object
fileName
(required): the file name of the photo to downloadphotoId
(required): the id of thelogo-object
The file to upload.
curl "https://uforge.example.com/api/users/{uid}/photo/{photoId}/{fileName}" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml"-H "Content-type: application/xml" --data-binary "@binaryFilePath"
user-api-resources
user-object
userAvatar-delete
userAvatar-download
userAvatar-downloadFile
userPassword-reset