有没有办法将 JSON/String 发回以更改原始数据?

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

我设置了 Jira,现在想从更改我个人资料的一些细节开始。现在我有代码来获取 JSON 和我的个人资料信息,我可以以某种方式将其发回并更改信息吗?

$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);

对于任何想知道我使用 Jira Rest 的人API

https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/customFieldOption-getCustomFieldOption

根据官方文档,Api 支持更改用户。

https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/user-updateUser

或者如果您想更改当前登录用户的数据:

https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/myself-updateUser