POST
/
api
/
v1
/
apps
/
{uuid}
/
workspaces
/
{workspace_name}
/
apps
/
{app_name}
/
ports
cURL
curl --request POST \
  --url https://app.miget.com/api/v1/apps/{uuid}/workspaces/{workspace_name}/apps/{app_name}/ports \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "internal_port": 123,
  "protocol": "tcp",
  "public": false
}
'

Authorizations

Authorization
string
header
required

Bearer token for authentication. Format: 'Bearer {token}'

Path Parameters

uuid
string
required
workspace_name
string
required

Workspace name

app_name
string
required

App name

Body

application/json

Create a new port for an app

internal_port
integer<int32>
required

Internal port number (1-65535)

protocol
enum<string>
required

Protocol (tcp or udp)

Available options:
tcp,
udp
public
boolean
default:false

Public Access

Response

201

Create a new port for an app