Getting Started
OIDC, RBAC, and Billing
- Authentication & User Info
- User Management
- Ancillary Services
- Teams
- API Credentials
- Roles & Permissions
- Billing - Account
- Billing - Payment Methods
- Billing - Tax IDs
- Billing - Invoices
- Billing - Subscriptions
- Internal M2M
ARP and Devices
- Devices
Developers API
- Sites
- Health
- Synchronous API
- Asynchronous API
- Port Forwards
Asynchronous (MikroTik)
- Bootstrap & Adoption
- Heartbeat
- Jobs
- Runbooks
- Sites
- Internal
- SFTP Auth
Backups
- Site Backups
BGP Feeds And Content Filter
- DNS Policy
- Tunnels & Sites
- Categories & Applications
- BGP Policy
- IP Lists
- Internal Hooks
Captive Portal
- IDP Integrations
- Instances
- Walled Garden
Control Plane Filter
- Policies
- Sites
- Checkin
- Router Commands
- Internal
- Transient Access
- Transient Forward
- Credentials
- Scheduler
CVE Scans
- Scan Schedules
- Scan Results
- CVE Management
- On-Demand Scans
Elastic IP Addressing
- Subnets
- IP Addresses (L2TP)
Logging
- Log Events
Metrics
- Syslog
- ARP
- Interfaces
- MikrotikStats
- Content
- Tunnels
Monitoring & Health
- Faults
Notifications
- Topics
- Groups
Scheduled Scripts
- Community Scripts
- Scheduled Scripts
- AI Generation
Schedules
- Schedules
- Internal
SLA Reports
- SLA Schedules
- SLA Reports
VPN
- Servers
- Sites
- Instances
- Peers
- VPN Client Tokens
- Internal
WAN Failover
- Failover
- Tunnel
- Services
- Gateway
Webhooks
- Integrations
Policies
Update a policy
Update the specified policy. Sites not in the request may revert to a default policy. Requires cpf:update
scope.
PUT
/
policies
/
{id}
Copy
Ask AI
curl --request PUT \
--url https://api.altostrat.io/policies/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"trusted_networks": [
"<string>"
],
"custom_input_rules": true,
"winbox": {
"enabled": true,
"port": 123
},
"ssh": {
"enabled": true,
"port": 123
},
"http": {
"enabled": true,
"port": 123
},
"https": {
"enabled": true,
"port": 123
},
"telnet": {
"enabled": true,
"port": 123
},
"ftp": {
"enabled": true,
"port": 123
},
"api": {
"enabled": true,
"port": 123
},
"api_ssl": {
"enabled": true,
"port": 123
},
"default": true,
"sites": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}'
Copy
Ask AI
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trusted_networks": [
"<string>"
],
"custom_input_rules": true,
"name": "<string>",
"slug": "<string>",
"winbox": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"ssh": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"http": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"https": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"telnet": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"ftp": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"api": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"api_ssl": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"default": true,
"sites": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The policy's UUID
Body
application/json
Policy data
The body is of type object
.
Response
200
application/json
Policy updated
The response is of type object
.
Copy
Ask AI
curl --request PUT \
--url https://api.altostrat.io/policies/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"trusted_networks": [
"<string>"
],
"custom_input_rules": true,
"winbox": {
"enabled": true,
"port": 123
},
"ssh": {
"enabled": true,
"port": 123
},
"http": {
"enabled": true,
"port": 123
},
"https": {
"enabled": true,
"port": 123
},
"telnet": {
"enabled": true,
"port": 123
},
"ftp": {
"enabled": true,
"port": 123
},
"api": {
"enabled": true,
"port": 123
},
"api_ssl": {
"enabled": true,
"port": 123
},
"default": true,
"sites": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}'
Copy
Ask AI
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trusted_networks": [
"<string>"
],
"custom_input_rules": true,
"name": "<string>",
"slug": "<string>",
"winbox": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"ssh": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"http": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"https": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"telnet": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"ftp": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"api": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"api_ssl": {
"enabled": true,
"port": 123,
"networks": [
"<string>"
]
},
"default": true,
"sites": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.