PHP
$data = array (
'role' => 0,
'name' => 'string',
'permissions' =>
array (
),
);
$context = stream_context_create([
'ssl'=>['verify_peer' => false],
'http' => [
'method' => 'PUT',
'header' => "Content-Type: application/json\r
Accept: application/json",
'content'=>json_encode($data)
]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/roles/{role}', false, $context);