Project

General

Profile

Bug #4300

Can't update 2 specific fields when updating accounts through API

Added by Hyperion Moderkart over 7 years ago. Updated over 7 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Start date:
2017-03-29
Due date:
% Done:

0%

Estimated time:
Found in version:
4.1.2436
Affected Versions:

Description

Calling /api/idnode/save?node=json using POST causes all fields of the account to update except the field "enabled" and "comments". These are always unset despite if the checkbox is checked or the input is filled with info.

All the other fields seem to work correctly.

History

#1

Updated by Hyperion Moderkart over 7 years ago

Creating new accounts allowed me to set these fields correctly

#2

Updated by Hyperion Moderkart over 7 years ago

I mean, for new accounts created, the field can be set but still, when someone will try to edit them it wont work. The fields enabled and comment are always unset. It does work if I copy/paste the request manually into the browser though.

#3

Updated by Jaroslav Kysela over 7 years ago

  • Status changed from New to Invalid

URL: http://localhost:9981/api/idnode/save
POST DATA: node=[{"enabled":false,"comment":"New entry 24","uuid":"d3ca492cec1efea5d2360e51ba75b4ec"}

Works here.

#4

Updated by Hyperion Moderkart over 7 years ago

Does it work for you if you call it through a cURL request? What can the problem be of only these 2 fields arent geting registered?

#5

Updated by Hyperion Moderkart over 7 years ago

I narrowed down the problem into being laravels issue and not TVheadEnds. I will take it to them now. Thanks

#6

Updated by C K over 7 years ago

Hyperion Moderkart wrote:

I narrowed down the problem into being laravels issue and not TVheadEnds. I will take it to them now. Thanks

If youre familiar with Python take a look at for API examples: https://github.com/tvheadend/python-htspclient/blob/master/scripts/disable_iptv_vod_muxes.py#L67

Also available in: Atom PDF