OrgsPsk Portals

updateOrgPskPortal

PUT
/api/v1/orgs/{org_id}/pskportals/{pskportal_id}

Update a PSK Portal configuration, including SSID, mode, authentication, SSO, passphrase, expiry, notification, and template settings.

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

org_id*string
Formatuuid
pskportal_id*string
Formatuuid

Request Body

application/json

Self-service portal configuration for issuing personal PSKs

auth?psk_portal_auth

Portal access method, enum: sponsor, sso

Default"sso"

Value in

  • "sponsor"
  • "sso"
bg_image_url?string

URL of the background image used by the PSK portal

cleanup_psk?boolean

Whether to clean up existing PSKs when the portal is deleted or its SSID changes

Defaultfalse
expire_time?integer

PSK lifetime, in minutes, for keys created through this portal

expiry_notification_time?integer

Number of days before PSK expiration to start sending reminder notifications

hide_psks_created_by_other_admins?boolean

Only if type==admin, hide PSKs created by other PSK admins

Defaultfalse
max_usage?integer

Maximum concurrent clients for each PSK created through this portal; 0 means unlimited

Range0 <= value
Default0
name*string

Display name of the PSK portal

notification_renew_url?string

Optional renewal URL included in notification emails. Use a custom URL, a Mist-generated URL, or a shortened URL pointing to either

Formaturl
notify_expiry?boolean

Whether to send reminder notifications before PSKs created through this portal expire

notify_on_create_or_edit?boolean

Whether to send notifications when a PSK is created or edited through this portal

Defaultfalse
passphrase_rules?

Generation rules for PSK passphrases created through this portal

required_fields?array<string>

User information fields requested by the portal when generating a PSK

role?string

Client role assigned to PSKs created through this portal

ssid*string

WLAN SSID for PSKs created through this portal

sso?

Single sign-on configuration used when auth==sso

template_url?string

URL of the UI customization template for this portal

thumbnail_url?string

URL of the thumbnail image used by the PSK portal

type?psk_portal_type

Portal mode for personal PSK onboarding, either admin or BYOD

Value in

  • "admin"
  • "byod"
ui_url?string

Public URL where users access the PSK portal

vlan_id?|

VLAN ID returned for clients using PSKs from this portal

Response Body

curl -X PUT "https://example.com/api/v1/orgs/000000ab-00ab-00ab-00ab-0000000000ab/pskportals/000000ab-00ab-00ab-00ab-0000000000ab" \  -H "Content-Type: application/json" \  -d '{    "auth": "sso",    "expire_time": 262800,    "expiry_notification_time": 2,    "hide_psks_created_by_other_admins": false,    "max_usage": 1,    "name": "USR-test",    "notify_expiry": false,    "passphrase_rules": {      "alphabets_enabled": true,      "length": 8,      "numerics_enabled": true,      "symbols": "()[]{}_%@#&$",      "symbols_enabled": true    },    "sponsors": {      "idp_cert": "-----BEGIN CERTIFICATE-----\\nMIIDqDCCApCgA...-----END CERTIFICATE-----",      "idp_sign_algo": "sha256",      "idp_sso_url": "https://dev-00000000.okta.com/app/dev-00000000/a6b88bec5ab7/sso/saml",      "issuer": "http://www.okta.com/a6b88bec5ab7",      "nameid_format": "email"    },    "ssid": "USR-test",    "type": "byod",    "vlan_id": "nu42ll"  }'
{  "auth": "sso",  "created_time": 1727272316,  "expire_time": 262800,  "expiry_notification_time": 2,  "hide_psks_created_by_other_admins": false,  "id": "86ef73e5-e360-4e33-abd8-c2da7b11cbd6",  "max_usage": 1,  "modified_time": 1727272316,  "name": "USR-test",  "notify_expiry": false,  "org_id": "8f6c24d5-b618-4c30-b6ff-b2febc1078ab",  "passphrase_rules": {    "alphabets_enabled": true,    "length": 8,    "numerics_enabled": true,    "symbols": "()[]{}_%@#&$",    "symbols_enabled": true  },  "role": "",  "ssid": "USR-test",  "sso": {    "idp_cert": "-----BEGIN CERTIFICATE-----\nMIIDqDCCApCgA...-----END CERTIFICATE-----",    "idp_sign_algo": "sha256",    "idp_sso_url": "https://dev-00000000.okta.com/app/dev-00000000/a6b88bec5ab7/sso/saml",    "issuer": "http://www.okta.com/a6b88bec5ab7",    "nameid_format": "email"  },  "type": "byod",  "ui_url": "https://pskportal.gc1.mist.com/#!byod/a6b88bec-5ab7-41ae-a34c-44ff52a8b81d",  "vlan_id": 123}