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);
Online 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.