Activate tunnel
POST
/tunnels/{id}/activateContract
Parameter | Value |
|---|---|
| Section | tunnels |
| Authentication | CookieAuth |
| Consumes | application/json |
| Produces | application/json |
Parameters
2 parameters
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| id | path | yes | integer | Tunnel ID |
| request | body | yes | object | Activation data: {agentId (required), serverAgentId (0 = single-agent mode)} |
{}
Responses
5 responses
Status | Description | Type |
|---|---|---|
200 | Activation result: {status, tunnelId} | object |
400 | Invalid tunnel ID or request body, missing agentId, or identical client and server agents | object |
401 | Unauthorized | object |
404 | Record not found | object |
500 | Failed to update record | object |
{}{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }