All URIs are relative to http://localhost:5055/api/v1
| Method | HTTP request | Description |
|---|---|---|
| create_request | POST /request | Create new request |
| create_request_by_status | POST /request/{requestId}/{status} | Update a request's status |
| create_request_retry | POST /request/{requestId}/retry | Retry failed request |
| delete_request | DELETE /request/{requestId} | Delete request |
| get_request | GET /request | Get all requests |
| get_request_by_request_id | GET /request/{requestId} | Get MediaRequest |
| get_request_count | GET /request/count | Gets request counts |
| update_request | PUT /request/{requestId} | Update MediaRequest |
MediaRequest create_request(create_request_request)
Create new request
Creates a new request with the provided media ID and type. The REQUEST permission is required.
If the user has the ADMIN or AUTO_APPROVE permissions, their request will be auomatically approved.
- Api Key Authentication (apiKey):
- Api Key Authentication (cookieAuth):
import seerr
from seerr.models.create_request_request import CreateRequestRequest
from seerr.models.media_request import MediaRequest
from seerr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:5055/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = seerr.Configuration(
host = "http://localhost:5055/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: apiKey
configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with seerr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = seerr.RequestApi(api_client)
create_request_request = seerr.CreateRequestRequest() # CreateRequestRequest |
try:
# Create new request
api_response = api_instance.create_request(create_request_request)
print("The response of RequestApi->create_request:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RequestApi->create_request: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| create_request_request | CreateRequestRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Succesfully created the request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MediaRequest create_request_by_status(request_id, status)
Update a request's status
Updates a request's status to approved or declined. Also returns the request in a JSON object.
Requires the MANAGE_REQUESTS permission or ADMIN.
- Api Key Authentication (apiKey):
- Api Key Authentication (cookieAuth):
import seerr
from seerr.models.media_request import MediaRequest
from seerr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:5055/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = seerr.Configuration(
host = "http://localhost:5055/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: apiKey
configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with seerr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = seerr.RequestApi(api_client)
request_id = '1' # str | Request ID
status = 'status_example' # str | New status
try:
# Update a request's status
api_response = api_instance.create_request_by_status(request_id, status)
print("The response of RequestApi->create_request_by_status:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RequestApi->create_request_by_status: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| request_id | str | Request ID | |
| status | str | New status |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 2XX | Request status changed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MediaRequest create_request_retry(request_id)
Retry failed request
Retries a request by resending requests to Sonarr or Radarr.
Requires the MANAGE_REQUESTS permission or ADMIN.
- Api Key Authentication (apiKey):
- Api Key Authentication (cookieAuth):
import seerr
from seerr.models.media_request import MediaRequest
from seerr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:5055/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = seerr.Configuration(
host = "http://localhost:5055/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: apiKey
configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with seerr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = seerr.RequestApi(api_client)
request_id = '1' # str | Request ID
try:
# Retry failed request
api_response = api_instance.create_request_retry(request_id)
print("The response of RequestApi->create_request_retry:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RequestApi->create_request_retry: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| request_id | str | Request ID |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 2XX | Retry triggered | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_request(request_id)
Delete request
Removes a request. If the user has the MANAGE_REQUESTS permission, any request can be removed. Otherwise, only pending requests can be removed.
- Api Key Authentication (apiKey):
- Api Key Authentication (cookieAuth):
import seerr
from seerr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:5055/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = seerr.Configuration(
host = "http://localhost:5055/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: apiKey
configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with seerr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = seerr.RequestApi(api_client)
request_id = '1' # str | Request ID
try:
# Delete request
api_instance.delete_request(request_id)
except Exception as e:
print("Exception when calling RequestApi->delete_request: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| request_id | str | Request ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Succesfully removed request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetUserRequests2XXResponse get_request(take=take, skip=skip, filter=filter, sort=sort, sort_direction=sort_direction, requested_by=requested_by, media_type=media_type)
Get all requests
Returns all requests if the user has the ADMIN or MANAGE_REQUESTS permissions. Otherwise, only the logged-in user's requests are returned.
If the requestedBy parameter is specified, only requests from that particular user ID will be returned.
- Api Key Authentication (apiKey):
- Api Key Authentication (cookieAuth):
import seerr
from seerr.models.get_user_requests2_xx_response import GetUserRequests2XXResponse
from seerr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:5055/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = seerr.Configuration(
host = "http://localhost:5055/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: apiKey
configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with seerr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = seerr.RequestApi(api_client)
take = 20 # float | (optional)
skip = 0 # float | (optional)
filter = 'filter_example' # str | (optional)
sort = 'added' # str | (optional) (default to 'added')
sort_direction = 'desc' # str | (optional) (default to 'desc')
requested_by = 1 # float | (optional)
media_type = 'all' # str | (optional) (default to 'all')
try:
# Get all requests
api_response = api_instance.get_request(take=take, skip=skip, filter=filter, sort=sort, sort_direction=sort_direction, requested_by=requested_by, media_type=media_type)
print("The response of RequestApi->get_request:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RequestApi->get_request: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| take | float | [optional] | |
| skip | float | [optional] | |
| filter | str | [optional] | |
| sort | str | [optional] [default to 'added'] | |
| sort_direction | str | [optional] [default to 'desc'] | |
| requested_by | float | [optional] | |
| media_type | str | [optional] [default to 'all'] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 2XX | Requests returned | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MediaRequest get_request_by_request_id(request_id)
Get MediaRequest
Returns a specific MediaRequest in a JSON object.
- Api Key Authentication (apiKey):
- Api Key Authentication (cookieAuth):
import seerr
from seerr.models.media_request import MediaRequest
from seerr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:5055/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = seerr.Configuration(
host = "http://localhost:5055/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: apiKey
configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with seerr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = seerr.RequestApi(api_client)
request_id = '1' # str | Request ID
try:
# Get MediaRequest
api_response = api_instance.get_request_by_request_id(request_id)
print("The response of RequestApi->get_request_by_request_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RequestApi->get_request_by_request_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| request_id | str | Request ID |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 2XX | Succesfully returns request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetRequestCount2XXResponse get_request_count()
Gets request counts
Returns the number of requests by status including pending, approved, available, and completed requests.
- Api Key Authentication (apiKey):
- Api Key Authentication (cookieAuth):
import seerr
from seerr.models.get_request_count2_xx_response import GetRequestCount2XXResponse
from seerr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:5055/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = seerr.Configuration(
host = "http://localhost:5055/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: apiKey
configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with seerr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = seerr.RequestApi(api_client)
try:
# Gets request counts
api_response = api_instance.get_request_count()
print("The response of RequestApi->get_request_count:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RequestApi->get_request_count: %s\n" % e)This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 2XX | Request counts returned | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MediaRequest update_request(request_id, update_request_request)
Update MediaRequest
Updates a specific media request and returns the request in a JSON object. Requires the MANAGE_REQUESTS permission.
- Api Key Authentication (apiKey):
- Api Key Authentication (cookieAuth):
import seerr
from seerr.models.media_request import MediaRequest
from seerr.models.update_request_request import UpdateRequestRequest
from seerr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:5055/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = seerr.Configuration(
host = "http://localhost:5055/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: apiKey
configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with seerr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = seerr.RequestApi(api_client)
request_id = '1' # str | Request ID
update_request_request = seerr.UpdateRequestRequest() # UpdateRequestRequest |
try:
# Update MediaRequest
api_response = api_instance.update_request(request_id, update_request_request)
print("The response of RequestApi->update_request:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling RequestApi->update_request: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| request_id | str | Request ID | |
| update_request_request | UpdateRequestRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 2XX | Succesfully updated request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]