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

Setting jira.title and jira.baseUrl using the JIRA REST API


I am trying to update the baseUrl (jira.baseurl) and Title (jira.title) vias the JIRA REST API and cannot complete this task

The API guide I'm using is and I can successfully update other settings using the same credentials (a JIRA user in the jira-administrators group)

The commandline API calls I've tried are:

curl -i -u administrator:xxxx -X PUT --data '{ "baseUrl", "https://newserver/jira" } ' -H "Content-Type=application/json"https://server/jira/rest/api/2/settings/baseUrl 

curl -i -u administrator:xxxx -X PUT -d 'https://newserver/jira'https://server/jira/rest/api/2/settings/baseUrl 

Could anyone please advise me on the correct API calls.

Many Thanks



1 answer

Hi Chris,

You can try the following query

curl -i -u admin:admin -X PUT --data "https://newserver/jira" -H "Content-Type: application/json" https://server/jira/rest/api/2/settings/baseUrl



Why just a string? That's not proper JSON, haha.

Suggest an answer

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

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

230 views 1 2
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