What is the request format for rest/api/2/avatar/{type}/temporary

DJ Marcaida February 11, 2015

Is it a Web URL? local file? Multipart? Anyone know?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Andreas Ebert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2015

Afaik, filename and size are part of the url query, and the request body contains the binary image data without any further formatting.

DJ Marcaida February 11, 2015

Will try this out, thanks!

DJ Marcaida February 11, 2015

If it's not too much to ask, can you show a sample?

Andreas Ebert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2015

I don't have an example, but I suggest you do the following: 1. In the browser of your choice open your own profile in a running JIRA. 2. Open the web-developer tools. 3. Open the network tab. 4. In your JIRA profile: add a new avatar. 5. In the network tab you will see a POST request to a URL containing "temporary". There you can see how JIRA itself is calling the REST resource.

DJ Marcaida February 12, 2015

I did not know about this tool, thanks for pointing it out. However, if I add an avatar from my profile, It uses rest/api/2/user/avatar/temporary. Also, it doesn't show the request payload for the image upload.

TAGS
AUG Leaders

Atlassian Community Events