Bug #4300

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

Added by Hyperion Moderkart about 1 month ago. Updated 28 days ago.

Status:InvalidStart date:2017-03-29
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:API
Target version:-
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 about 1 month ago

Creating new accounts allowed me to set these fields correctly

#2 Updated by Hyperion Moderkart 30 days 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 29 days 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 29 days 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 29 days 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 28 days 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