Jump to content

EnableLiveTvAcces cannot be edited by API


Go to solution Solved by Luke,

Recommended Posts

Posted

Why can I not disable live tv in a profile?

Quote

@echo off

setlocal

set API_ENDPOINT=http://127.0.0.1:8196/emby/Users/915970d0e473473f8d957e0258593c6f/Policy?api_key=xxxxxxxxxxxx
set JSON_PAYLOAD={"EnableLiveTvAccess": false, "EnableLiveTvManagement": false}

powershell -command "(Invoke-RestMethod -Uri '%API_ENDPOINT%' -Method Post -ContentType 'application/json' -Body '%JSON_PAYLOAD%').Content"

pause

When I use this it just enables both 🫣

  • Solution
Posted

HI, sending back partial payloads is not supported at this time. you need to pull down the full object, edit the properties you need to change, and then send the full object back.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...