Skip to main content
POST
/
v1
/
failover
/
{site_id}
/
priorities
Update Tunnel Priorities
curl --request POST \
  --url https://api.altostrat.io/v1/failover/{site_id}/priorities \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "priorities": [
    {
      "id": "9c6934c9-586b-47e5-9c59-8669911e8609",
      "priority": 1
    },
    {
      "id": "9c6934ca-8a71-46ca-9781-64d88e0b621e",
      "priority": 2
    }
  ]
}'
[
  {
    "id": "9c6934c9-586b-47e5-9c59-8669911e8609",
    "priority": 1
  }
]

Authorizations

Authorization
string
header
required

Enter your JWT in the format: Bearer <token>

Path Parameters

site_id
string<uuid>
required

The unique identifier for the site.

Example:

"9c69345c-8d39-4786-9f17-8153c988c89a"

Body

application/json
priorities
object[]
required

A complete list of tunnels and their new priorities.

Response

Tunnel priorities updated successfully.

id
string<uuid>

The unique identifier of the tunnel.

Example:

"9c6934c9-586b-47e5-9c59-8669911e8609"

priority
integer

The new priority of the tunnel.

Example:

1