Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Is there a way to send JSON/String back to change the original data?

I set up Jira and now want to start by changing some of the details about my own profile. Right now I have the code to get the JSON with my profile information, can I somehow send that back and actually change the information with it?

$username = 'test';$password = 'test123';$curl_handle=curl_init();curl_setopt($curl_handle, CURLOPT_URL,'http://localhost:8080/rest/api/2/user?username=test');curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password");curl_setopt($curl_handle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);$query = curl_exec($curl_handle);$wantedString = json_decode($query);print_r($wantedString->name);$wantedString->name = 'test1';print_r($wantedString);


0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked in Jira Service Desk

Calling all Insight users, we need your help!

Hello Insight users,  As part of our (Mindville's) acquisition by Atlassian, our training team is looking to build some new Insight training materials. It would really helpful if you can ...

52 views 0 0
View question

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