EasypanelDocs

Update a service port

Replaces an exposed port on an app or box service by index.

POST
/updatePort

Replaces an exposed port on an app or box service by index.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/updatePort" \  -H "Content-Type: application/json" \  -d '{    "projectName": "string",    "serviceName": "string",    "index": 0,    "values": {      "published": 0,      "target": 0    }  }'
null