Pterodactyl Client icon

Pterodactyl Client

User-level server management with Pterodactyl Panel Client API

Network → Set Primary

AI-generated

Summary

Set a primary network allocation for a specific server by selecting one of its existing allocations to be the primary IP and port used.

Inputs

  • Server (required) — Select the server containing the allocation you want to set as primary.
  • Allocation (required) — Select the specific allocation to assign as primary for the chosen server.

Output shape

a single JSON object representing the updated allocation resource with its new primary status

This operation returns the updated allocation data after setting it as primary. Errors during the operation will be thrown unless 'continueOnFail' is enabled, in which case errors appear in the output stream.

Discussion