<aside> 📎 Endpoints

</aside>

Get server allocations

GET https://your-panel.com/api/client/servers/<UUID>/allocations

Example Request

curl "<https://your-panel.com/api/client/servers/><UUID>/allocations" \\
  -H "Content-Type: application/json" \\
  -H "Accept: application/vnd.wisp.v1+json" \\
  -H "Authorization: Bearer APITOKEN" \\
  -X GET

Example Response

{
  "object": "list",
  "data": [
      {
          "object": "allocation",
          "attributes": {
              "primary": true,
              "ip": "127.0.0.1",
              "alias": "coolip",
              "port": 25565
          }
      }
  ],
  "meta": {
      "pagination": {
          "total": 1,
          "count": 1,
          "per_page": 10,
          "current_page": 1,
          "total_pages": 1,
          "links": {}
      }
  }
}

Update Server Allocation

PUT https://your-panel.com/api/client/servers/<UUID>/allocations/<ID>

Required Parameters

ID - allocation ID of the new primary allocation

Example Request

curl "<https://your-panel.com/api/client/servers/><UUID>/allocations/<ID>" \\
  -H "Content-Type: application/json" \\
  -H "Accept: application/vnd.wisp.v1+json" \\
  -H "Authorization: Bearer APITOKEN" \\
  -X PUT \\
  -d '
	   {
	       "id": "3"
	   }'

Example Response