-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Core - Content REST APIs, User - Profile
-
None
-
1
-
14
Issue Summary
Admin functionality that allows them to either update user's profile picture using REST API. Currently, users are only able to use the GET methods for user data.
Expected Results
PUT /rest/user/<user ID or name>
Actual Results
only GET /rest/user is available.
http://localhost:8090/rest/api/user?username=candacestark
"type": "known", "username": "candacestark", "userKey": "2c9dccb16f68e1e6016f6d26ed060000", "profilePicture": { "path": "/download/attachments/1114116/user-avatar", "width": 48, "height": 48, "isDefault": false }, "displayName": "Candace Stark", "_links": { "base": "http://localhost:8090", "context": "", "self": "http://localhost:8090/rest/api/user?key=2c9dccb16f68e1e6016f6d26ed060000" }, "_expandable": { "status": "" } }
Workaround
According to Remote Confluence methods:
The XML-RPC and SOAP APIs are deprecated since Confluence 5.5.
Confluence has a new REST API that is progressively replacing our existing APIs. We recommend plugin developers use the new REST APIs where possible.
While there isn't a REST API replacement for the addProfilePicture method, it may be possible to use it via the old XML-RPC and SOAP APIs on newer versions of Confluence. However, as these APIs are deprecated, they may be removed in future versions of Confluence. ![]()
- mentioned in
-
Page Loading...