updateSiteWlanPortalTemplate

PUT https://{{host}}/api/v1/sites/:site_id/wlans/:wlan_id/portal_template

Body Parameters

ParameterTypeDescription
pageTitlestring'Welcome'
messagestring'Please enjoy the complimentary Wifi'
colorstring'#1074bc'
colorDarkstring'#0b5183'
colorLightstring'#3589c6'
alignmentstringdefines alignment on portal. 'left' is default.
passphraseLabelstringPassphrase
passphraseErrorstringerror message when invalid passphrase is provided
tosbooleandefault is true
tosTextstringtext of the Terms of Service
tosAcceptLabelstringprefix of the label of the link to go to /tos
tosLinkstringlabel of the link to go to /tos
tosErrorstringerror message when tos not accepted
backLinkstringlabel of the link to go back to /logon
signInLabelstringlabel of the button to /signin
poweredBystringwhether to show 'Powered by Mist', default is true
emailbooleanwhether email field is required, default is false
emailLabelstringlabel of email field
emailErrorstringerror message when email not provided
namebooleanwhether name field is required, default is false
nameLabelstringlabel of name field
nameErrorstringerror message when name not provided
companybooleanwhether company field is required, default is false
companyLabelstringlabel of company field
companyErrorstringerror message when company not provided
requiredFieldLabelstringlabel to denote required field
field1booleanwhether to ask field1
field1Labelstringlabel of field1
field1Requiredbooleanwhether field1 is required field
field1Errorstringerror message when field1 not provided
field2booleanwhether to ask field2
field2Labelstringlabel of field2
field2Requiredbooleanwhether field2 is required field
field2Errorstringerror message when field2 not provided
field3booleanwhether to ask field3
field3Labelstringlabel of field3
field3Requiredbooleanwhether field3 is required field
field3Errorstringerror message when field3 not provided
field4booleanwhether to ask field4
field4Labelstringlabel of field4
field4Requiredbooleanwhether field4 is required field
field4Errorstringerror message when field4 not provided
optoutbooleanwhether to display 'Do Not Store My Personal Information'
optoutLabelstringlabel for 'Do Not Store My Personal Information'
authButtonPassphrasestringlabel for passphrase auth button
passphraseTitlestringTitle for passphrase details page
passphraseMessagestring'Login using passphrase'
passphraseSubmitstring'Sign in'
passphraseCancelstring'Cancel'
authButtonGooglestringlabel for Google auth button
authButtonFacebookstringlabel for Facebook auth button
authButtonSmsstringlabel for SMS auth button
emailAccessDomainErrorstringerror message when a user has valid social login but doesn't match specified email domains.
smsNumberFieldLabelstringlabel for field to provide mobile number
smsCarrierFieldLabelstringlabel for mobile carrier drop-down list
smsNumberSubmitstringlabel for submit button for code generation
smsNumberCancelstringlabel for canceling mobile details for SMS auth
smsNumberTitlestringTitle for phone number details
smsCodeMessagestring'Enter the confirmation code'
smsCodeFieldLabelstring'Confirmation Code'
smsCodeSubmitstringLabel for confirmation code submit button
smsCodeCancelstringLabel for cancel confirmation code submission
smsCodeErrorstringerror message when confirmation code is invalid
smsHaveAccessCodestringLabel for checkbox to specify that the user has access code
smsValidityDurationinthow long confirmation code should be considered valid (in minutes)
smsMessageFormatstringformat of access code sms message.'{{code}}'and'{{duration}}'are place holders and should be retained as is.
sponsorEmailstringlabel for Sponsor Email
sponsorNamestringlabel for Sponsor Name
sponsorRequestAccessstringsubmit button label request Wifi Access and notify sponsor about guest request
sponsorSubmitstringsubmit button label to notify sponsor about guest request
sponsorStatusDeniedstringtext to display when sponsor denies request
sponsorStatusApprovedstringtext to display if sponsor approves request
sponsorStatusPendingstringtext to display if request is still pending
sponsorEmailErrorstring'Please provide valid sponsor email'
sponsorNameErrorstring'Please provide sponsor's name'
sponsorBackLinkstring'Go back and edit request form'
sponsorCancelstring'Cancel'
sponsorInfoApprovedstring'Your request was approved by'
sponsorInfoDeniedstring'Your request was denied by'
sponsorInfoPendingstring'Your notification has been sent to'
sponsorsInfoApprovedstring“Your request was approved”
sponsorsInfoDeniedstring“Your request was denied”
sponsorsInfoPendingstring“Your notification has been sent to the sponsors”
sponsorNotePendingstring'Please wait for them to acknowledge.'
sponsorSelectEmailstring“Select Sponsor”
sponsorsErrorstring“Please select a sponsor”
authButtonSponsorstringlabel for Sponsor auth button
authButtonAmazonstringlabel for Amazon auth button
authButtonAzurestringlabel for Azure auth button
authButtonEmailstringlabel for Email auth button
authButtonMicrosoftstringlabel for Microsoft auth button
smsCarrierDefaultstring'Please Select'
smsCarrierErrorstring'Please select a mobile carrier'
smsCodeTitlestring'Access Code'
smsCountryFieldLabelstring'Country Code'
smsCountryFormatstring'+1'
smsNumberErrorstring'Invalid Mobile Number'
smsNumberFormatstring'2125551212 (digits only)'
smsNumberMessagestring'We will send an access code to your mobile number which you can use to connect to the WiFi network. Message and data rates may apply.'
smsUsernameFormatstring'username'
accessCodeAlternateEmailstring'Use alternate email address'
emailMessagestring'We will email you an authentication code which you can use to connect to the WiFi network.'
emailCodeErrorstring'Please provide valid alternate email'
emailCancelstring'Cancel'
emailFieldLabelstring'Enter your email address'
emailTitlestring'Sign in with Email'
emailSubmitstringLabel for confirmation code submit button using email auth
emailCodeCancelstringLabel for cancel confirmation code submission using email auth
emailCodeFieldLabelstring“Confirmation Code”
emailCodeMessagestring“Enter the access number that was sent to your email address.”
emailCodeSubmitstring“Sign In”
emailCodeTitlestring“Access Code”
authLabelstring'Connect to WiFi with'
sponsorEmailTemplatestringhtml template to replace/override default sponsor email template
privacyPolicybooleandefault is false
privacyPolicyTextstringprivacy notice text
privacyPolicyAcceptLabelstringprefix of the label of the link to go to /privacy_notice,
privacyPolicyLinkstringlabel of the link to go to /privacy_notice,
privacyPolicyErrorstringerror message when privacy notice is not accepted”,

Sponsor Email Template supports following template variables:

NameDescription
approve_urlRenders URL to approve the request; optionally &minutes=N query param can be appended to change the Authorization period of the guest, where N is a valid integer denoting number of minutes a guest remains authorized
deny_urlRenders URL to reject the request
guest_emailRenders Email ID of the guest
guest_nameRenders Name of the guest
field1Renders value of the Custom Field 1
field2Renders value of the Custom Field 2
companyRenders value of the Company field
sponsorlinkvalidity_durationRenders validity time of the request (i.e. Approve/Deny URL)
authexpireminutesRenders Wlan-level configured Guest Authorization Expiration time period (in minutes), If not configured then default (1 day in minutes)

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
X-CSRFTokenstring
Content-Typestring