All URIs are relative to https://home.ourflix.de:32865/emby
| Method | HTTP request | Description |
|---|---|---|
| delete_scheduledtasks_running_by_id | DELETE /ScheduledTasks/Running/{Id} | Stops a scheduled task |
| get_scheduledtasks | GET /ScheduledTasks | Gets scheduled tasks |
| get_scheduledtasks_by_id | GET /ScheduledTasks/{Id} | Gets a scheduled task, by Id |
| post_scheduledtasks_by_id_triggers | POST /ScheduledTasks/{Id}/Triggers | Updates the triggers for a scheduled task |
| post_scheduledtasks_running_by_id | POST /ScheduledTasks/Running/{Id} | Starts a scheduled task |
delete_scheduledtasks_running_by_id(id)
Stops a scheduled task
Requires authentication as administrator
from __future__ import print_function
import time
import embyapi
from embyapi.rest import ApiException
from pprint import pprint
# Configure API key authorization: apikeyauth
configuration = embyapi.Configuration()
configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = embyapi.ScheduledTaskServiceApi(embyapi.ApiClient(configuration))
id = 'id_example' # str |
try:
# Stops a scheduled task
api_instance.delete_scheduledtasks_running_by_id(id)
except ApiException as e:
print("Exception when calling ScheduledTaskServiceApi->delete_scheduledtasks_running_by_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[TasksTaskInfo] get_scheduledtasks(is_hidden=is_hidden, is_enabled=is_enabled)
Gets scheduled tasks
Requires authentication as administrator
from __future__ import print_function
import time
import embyapi
from embyapi.rest import ApiException
from pprint import pprint
# Configure API key authorization: apikeyauth
configuration = embyapi.Configuration()
configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = embyapi.ScheduledTaskServiceApi(embyapi.ApiClient(configuration))
is_hidden = true # bool | Optional filter tasks that are hidden, or not. (optional)
is_enabled = true # bool | Optional filter tasks that are enabled, or not. (optional)
try:
# Gets scheduled tasks
api_response = api_instance.get_scheduledtasks(is_hidden=is_hidden, is_enabled=is_enabled)
pprint(api_response)
except ApiException as e:
print("Exception when calling ScheduledTaskServiceApi->get_scheduledtasks: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| is_hidden | bool | Optional filter tasks that are hidden, or not. | [optional] |
| is_enabled | bool | Optional filter tasks that are enabled, or not. | [optional] |
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TasksTaskInfo get_scheduledtasks_by_id(id)
Gets a scheduled task, by Id
Requires authentication as administrator
from __future__ import print_function
import time
import embyapi
from embyapi.rest import ApiException
from pprint import pprint
# Configure API key authorization: apikeyauth
configuration = embyapi.Configuration()
configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = embyapi.ScheduledTaskServiceApi(embyapi.ApiClient(configuration))
id = 'id_example' # str |
try:
# Gets a scheduled task, by Id
api_response = api_instance.get_scheduledtasks_by_id(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ScheduledTaskServiceApi->get_scheduledtasks_by_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str |
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
post_scheduledtasks_by_id_triggers(body, id)
Updates the triggers for a scheduled task
Requires authentication as administrator
from __future__ import print_function
import time
import embyapi
from embyapi.rest import ApiException
from pprint import pprint
# Configure API key authorization: apikeyauth
configuration = embyapi.Configuration()
configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = embyapi.ScheduledTaskServiceApi(embyapi.ApiClient(configuration))
body = [embyapi.TasksTaskTriggerInfo()] # list[TasksTaskTriggerInfo] | List`1:
id = 'id_example' # str |
try:
# Updates the triggers for a scheduled task
api_instance.post_scheduledtasks_by_id_triggers(body, id)
except ApiException as e:
print("Exception when calling ScheduledTaskServiceApi->post_scheduledtasks_by_id_triggers: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | list[TasksTaskTriggerInfo] | List`1: | |
| id | str |
void (empty response body)
- Content-Type: application/json, application/xml
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
post_scheduledtasks_running_by_id(id)
Starts a scheduled task
Requires authentication as administrator
from __future__ import print_function
import time
import embyapi
from embyapi.rest import ApiException
from pprint import pprint
# Configure API key authorization: apikeyauth
configuration = embyapi.Configuration()
configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = embyapi.ScheduledTaskServiceApi(embyapi.ApiClient(configuration))
id = 'id_example' # str |
try:
# Starts a scheduled task
api_instance.post_scheduledtasks_running_by_id(id)
except ApiException as e:
print("Exception when calling ScheduledTaskServiceApi->post_scheduledtasks_running_by_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]