Create Setting

This creates a new env settings. Available request body property values.

Body: raw JSON

namedescription
category[string] Required. Unique. This will appear in the manager-ui.
keyFriendly[string] Required. Name that will be visible as label in the manager-ui
key[string] Required. A unique no-space identifier for this setting object.
value[string] Required. The default value.
admin[boolean] Required. If this settings can only be access by Admin users.
parselyAccess[boolean] Required. If this settings can be access in parsely.
dataType[string] Required. Values can be either checkbox, textarea, text or dropdown
options[string] Optional comma-separated string that will be used by checkbox and dropdown datatypes.
tips[string] Optional description that will be shown via a tooltip.

Notes

  • if dataType is set to "dropdown" options must contain a string value that follows this structure "key1:value1key2:value2..."
  • if dataType is set to "checkbox" options must contain a string value that follows this structure "value1,value2"

Available Webengine settings:

routingkeykey_friendlydescription
generalsite_protocolforces TLS redirect if https. Possible value: https:http
generalalways_redirect_to_https1 force redirect to https, 0 ignore. Default value is 0
generalpreferred_domain_prefix1 force add www, 0 ignore. Default value is 0
generalbase_directory
generaladd_lang_code_to_pathsAppends the language code after the domain before the full path.
generaldnt-policyAdds DNT header (do not track) if 1, ignored if 0. Default value is 0.
generalrobots_textAppends the given string to the Robots.txt file.
generalrobots_on1 Tells crawlers to crawl, 0 tells crawlers no crawling. Default value is 1.
generalshow_domain_in_titleAdd "
generalshow_in_titlelegacy fallback to show_domain_in_title. Default value is 1.
generalmedia_proxy_urlMedia Proxy URLURL used to proxy your media assets. See https://zesty.org/services/media-storage-micro-dam/micro-dam-domains.
developerpermanent_redirectForce redirects requested page to the URL stated, and appends path and query string, ignore if empty string
developerajax_cors_allow_any_originRestricts request to the origin specified, * is any. Defaul value is *.
developergqlTurn on access to GraphQL endpoints to run an Appollo GQL Server1 Turns on GraphQL endpoints, 0 turn off. Default value is 0.
developergql_originGraphQL Allow OriginRestricts request to the origin specified, * is any. Defaul value is *.
developerauto_include_js_in_headAdds the script link to the compiled javascript file that Zesty make from all js files. Default value is 1.
developerbasic_content_api_enabledAccess to Instant JSON API for content.[checkbox]
developeroverwrite_head
developerpermanent_redirect301 Redirect every request to a different website by appending the query parameter to the given domain name.
securitylimit_dev_site_to_ip_whitelist403s to any IP not listed in when preview resolves, ignore if empty string.
securitylimit_live_site_to_ip_whitelist403s to any IP not listed in when production resolves, ignore if empty string.
securityx_frame_optionsHeader: X-Frame-OptionsAdds response header 'X-Frame-Options'. See MDN docs. Default value is *.
securitystrict_transport_securityStrict-Transport-SecurityAdds response header 'Strict-Transport-Security'. See MDN docs.
securitycontent_security_policyContent-Security-PolicyAdds response header 'Content-Security-Policy'. See MDN docs.
securityx_content_type_optionsX-Content-Type-OptionsAdds response header 'X-Content-Type-Options'. See MDN docs. Default value is nosniff.
securityreferrer_policyReferrer-PolicyAdds response header 'Referrer-Policy'. See MDN docs. Default value is unsafe-url.
securityfeature_policyFeature-PolicyAdds response header 'Feature-Policy' . See MDN docs.
securitypreview_lock[checkbox] This option on preview the preview url from being accessed when a user is not logged in.
securitypreview_lock_passwordPassword used to allow non-authenticated zesty users view this preview.
routingfriendly_paginationDefault value is 0
contact-formhoneypotForm Honey PotValue checked in a Zesty lead form post request, used to prevent bot submission, ignored if empty string
contact-formsafe_emailsAn allow list for override emails in a form submission
contact-formsending_emailThe email address thtat is used to send from when a ZCF hidden value exists on a form.
contact-formemail_overrideSends an email to the email given when a Zesty contact form is submitted.
seocanonical_tags_enabledValues available are 0 for CANONICAL_MODE_OFF, 1 for CANONICAL_MODE_ON_STRIP_PARAMS, 2 for CANONICAL_MODE_ON_WHITELIST_PARAMS, and 3 for CANONICAL_MODE_ON_CUSTOM_PATH.
seoautomated_feed_xmlAutomated feed.xmlTurns on/off auto generated /feed.xml. Default value is 1
tag_managersgtm_idAdds google tag manager script to the html head using the given value, if empty ignored.
analyticsgoogle_urchin_idAdds google analytics tag to the html head.
analyticsuniversal_codeAdds google analytics universal tag to the html head. Default value is 1.
analyticsgoogle_auto_linkerComma-separated domains (no quotes). Adds ga('linker:autoLink', ['domain','domain']) to the universal google tag output.
analyticsdisplay_advertising_supportAdds ga('require', 'displayfeatures'); to universal tag output.
groupbyclient_keyGroupBy Client KeySecret Key used to make requests for the configured endpoint.
groupbycollectionGroupBy Default CollectionGroupBy collection to access.
groupbyurlGroupBy Client EndpointGroupBy API URL base.
proxydevRoot URL to proxy file storeThe key is the branch. Attempts to resolve a file at the the proxy url for dev preview.
proxyliveRoot URL to proxy file storeThe key is the branch. Attempts to resolve a file at the the proxy url for live/prod.
i18ndefault_pageDefault i18n page sets <link rel="alternate" href="' .$_Z['SETTINGS']['i18n']['default_page'] . '" hreflang="x-default" />. Default value is relative path /i18n/.
Language
Credentials
Header
URL