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

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

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

232 views 3 0
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