Skip to content

Latest commit

 

History

History
118 lines (83 loc) · 3.68 KB

ItemUpdateServiceApi.md

File metadata and controls

118 lines (83 loc) · 3.68 KB

embyapi.ItemUpdateServiceApi

All URIs are relative to https://home.ourflix.de:32865/emby

Method HTTP request Description
get_items_by_itemid_metadataeditor GET /Items/{ItemId}/MetadataEditor Gets metadata editor info for an item
post_items_by_itemid POST /Items/{ItemId} Updates an item

get_items_by_itemid_metadataeditor

MetadataEditorInfo get_items_by_itemid_metadataeditor(item_id)

Gets metadata editor info for an item

Requires authentication as administrator

Example

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.ItemUpdateServiceApi(embyapi.ApiClient(configuration))
item_id = 'item_id_example' # str | The id of the item

try:
    # Gets metadata editor info for an item
    api_response = api_instance.get_items_by_itemid_metadataeditor(item_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ItemUpdateServiceApi->get_items_by_itemid_metadataeditor: %s\n" % e)

Parameters

Name Type Description Notes
item_id str The id of the item

Return type

MetadataEditorInfo

Authorization

apikeyauth, embyauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

post_items_by_itemid

post_items_by_itemid(body, item_id)

Updates an item

Requires authentication as administrator

Example

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.ItemUpdateServiceApi(embyapi.ApiClient(configuration))
body = embyapi.BaseItemDto() # BaseItemDto | BaseItemDto: 
item_id = 'item_id_example' # str | The id of the item

try:
    # Updates an item
    api_instance.post_items_by_itemid(body, item_id)
except ApiException as e:
    print("Exception when calling ItemUpdateServiceApi->post_items_by_itemid: %s\n" % e)

Parameters

Name Type Description Notes
body BaseItemDto BaseItemDto:
item_id str The id of the item

Return type

void (empty response body)

Authorization

apikeyauth, embyauth

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]