Jump to content

API: User does not have access to ManageLiveTV feature


Recommended Posts

Posted

Hello,

I'm trying to create a LiveTV recording entry by a bash script using a API access token. 

My code looks like:

schedule_recording() {
  local start_time=$1
  local end_time=$2
  local recording_name=$3

  local curl_cmd="curl -X POST \"$EMBY_SERVER/LiveTV/Timers?api_key=$API_KEY\" \
    -H \"Content-Type: application/json\" \
    -d '{
          \"ChannelId\": \"$CHANNEL_ID\",
          \"StartDate\": \"$start_time\",
          \"EndDate\": \"$end_time\",
          \"IsPrePaddingRequired\": false,
          \"PrePaddingSeconds\": 0,
          \"IsPostPaddingRequired\": false,
          \"PostPaddingSeconds\": 0,
          \"RecordAnyTime\": false,
          \"RecordAnyChannel\": false,
          \"KeepUntilMode\": \"UntilDeleted\",
          \"Name\": \"$recording_name\"
        }'"

  eval "$curl_cmd"
}

I get the response: 
User  does not have access to ManageLiveTV feature.

The API token is created in the server Dashboard: "Advanced -> API Keys". Can't se any access configuration for the API Key, am I missing something? The API Key works to list channel IDs and configured LiveTV Timers entries.

Using: Version 4.9.0.40 beta

  • 3 weeks later...
Posted (edited)

Ended up using AuthenticateByName and used AccessToken for the user. But i think there is some configuration options missing for the API access token?

 

Edited by Nonnos
Posted

Hi, we'll take a look at it. Thanks.

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...