Nonnos 2 Posted March 1, 2025 Posted March 1, 2025 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
Nonnos 2 Posted March 21, 2025 Author Posted March 21, 2025 (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 March 21, 2025 by Nonnos
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now