Actions52
- Account Actions
- Backup Actions
- Database Actions
- File Actions
- Network Actions
- Schedule Actions
- Server Actions
- Startup Actions
- Subuser Actions
File → Get Upload URL
AI-generatedSummary
Retrieve a pre-signed upload URL for a specified server and target directory to facilitate file uploads via the Pterodactyl Panel Client API.
Inputs
- serverId (required) — Select the server to get upload URL for.
- directory — Target directory for file upload (default is "/").
Output shape
a single JSON object containing the upload URL and related metadata.
The upload URL is used to upload files directly to the specified server's directory. The response shape depends on the Pterodactyl API's upload URL format and may include additional metadata useful for uploading.
Examples
Example 1: Get an upload URL for the root directory of a selected server.
Provide the server identifier and optionally specify the directory (default "/") to receive an upload URL for file transfer.