PHP
$data = array (
'user' => 0,
'name' => 'string',
'login' => 'string',
'password' => 'string',
'password_confirmation' => 'string',
'permissions' =>
array (
),
'cameras_to_attach' =>
array (
),
'cameras_to_detach' =>
array (
),
'expired_at' => 'date',
'ptz_priority' => 0,
);
$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-domainapi/admin/v1/special-users/{user}', false, $context);