iamkubi / pydactyl

Python wrapper for the Pterodactyl Panel API
MIT License
69 stars 21 forks source link

create_backup 403 Error #84

Closed crocofied closed 7 months ago

crocofied commented 7 months ago

Describe the bug As soon as you execute the function "api.client.servers.backup.create_backup", you get the error 403, although the Application API key has all permissions and other functions with the api, such as api.create_user work

To Reproduce

  1. Calling the create_backup function with: try: response = api.client.servers.backups.create_backup(server_id=5) print(response) except Exception as e: print(f"Error: {e}")
  2. Get the error: Error: Forbidden for url: https://panel.bot-hosting.online/api/client/servers/71e5fd98/backups

Expected behavior I expect a backup to be created in the given server

Environment

Additional context /

iamkubi commented 7 months ago

You can't create backups with application API keys. It's a client endpoint so you have to use a client key.