SitesPsks

updateSitePsk

PUT
/api/v1/sites/{site_id}/psks/{psk_id}

Update Site PSK

Authorization

Authorization<token>

Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.

Format: Authorization: Token {apitoken}

Notes:

  • An API token generated for a specific admin has the same privileges as that admin
  • An API token is automatically removed if it is not used for more than 90 days
  • SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.

In: header

Path Parameters

site_id*string
Formatuuid
psk_id*string

PSK ID

Formatuuid

Request Body

application/json

Request Body

Personal pre-shared key configuration for WLAN access

email?string

Notification recipient email address for PSK creation notification and expiration reminders

expire_time?|

Expire time for this PSK key (epoch time in seconds). Default null (as no expiration)

Defaultnull
expiry_notification_time?integer

Number of days before psk is expired. Used as to when to start sending reminder notification when the psk is about to expire

mac?string

If usage==single, client MAC address this PSK is bound to; empty when auto-binding is used

macs?array<string>

Client MAC addresses or MAC patterns allowed when usage==macs

max_usage?integer

For Org PSK Only. Max concurrent users for this PSK key. Default is 0 (unlimited)

Default0
name*string

Display name of the PSK

note?string

Admin note or description stored with the PSK

notify_expiry?boolean

If set to true, reminder notification will be sent when psk is about to expire

Defaultfalse
notify_on_create_or_edit?boolean

If set to true, notification will be sent when psk is created or edited

old_passphrase?string

previous passphrase of the PSK if it has been rotated

passphrase*string

PSK passphrase, 8-63 characters or 64 hexadecimal characters

Formatpassword
Length8 <= length <= 64
role?string

Client role applied to users authenticated with this PSK

Length0 <= length <= 32
ssid*string

WLAN SSID where this PSK can be used

usage?psk_usage

Binding mode for this PSK, enum: macs, multi, single, usermac_labels

Default"multi"

Value in

  • "macs"
  • "multi"
  • "single"
  • "usermac_labels"
usermac_labels?array<string>

Usermac labels allowed when usage==usermac_labels; this list is capped at 100 entries

Itemsitems <= 100
vlan_id?|

VLAN ID returned for clients using this PSK

vlan_name?string

VLAN name to be assigned. Optional, vlan_id takes precedence if both are provided

Response Body

curl -X PUT "https://example.com/api/v1/sites/000000ab-00ab-00ab-00ab-0000000000ab/psks/000000ab-00ab-00ab-00ab-0000000000ab" \  -H "Content-Type: application/json" \  -d '{    "mac": "string",    "name": "string",    "passphrase": "secretpsk",    "ssid": "string",    "usage": "multi",    "vlan_id": 1  }'
{  "admin_sso_id": "string",  "created_time": 0.1,  "email": "string",  "expire_time": 1614990263,  "expiry_notification_time": 0,  "id": "53f10664-3ce8-4c27-b382-0ef66432349f",  "mac": "string",  "macs": [    "112233abcedf",    "aabbcc*"  ],  "max_usage": 0,  "modified_time": 0.1,  "name": "string",  "note": "string",  "notify_expiry": false,  "notify_on_create_or_edit": true,  "old_passphrase": "string",  "org_id": "a97c1b22-a4e9-411e-9bfd-d8695a0f9e61",  "passphrase": "pa$$word",  "role": "string",  "site_id": "441a1214-6928-442a-8e92-e1d34b8ec6a6",  "ssid": "string",  "usage": "macs",  "usermac_labels": [    "iot",    "students"  ],  "vlan_id": "string",  "vlan_name": "string"}