All URIs are relative to http://localhost:8787
| Method | HTTP request | Description |
|---|---|---|
| delete_book_file | DELETE /api/v1/bookfile/{id} | |
| delete_book_file_bulk | DELETE /api/v1/bookfile/bulk | |
| get_book_file_by_id | GET /api/v1/bookfile/{id} | |
| list_book_file | GET /api/v1/bookfile | |
| put_book_file_editor | PUT /api/v1/bookfile/editor | |
| update_book_file | PUT /api/v1/bookfile/{id} |
delete_book_file(id)
- Api Key Authentication (apikey):
- Api Key Authentication (X-Api-Key):
import readarr
from readarr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:8787
# See configuration.py for a list of all supported configuration parameters.
configuration = readarr.Configuration(
host = "http://localhost:8787"
)
# 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: X-Api-Key
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
# Enter a context with an instance of the API client
with readarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = readarr.BookFileApi(api_client)
id = 56 # int |
try:
api_instance.delete_book_file(id)
except Exception as e:
print("Exception when calling BookFileApi->delete_book_file: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | int |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 2XX | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_book_file_bulk(book_file_list_resource=book_file_list_resource)
- Api Key Authentication (apikey):
- Api Key Authentication (X-Api-Key):
import readarr
from readarr.models.book_file_list_resource import BookFileListResource
from readarr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:8787
# See configuration.py for a list of all supported configuration parameters.
configuration = readarr.Configuration(
host = "http://localhost:8787"
)
# 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: X-Api-Key
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
# Enter a context with an instance of the API client
with readarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = readarr.BookFileApi(api_client)
book_file_list_resource = readarr.BookFileListResource() # BookFileListResource | (optional)
try:
api_instance.delete_book_file_bulk(book_file_list_resource=book_file_list_resource)
except Exception as e:
print("Exception when calling BookFileApi->delete_book_file_bulk: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| book_file_list_resource | BookFileListResource | [optional] |
void (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 2XX | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BookFileResource get_book_file_by_id(id)
- Api Key Authentication (apikey):
- Api Key Authentication (X-Api-Key):
import readarr
from readarr.models.book_file_resource import BookFileResource
from readarr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:8787
# See configuration.py for a list of all supported configuration parameters.
configuration = readarr.Configuration(
host = "http://localhost:8787"
)
# 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: X-Api-Key
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
# Enter a context with an instance of the API client
with readarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = readarr.BookFileApi(api_client)
id = 56 # int |
try:
api_response = api_instance.get_book_file_by_id(id)
print("The response of BookFileApi->get_book_file_by_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling BookFileApi->get_book_file_by_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | int |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 2XX | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[BookFileResource] list_book_file(author_id=author_id, book_file_ids=book_file_ids, book_id=book_id, unmapped=unmapped)
- Api Key Authentication (apikey):
- Api Key Authentication (X-Api-Key):
import readarr
from readarr.models.book_file_resource import BookFileResource
from readarr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:8787
# See configuration.py for a list of all supported configuration parameters.
configuration = readarr.Configuration(
host = "http://localhost:8787"
)
# 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: X-Api-Key
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
# Enter a context with an instance of the API client
with readarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = readarr.BookFileApi(api_client)
author_id = 56 # int | (optional)
book_file_ids = [56] # List[int] | (optional)
book_id = [56] # List[int] | (optional)
unmapped = True # bool | (optional)
try:
api_response = api_instance.list_book_file(author_id=author_id, book_file_ids=book_file_ids, book_id=book_id, unmapped=unmapped)
print("The response of BookFileApi->list_book_file:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling BookFileApi->list_book_file: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| author_id | int | [optional] | |
| book_file_ids | List[int] | [optional] | |
| book_id | List[int] | [optional] | |
| unmapped | bool | [optional] |
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
| Status code | Description | Response headers |
|---|---|---|
| 2XX | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
put_book_file_editor(book_file_list_resource=book_file_list_resource)
- Api Key Authentication (apikey):
- Api Key Authentication (X-Api-Key):
import readarr
from readarr.models.book_file_list_resource import BookFileListResource
from readarr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:8787
# See configuration.py for a list of all supported configuration parameters.
configuration = readarr.Configuration(
host = "http://localhost:8787"
)
# 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: X-Api-Key
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
# Enter a context with an instance of the API client
with readarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = readarr.BookFileApi(api_client)
book_file_list_resource = readarr.BookFileListResource() # BookFileListResource | (optional)
try:
api_instance.put_book_file_editor(book_file_list_resource=book_file_list_resource)
except Exception as e:
print("Exception when calling BookFileApi->put_book_file_editor: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| book_file_list_resource | BookFileListResource | [optional] |
void (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 2XX | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BookFileResource update_book_file(id, book_file_resource=book_file_resource)
- Api Key Authentication (apikey):
- Api Key Authentication (X-Api-Key):
import readarr
from readarr.models.book_file_resource import BookFileResource
from readarr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:8787
# See configuration.py for a list of all supported configuration parameters.
configuration = readarr.Configuration(
host = "http://localhost:8787"
)
# 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: X-Api-Key
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
# Enter a context with an instance of the API client
with readarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = readarr.BookFileApi(api_client)
id = 'id_example' # str |
book_file_resource = readarr.BookFileResource() # BookFileResource | (optional)
try:
api_response = api_instance.update_book_file(id, book_file_resource=book_file_resource)
print("The response of BookFileApi->update_book_file:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling BookFileApi->update_book_file: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | ||
| book_file_resource | BookFileResource | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json
| Status code | Description | Response headers |
|---|---|---|
| 2XX | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]