Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.21 KB

userAvatar_upload.rst

File metadata and controls

52 lines (35 loc) · 1.21 KB

userAvatar_upload

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.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: user_profile_edit

URI Parameters

  • uid (required): the user name (login name) of the user-object
  • fileName (required): the file name of the photo to download
  • photoId (required): the id of the logo-object

HTTP Request Body Parameters

The file to upload.

Example Request

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