Jump to content

Help with API Post


Go to solution Solved by adminExitium,

Recommended Posts

Posted

https://meinServerde/Items?&ids=16475&serverId=8bc8ae6fe2d946fcbd21cb341832072d

 

{
    "Items": [
        {
            "Name": "Miwa Kouzuki",
            "ServerId": "8bc8ae6fe2d946fcbd21cb341832072d",
            "Id": "16475",
            "Type": "Person",
            "ImageTags": {
                "Primary": "2fc8bcf6609bea971aca7debd742dc59"
            },
            "BackdropImageTags": []
        }
    ],
    "TotalRecordCount": 1
}

If I do the following I get this information

Why can't I filter for everything that is type person based on the ServerID?

https://MeinServers.de/Items?type=Person&serverId=8bc8ae6fe2d946fcbd21cb341832072d
How can I do that?

Posted

HI, there is a separate api for people. See /Persons.

adminExitium
Posted

Use /Persons?serverId=8bc8ae6fe2d946fcbd21cb341832072d

Posted
1 hour ago, adminExitium said:

Use /Persons?serverId=8bc8ae6fe2d946fcbd21cb341832072d

https://meinserver/Persons?serverId=8bc8ae6fe2d946fcbd21cb341832072d

The file '/Persons' cound not be found.
  • Solution
adminExitium
Posted

It's a GET request, not POST.

Posted (edited)

I need more help with the api

i try to update the image with an other

Example Postman setup:

    URL: https://meinserver.de/emby/Items/78951/Images/Primary/Upload
    Method: POST
    Headers:
        Key: x-emby-Token
        Value: Your API token
    Body:
        Select form-data
        Add a field:
            Key: file
            Type: File
            Value:  i Select the image file on your computer

image.png.178537d8c446555ab30cb4bfa78b26dc.png

Input string was not in a correct format.

 




I also don't know I don't understand these API rules when I look at what is in the documentation and what I have to enter for a query is somehow different?

image.png.0e2237e7e7cb03585eda22f357aaa537.png

image.thumb.png.29f2f9478d84c61010564dbfeb617fa0.png

image.thumb.png.e85a086a0595e071ed890c2d92163b00.png

Edited by D1sk
Posted

@D1skdid you try comparing your request to what the web app sends for it's image uploads? You can do this using the browser debugging tools. 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...