createOrgPskPortal

POST https://{{host}}/api/v1/orgs/:org_id/pskportals

Request Body

{"name"=>"get-wifi", "ssid"=>"Corp", "type"=>"admin", "vlan_id"=>417, "role"=>"", "max_usage"=>20, "cleanup_psk"=>true, "auth"=>"sso", "notification_renew_url"=>"https://custom-sso/url", "sso"=>{"issuer"=>"https://app.onelogin.com/saml/metadata/138130", "idp_cert"=>"-----BEGIN CERTIFICATE-----\nMIIFZjCCA06gAwIBAgIIP61/1qm/uDowDQYJKoZIhvcNAQELBQE\n-----END CERTIFICATE-----", "idp_sign_algo"=>"sha256", "idp_sso_url"=>"https://yourorg.onelogin.com/trust/saml2/http-post/sso/138130", "nameid_format"=>"email", "allowed_roles"=>["Student", "Teather"], "use_sso_role_for_psk_role"=>true, "role_mapping"=>{"Student"=>"user", "Teacher"=>"faculty"}}, "passphrase_rules"=>{"length"=>8, "max_length"=>63, "min_length"=>8, "alphabets_enabled"=>true, "numerics_enabled"=>true, "symbols_enabled"=>false, "symbols"=>"()[]{}_%@#&$"}, "expire_time"=>1440, "notify_expiry"=>true, "expiry_notification_time"=>2, "notify_on_create_or_edit"=>true, "hide_psks_created_by_other_admins"=>false, "required_fields"=>["name", "role"], "bg_image_url"=>"...", "thumbnail_url"=>"...", "template_url"=>"..."}