Hello, everyone. For some reason API request - PATCH https://api.mypurecloud.jp/api/v2/users/{userID}, which worked earlier, stopped working. With this request I was adding extension to a user. In the logs I have reflected the body of the request, the response and the error. Could you please tell me what happened? Maybe I need some additional parameters of the request?
[2025-06-20 10:18:41.111356] local.ERROR:
❌ Unexpected error during request execution {
"HTTP status":"500",
"URL":"https://api.mypurecloud.jp/api/v2/users/{userID}",
"Method":"PATCH",
"Body request":"Array
(
[addresses] => Array
(
[0] => Array
(
[mediaType] => PHONE
[type] => WORK
[extension] => 1003
)
)
[version] => 625
)
",
"Server response":"Array
(
[message] => The requested operation failed with status 500
[code] => internal.server.error
[status] => 500
[contextId] => e542c50b-9c3b-4201-ac0e-448375d724ba
[details] => Array
(
)
[errors] => Array
(
)
)
",
"Description":"Server error: `PATCH https://api.mypurecloud.jp/api/v2/users/{userID}` resulted in a `500 Internal Server Error` response:
{\"message\":\"The requested operation failed with status 500\",\"code\":\"internal.server.error\",\"status\":500,\"contextId\":\"e54 (truncated...)
"} []
#PlatformAPI
------------------------------
We proudly support Ukraine!
------------------------------