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
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
Why just a string? That's not proper JSON, haha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.