It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

HipChat: Example PUT for updating a user photo


I would like an example of a PUT to update a user photo using the hipchat api.  This request is not working:

PUT /v2/user/<username>  HTTP/1.1
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: 544e703b-d29a-69ce-04a8-51b47cb56405

	"photo" : {
		"_data" : "base64-encoded-data"

1 answer

1 accepted

1 vote
Answer accepted

Hi Dave, 

The following should work: 

  1. Create a JSON file with the base64 encoding of the image: 
    echo '{"photo": "' `base64 image.png` '"}' > image.json
  2. Upload the image as JSON: 
    curl -v -X PUT "https://<fqdn>/v2/user/2/photo?auth_token=<auth_token>" -H "Content-Type: application/json" --data @image.json


I hope this helps. 


Arbi - works perfectly.  Thank you!

Arbi Dridi Atlassian Team May 16, 2017

You're welcome, Dave. 

Please mark my reply as an answer when you get a chance. 


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Hipchat

Hipchat Cloud and Stride have reached End of Life (updated)

All good things come to an end - thanks to all our customers and partners who have been along the Hipchat and Stride journey with us.  As of Feb 15th 2019, Hipchat Cloud and Stride have reached ...

35,201 views 9 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you