# POST /security/firewall/confirm

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the security group.

Confirm the pending firewall change

- Who may call it: administrator
- Token scope, any of: security, all
- Answers: 200 OK

Confirmation cancels the automatic revert. It closes the old port after an SSH or web interface port change and keeps the new rules in effect after a firewall rule change.

If no change is pending, UrbeStack acknowledges the last revert and dismisses its banner in the web interface.

## As a command

- [urbestack-firewall-confirm](https://urbestack.com/docs/commands/urbestack-firewall-confirm.md): Confirms the pending firewall change and cancels its automatic revert.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X POST "$API/security/firewall/confirm" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "acknowledged": true,
  "change": "text",
  "confirmed": true,
  "kind": "profile",
  "new_port": 8443,
  "old_port": 8443,
  "ports": [
    8443
  ],
  "value": 8443,
  "what": "text"
}
```

## Errors

- 401: Authentication required
