port-create
Creates a port mapping for a Dokploy application, binding a published port to a target port with optional TCP/UDP protocol and ingress or host publish mode.
Instructions
POST /port.create
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"publishedPort": "<publishedPort>",
"targetPort": "<targetPort>",
"applicationId": "<applicationId>"
},
"name": "port-create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| protocol | No | tcp | |
| targetPort | Yes | ||
| publishMode | No | ingress | |
| applicationId | Yes | ||
| publishedPort | Yes |