We are trying to get and update the avatar to an asset object.
But we also get a 401 error, the same token is working for other operations like updating the asset s attributes value.
https://api.atlassian.com/jsm/insight/workspace/<workspaceID>/v1/avatar/upload
Response ::
Hi @Diwakar Murthy
On the asset API endpoint on Cloud there is no avatar option, only icon, but only get options.
https://developer.atlassian.com/cloud/assets/rest/api-group-aql/#api-group-aql
You might have used the server API.
Hi @Marc -Devoteam- , we are referring to this document. And it is possible to update Avatar for assets via this Api. https://confluence.atlassian.com/jirakb/how-to-upload-avatars-on-assets-objects-using-rest-api-1128301129.htmlWonder why this needs admin access via api to update avatar. As we are able to update the avatar from front end as a user.
This is because the icons (avatars) in assets in Cloud are on global level, only admins can make changes here.
Icons (avatars) are not maintained on a schema level.
It looks like you're new here. Sign in or register to get started.