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
Teams
Switch Current Team
Sets the specified team as the authenticated user’s current active team context.
PUT
/
teams
/
{team}
/
switch
Copy
Ask AI
curl --request PUT \
--url https://api.altostrat.io/teams/{team}/switch \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"owner": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "jsmith@example.com",
"picture": "<string>"
},
"personal_team": true,
"members": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "jsmith@example.com",
"picture": "<string>"
}
],
"invites": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"role": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"current": true,
"site_count": 123,
"site_limit": 123,
"roles": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"guard_name": "<string>",
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
]
Authorizations
Standard OAuth2 flow for user authentication. Use Authorization Code Grant or Implicit Grant. JWT Bearer tokens obtained are used for subsequent requests.
Path Parameters
UUID of the team to switch to.
Response
200
application/json
Successfully switched team. Returns the updated list of user's teams.
The response is of type object[]
.
Copy
Ask AI
curl --request PUT \
--url https://api.altostrat.io/teams/{team}/switch \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"owner": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "jsmith@example.com",
"picture": "<string>"
},
"personal_team": true,
"members": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "jsmith@example.com",
"picture": "<string>"
}
],
"invites": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"role": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"current": true,
"site_count": 123,
"site_limit": 123,
"roles": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"guard_name": "<string>",
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
]
Assistant
Responses are generated using AI and may contain mistakes.