Site.pro
  • AI Website Builder
    • AI Website Builder
    • Prices
    • Online Stores
    • Collaboration
    • Website Import
    • Plugins
    • Website Builder
    • Templates
    • For Design Studios
    • Languages
    • Affiliate Program
    • Examples
    • For Domain Investors
    • We Build for You
  • Domains
  • Email
  • Accounting Software
    • Accounting Software
    • Modules
    • Prices
    • Integrations, API
    • Accounting companies (366)
    • Software integrators (48)
    • Affiliate Partners
    • Useful Links
    • Business Types
    • Accounting companies
    • Sole Proprietor
    • Invoicing
    • Farmer
    • E-commerce
  • For Resellers
    • Prices
    • White Label
    • Revenue Share
    • Panels
    • How it Works
    • Marketing Materials
    • Mass Import
    • Our Partners
    • Reselling Examples
    • Documentation
    • Free Websites
  • Learn
    • FAQ: Builder
    • Knowledge Base
    • Tutorials
    • Blog
    • Growth Hacking
    • For Hostings
    • Domainity
    • For Education
    • Accounting: Start of Work
    • Teaching Institutions (68)
    • Accounting Courses Worldwide
    • Online Course on UAE Accounting
  • AI Website Builder
    • AI Website BuilderAI creates websites for you
    • PricesAdvanced Features
    • Online StoresBuild online stores
    • CollaborationCo-create websites live
    • Website ImportImport Any Website
    • PluginsBuilder plugin and functions
    • Website BuilderKey Features
    • Templates200+ Awesome Templates
    • For Design StudiosBenefits for Design Studios
    • Languages
    • Affiliate Program
    • Examples
    • For Domain Investors
    • We Build for You
  • Domains
  • Email
  • Accounting Software
    • Accounting SoftwareCloud based ERP
    • ModulesMain accounting software modules
    • Prices30 days free trial
    • Integrations, APIIntegration with external systems
    • Accounting companies (366)Choose your partner for accounting
    • Software integrators (48)Pick your integrations partner
    • Affiliate PartnersPartners and Affiliate program
    • Useful LinksCalculators and Calendars
    • Business TypesUse cases
    • Accounting companies
    • Sole Proprietor
    • Invoicing
    • Farmer
    • E-commerce
  • For ResellersWhite Label
    • PricesRevenue Share. White Label
    • White LabelCustomise Builder
    • Revenue ShareEarn 50% from each upgrade
    • PanelsOne product for all platforms
    • How it WorksCloud or On-Premises
    • Marketing MaterialsVideo. Mockups. Website Blocks
    • Mass Import
    • Our Partners
    • Reselling Examples
    • Documentation
    • Free Websites
  • Learn
    • FAQ: BuilderWebsite Builder
    • Knowledge BaseAccounting Software
    • TutorialsDownload for free
    • BlogSite.pro Blog
    • Growth HackingBoost your sales
    • For HostingsTips on marketing
    • DomainityDomain usage by country
    • For EducationTraining. Tutorials. Resources
    • Accounting: Start of Work
    • Teaching Institutions (68)
    • Accounting Courses Worldwide
    • Online Course on UAE Accounting
  • Register
    By registering, you accept our Terms of Service
  • Log in

    Log in

    New user? Create account
    Forgot password?
  • $
  • English
Server Requirements
  • Published websites
  • Site.pro IPs
Builder installation / update
On-Premises
  • Server Requirements
  • Installation
  • CRON
  • Update
  • Migration to version v4
  • Collaboration Service
  • Extra configuration
  • Manual update
  • Changing PHP version
  • Support
Plugin installation
  • Hosting Panel
    • cPanel
    • DirectAdmin
    • Plesk
    • Sentora/ZPanel
    • ISPmanager
    • InterWorx
    • Vesta
    • Hosting Controller
    • CentOS Web Panel
    • Hestia
    • LiveConfig
    • Webuzo
    • Custom hosting (API)
  • Billing Panel
    • WHMCS
    • Blesta
    • Upmind
    • Custom billing (API)
API documentation
  • Builder
    • Create session (SSO)
    • Remove existing session
    • Create website backup
    • Restore website backup
  • Templates
    • List template categories
    • List template category tags
    • List templates
    • Get page types available in templates
  • Import
    • Import website
    • Get website import status
    • Import website block
    • Get website block import status
    • Check if imported website is owned by user
  • Websites
    • Create website
    • Modify website
    • Rename website
    • Publish website
    • Edit website pages
    • Edit website settings
    • Delete website
    • Get website template
    • Get website pages
    • Get website variables
    • Get template variables
    • Get website settings
    • Add pages to website
    • Duplicate pages in website
    • Remove pages from website
  • Website Blocks
    • Create empty website
    • Modify website
    • Inspect website
    • Add empty page
    • Modify page
    • Remove page
    • Inspect page
    • Inspect composition
    • Modification descriptor structure by element type
    • Add blocks from compositions
    • Remove blocks
    • Move blocks
    • Modify blocks
    • Inspect block
  • Licenses
    • Get list of published websites
    • Get statistics of publications/openings
    • Block/unblock published website
    • Controlling IP list
    • Read/add/delete hosting plans
  • Integration with your system
    • Allow/disallow domain in builder
    • Check if domains are allowed in builder
  • FAQ
    • Get posts
    • Get categories
Add-ons documentation
  • For Website
    • Public demo URL
    • Editing plans
    • User registration from public demo
    • Website import
    • Generate with AI
  • For Builder
    • Adding custom templates
    • Adding custom builder plugins
    • Scripts
For developers
  • Programming reference
  • Directory structure
  • Meta information (main.json)
  • Frontend logic (main.js)
  • Element template (main.html)
  • Backend logic (main.php)
  • Plugin testing
  • Custom element plugin
  • E-commerce plugin
  • Overriding UI
  • Other examples
Change Log
API documentation → Websites

Edit website settings available since version 4.0.46 / 3.7.374 On-Premises

This API action requires a loginHash, that can be received by using "Create session" API call with additional parameter more = true. Furthermore [API URL will appear after you log in or sign up] in Call API URL should be replaced with builderApiUrl received from "Create session" API call, so new API url for this action would be builderApiUrl + website/settings.

[API URL will appear after you log in or sign up] (builderApiUrl + "website/settings")
HTTP Basic
[API Username will appear after you log in or sign up]
[API Password will appear after you log in or sign up]
POST
application/json
application/json
Note: All website settings changes made by calling this API will not reflect published website instantly, but only settings in the editor. Changes will be applied only after the website is published.

JSON request Object Properties:

  • String - login hash you received from "Create session" API call;
  • Boolean - (optional) if true then published website will forcefully be redirected to HTTPS protocol; if false then no forced redirection will be applied;
  • Boolean - (optional) possible values:
    • Number - forced redirection will be not be applied to published website;
    • Number - published website will forcefully be redirected to non-WWW domain version;
    • Number - published website will forcefully be redirected to WWW domain version;
  • Boolean - (optional) if true then context menu will not appear on published website when right-clicking website area with a mouse;
  • Boolean - (optional) if true then published website will forcefully be redirected to URL with trailing slashes at the end (for example URL "" will redirect to ""); if false then no forced redirection will be applied;
  • String - (optional) custom code for field "Before </head>" for "Common" item;
  • String - (optional) custom code for field "Before </body>" for "Common" item;
  • String - (optional) custom code for field "After </body>" for "Common" item;
  • Page Scripts Object - (optional) custom code for field "Before </head>" for specific pages;
  • Page Scripts Object - (optional) custom code for field "Before </body>" for specific pages;
  • Page Scripts Object - (optional) custom code for field "After </body>" for specific pages;

where:
  • Page Scripts Object - associative array of custom code for specific pages. The object must be of structure:
    {
        "pageId1": "code1",
        "pageId2": "code2",
        ...
    }
    where pageId is ID of page which can be retrieved with Get website pages API method, and code is custom code for fields specified above in description of properties.

JSON response Object Properties:

  • Boolean - (optional) returned on success, contains value true, indicates successfully executed action;
  • String - (optional) returned on error, contains error message, indicates failure to execute action;
© Site.pro 2011. Website Builder. United States.
Contact SalesTerms of ServicePrivacy Policy