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

Uploading Plugin Through Rest API

I am following this document:

Though I can't seem to get it working.

I am able to get the token from the first get request but in the second request, I can't get it to work.

I am able to do this:

In your request:

  1. Again use the actual host name and port and path for your target Atlassian application.
  2. The token value should be the value of the upm-token header you just received.
  3. In the request, set the Accept header to: "application/json"
  4. Set the Content-Type for the data to: "application/vnd.atl.plugins.install.uri+json"

On step 5, I'm asked to put "pluginUri": "${plugin-xml-url}" in the body.

Replace plugin-xml-url with the hosted location of your descriptor file

What kind of value is this? Anyone have an example? How do I locate this value?

Also no where does it ever mention, the actual .jar or .obr file I need to attach to upload.

I'm using python and this is what I have:

upload_headers = {
'Authorization': 'Basic XXXXXXXX',
'Content-Type': 'application/vnd.atl.plugins.install.uri+json',
'Accept': 'application/json'

# file_location = location to .jar file
files = {
'file': open(file_location, 'rb')
# I've tried other urls like the one here but it doesn't seem to work either.
data = {
'pluginUri': jira_url + '/plugins/servlet/upm',
'pluginName': plugin_name
upload_url = jira_url + '/rest/plugins/1.0/?token=xxxxxxxxxxx'
upload_response =,
files=files, data=data, headers=upload_headers)

Can someone help here? Thanks.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Software

Metrics Fun: 2019 in Review

Hello, Atlassian Community!  I thought it would be fun to do something different for my teams' last retrospective of 2019 so I'm planning to do a "year in review" with info-graphics.  Wha...

1,886 views 10 14
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