REST API - Update License Key



I am trying to update the license key for the Confluence plugins using the RestApi,

however I am getting a 403 error.  


I am the admin and have validated the base url.

The code is :

- name: Apply Licenses file
url: "https://confluence/plugins/1.0/"
method: PUT
user: adminusername
password: adminpassword
force_basic_auth: yes
body: "{\"rawLicense\":\" {{ LIC_KEY }} \"} | to_json"
HEADER_Accept: "application/json"
HEADER_Content-Type: "application/vnd.atl.plugins+json"
#status_code: 200,202
validate_certs: False
register: plugin_license_state

where LIC_KEY is a string that contains the license key.



0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Kesha Thillainayagam
Posted Mar 05, 2018 in Confluence

We want to know what templates you're using in Confluence!

Hi Community!  My name is Kesha (kay-sha not Ke$ha) and I'm on the Confluence Product Marketing team. We are trying to understand and improve template use cases in Confluence, and are intereste...

2,293 views 21 4
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot