Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Chris Kinsella
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 19, 2016

Hi

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 ishttps://docs.atlassian.com/jira/REST/7.2.2/#api/2/settings 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

 

Chris

1 answer

1 vote
Peter Geshev
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.
December 20, 2016

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

Regards,

Peter

Justin Plute
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 28, 2019

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

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events