Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Unable to install addon via UPM

import requests
from requests.auth import HTTPBasicAuth
auth = HTTPBasicAuth('username','password')
url = 'http://localhost:2990/jira/rest/plugins/1.0?'
# disable xsrf check
headers = {'X-Atlassian-Token':'no-check'}

#we first GET the URL to get the UPM Token
r = requests.get(url,auth=auth)
upm_token = r.headers.get('upm-token')
files = {'plugin': open('upraisepeople.server-1.0.8.jar','rb')}
# shove that UPM token at the end of the url

I have above code for installing addon via python script but I cannot find upm-token in the headers. Any clue ..?

1 answer

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

115 views 6 6
Join discussion

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