{ "uuid": "uuid", "name": "name" }
PATCH /api/v1/billing/devices/update
string uuid REQUIRED, Идентификатор устойства
string
string name, Имя устройства
201 Created
Created
Успешный ответ
{ "id": 25, "serial_number": "sn", "type": "mediabridge", "mac": "mac", "name": "name", "version": "1.1.1.1", "created_at": "2000-00-00T00:00:00.000000Z", "last_updated_at": null, "is_online": true }
422 Unprocessable Entity
Unprocessable Entity
Возвращает JSON объект с ошибкой. VMS Billing/Общая информация/Валидация внешней системы
{ "message": "Тут не будет информативного сообщения", "errors": { "any_key": [ "Тут будет описана причина ошибки" ] } }
curl -k --request POST \ --url 'https://your-domain/api/v1/billing/devices/update' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "uuid": "string", "name": "string" }'
$data = array ( 'uuid' => 'string', 'name' => 'string', ); $context = stream_context_create([ 'ssl'=>['verify_peer' => false], 'http' => [ 'method' => 'PATCH', 'header' => "Content-Type: application/json\r Accept: application/json", 'content'=>json_encode($data) ] ]); $result = file_get_contents('https://your-domain/api/v1/billing/devices/update', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.