Change log

Site Globals API

Create, Retrieve, Update and Delete Site Global Groups and their Properties via the public API endpoint using "where" filtering.

GET Site Globals Property Groups List

Retrieves a list of Site Globals Groups as a JSON response based on your provided query parameters.

/api/v2/admin/site-globals

Data / Response:

{
    "Where" : {},
    "Order_By" : "Id",
    "Offset" : 0,
    "Limit" : 100,
}
[
  {
    "Id": 0,
    "CreatedDateTime": "2024-05-22T17:06:39.382Z",
    "Properties": [
      {
        "Id": 0,
        "GroupId": 0,
        "CreatedDateTime": "2024-05-22T17:06:39.382Z",
        "LiquidOutput": "string",
        "LiquidShortOutput": "string",
        "HTMLLiquidOutput": "string",
        "HTMLLiquidShortOutput": "string",
        "Name": "string",
        "Alias": "string",
        "ShortAlias": "string",
        "SortOrder": 0,
        "Type": 0,
        "Value": "string",
        "HTMLAlias": "string",
        "ShortHTMLAlias": "string",
        "Layout": "string"
      }
    ],
    "Name": "string",
    "Alias": "string",
    "ShortAlias": "string",
    "EnableOse": true,
    "EnableToolbox": true
  }
]

POST Site Globals Property Group Create

Creates a new Site Globals Group based on the provided data.

/api/v2/admin/site-globals

Data / Response:

{
  "Name": "string",
  "Alias": "string",
  "ShortAlias": "string",
  "EnableOse": true,
  "EnableToolbox": true
}
{
  "Id": 0,
  "CreatedDateTime": "2024-05-22T17:07:49.084Z",
  "Properties": [
    {
      "Id": 0,
      "GroupId": 0,
      "CreatedDateTime": "2024-05-22T17:07:49.084Z",
      "LiquidOutput": "string",
      "LiquidShortOutput": "string",
      "HTMLLiquidOutput": "string",
      "HTMLLiquidShortOutput": "string",
      "Name": "string",
      "Alias": "string",
      "ShortAlias": "string",
      "SortOrder": 0,
      "Type": 0,
      "Value": "string",
      "HTMLAlias": "string",
      "ShortHTMLAlias": "string",
      "Layout": "string"
    }
  ],
  "Name": "string",
  "Alias": "string",
  "ShortAlias": "string",
  "EnableOse": true,
  "EnableToolbox": true
}

GET Site Globals Property Group Item

Retrieves a single Site Globals Group based on the ID passed in the endpoint URL.

/api/v2/admin/site-globals/group/{group_id}

Data / Response:

N/A
{
  "Id": 0,
  "CreatedDateTime": "2024-05-22T17:10:07.466Z",
  "Properties": [
    {
      "Id": 0,
      "GroupId": 0,
      "CreatedDateTime": "2024-05-22T17:10:07.466Z",
      "LiquidOutput": "string",
      "LiquidShortOutput": "string",
      "HTMLLiquidOutput": "string",
      "HTMLLiquidShortOutput": "string",
      "Name": "string",
      "Alias": "string",
      "ShortAlias": "string",
      "SortOrder": 0,
      "Type": 0,
      "Value": "string",
      "HTMLAlias": "string",
      "ShortHTMLAlias": "string",
      "Layout": "string"
    }
  ],
  "Name": "string",
  "Alias": "string",
  "ShortAlias": "string",
  "EnableOse": true,
  "EnableToolbox": true
}

PUT Site Globals Property Group Update

Updates a single Site Globals Group based on the ID passed in the endpoint URL and data provided.

/api/v2/admin/site-globals/{group_id}

Data / Response:

{
  "Name": "string",
  "Alias": "string",
  "ShortAlias": "string",
  "EnableOse": true,
  "EnableToolbox": true
}
{
  "Id": 0,
  "CreatedDateTime": "2024-05-22T17:07:49.084Z",
  "Properties": [
    {
      "Id": 0,
      "GroupId": 0,
      "CreatedDateTime": "2024-05-22T17:07:49.084Z",
      "LiquidOutput": "string",
      "LiquidShortOutput": "string",
      "HTMLLiquidOutput": "string",
      "HTMLLiquidShortOutput": "string",
      "Name": "string",
      "Alias": "string",
      "ShortAlias": "string",
      "SortOrder": 0,
      "Type": 0,
      "Value": "string",
      "HTMLAlias": "string",
      "ShortHTMLAlias": "string",
      "Layout": "string"
    }
  ],
  "Name": "string",
  "Alias": "string",
  "ShortAlias": "string",
  "EnableOse": true,
  "EnableToolbox": true
}

DELETE Site Globals Property Group Delete

Deletes a single Site Globals Group based on the ID passed in the endpoint URL.

/api/v2/admin/site-globals

Data / Response:

[
  "string"
]
Status 204

GET Site Globals Group Properties List

Retrieves a list of Site Globals Group Properties as a JSON response based on your provided query parameters.

/api/v2/admin/site-globals/properties

Data / Response:

{
    "Where" : {},
    "Order_By" : "Id",
    "Offset" : 0,
    "Limit" : 100,
}
[
  {
    "Id": 0,
    "GroupId": 0,
    "CreatedDateTime": "2024-05-22T17:10:19.139Z",
    "LiquidOutput": "string",
    "LiquidShortOutput": "string",
    "HTMLLiquidOutput": "string",
    "HTMLLiquidShortOutput": "string",
    "Name": "string",
    "Alias": "string",
    "ShortAlias": "string",
    "SortOrder": 0,
    "Type": 0,
    "Value": "string",
    "HTMLAlias": "string",
    "ShortHTMLAlias": "string",
    "Layout": "string"
  }
]

POST Site Globals Group Property Create

Creates a new Site Globals Group Property based on the provided data.

/api/v2/admin/site-globals/{group_id}/property

Data / Response:

{
  "Name": "string",
  "Alias": "string",
  "ShortAlias": "string",
  "Type": "string",
  "Value": "string",
  "HTMLAlias": "string",
  "ShortHTMLAlias": "string",
  "Layout": "string"
}
{
  "Id": 0,
  "GroupId": 0,
  "CreatedDateTime": "2024-05-22T17:07:49.091Z",
  "LiquidOutput": "string",
  "LiquidShortOutput": "string",
  "HTMLLiquidOutput": "string",
  "HTMLLiquidShortOutput": "string",
  "Name": "string",
  "Alias": "string",
  "ShortAlias": "string",
  "SortOrder": 0,
  "Type": 0,
  "Value": "string",
  "HTMLAlias": "string",
  "ShortHTMLAlias": "string",
  "Layout": "string"
}

GET Site Globals Group Property Item

Retrieves a single Globals Group Property based on the ID passed in the endpoint URL.

/api/v2/admin/site-globals/property/{property_id}

Data / Response:

N/A
{
  "Id": 0,
  "GroupId": 0,
  "CreatedDateTime": "2024-05-22T17:10:56.693Z",
  "LiquidOutput": "string",
  "LiquidShortOutput": "string",
  "HTMLLiquidOutput": "string",
  "HTMLLiquidShortOutput": "string",
  "Name": "string",
  "Alias": "string",
  "ShortAlias": "string",
  "SortOrder": 0,
  "Type": 0,
  "Value": "string",
  "HTMLAlias": "string",
  "ShortHTMLAlias": "string",
  "Layout": "string"
}

PUT Site Globals Group Property Update

Updates a single Globals Group Property based on the ID passed in the endpoint URL and data provided.

/api/v2/admin/site-globals/property/{property_id}

Data / Response:

{
  "Name": "string",
  "Alias": "string",
  "ShortAlias": "string",
  "Type": "string",
  "Value": "string",
  "HTMLAlias": "string",
  "ShortHTMLAlias": "string",
  "Layout": "string"
}
{
  "Id": 0,
  "GroupId": 0,
  "CreatedDateTime": "2024-05-22T17:10:56.693Z",
  "LiquidOutput": "string",
  "LiquidShortOutput": "string",
  "HTMLLiquidOutput": "string",
  "HTMLLiquidShortOutput": "string",
  "Name": "string",
  "Alias": "string",
  "ShortAlias": "string",
  "SortOrder": 0,
  "Type": 0,
  "Value": "string",
  "HTMLAlias": "string",
  "ShortHTMLAlias": "string",
  "Layout": "string"
}

DELETE Site Globals Group Property Delete

Deletes a single Globals Group Property based on the ID passed in the endpoint URL.

/api/v2/admin/site-globals/properties

Data / Response:

[
  "string"
]
Status 204


Related Articles

  • Site Settings & Management
    Domains

    The Treepl CMS Domain settings allow you to control default domain, landing pages, domain authentication for system emails along with country and cultural settings like number and currency formatting.
  • Site Settings & Management
    Site Globals

    Site Globals, under ‘Settings’, is where you can set up customised data points for your...
  • Site Settings & Management
    System Pages

    System Pages, under 'Settings', is where you’ll find all those pages required by certain system...
  • Site Settings & Management
    Payment Settings

    Integrate various payment gateways, for multiple countries and currencies, into Treepl CMS for form payments, subscriptions and eCommerce workflows.
  • Site Settings & Management
    Admin Users

    Admin Users, found under ‘Settings’, is where you can control administrator access to your website management and content.
  • Site Settings & Management
    Admin User Roles

    Admin User Roles provide fine-grain control over permissions for users granted with admin access.
  • Site Settings & Management
    Admin Menu Configurator

    Customise the way admin users find and access site content and settings by configuring the admin menu with your own structure, labels, icons and links.
  • Site Settings & Management
    URL Redirects

    URL Redirects, found under ‘Settings’, enable you to set up 301 permanent redirects from a prior, or constructed, URL to another URL (within your domain/s).
  • Site Settings & Management
    Sitemap.xml / Robots.txt

    The Sitemap feature allows you to manage the sitemap.xml content, which lists your site’s important pages/items, their priority and last modified date, in XML format, for SEO and site indexing purposes.
  • Site Settings & Management
    SEO

    Configuring these settings will help search engines and accessibility systems better understand the context of your website.
  • Site Settings & Management
    Misc Settings

    These various site-wide settings allow you to further control and customise the way your website functions, both in the admin and on the front-end.
  • Site Settings & Management
    Frontend API Restrictions

    Enable access to various frontend API endpoints and individually configure user permissions and access rules.
  • Treepl Portal
    Trial Sites

    Trial Sites are your Treepl CMS development environments for starting new site projects, before you publish to a custom domain name.
  • Treepl Portal
    Live Sites

    Live sites are your published Treepl CMS instances that have been activated, have commenced a billing subscription and/or have a custom domain name assigned to them.
  • About Treepl CMS
    File System

    Most of the content management related assets and files used in Treepl CMS are accessible in the file system either via the admin File Manager or via FTP.
  • About Treepl CMS
    Trial Sites vs Live Sites

    Site Performance & Resources Currently, there are no differences in performance or resources limits between...
  • OpenAPI (Admin)
    Categories API

    Create, Retrieve, Update and Delete Categories via the public API endpoint using "where" filtering.
  • eCommerce
    Settings

    These various eCommerce settings allow you to further control and customise the way your website functions, both in the admin and on the front-end, in terms of eCommerce functionality.
  • Site Settings & Management
    Empty Cache

    Clear the server-side cache for generated ‘ImageProcessor’ images throughout the site.
  • Site Settings & Management
    FTP access

    Treepl CMS allows you to access site files through secure SFTP. In this article you will learn how to connect to your Treepl website via SFTP as a reseller and/or admin user, as well as learn about Treepl's file structure.
  • Website Templates
    *Bikes

  • Website Templates
    *Clothing Store

  • Website Templates
    Coffee

  • Website Templates
    *Coworking

  • Website Templates
    Digital Agency

  • Extensions
    Direct Billing

    Allow your customer to pay Treepl CMS directly for their site plan from the admin, as well as activating the site and assign their primary domain name (if the site is still in Trial Site mode).
  • Website Templates
    Furniture

  • Extensions
    Granular White-labeling

    An addition to the regular white-labeling feature, this extension provides branding controls on an individual site, allowing you to customise a site’s brand logo and login screen separately to your overall white-labeling settings.
  • Website Templates
    *Hair Salon

  • Extensions
    Import/Export of Modules

    Quickly and easily replicate (or back-up) a complete Custom Module configuration via import/export, including; Settings, Properties, Layouts and Table setup.
  • Website Templates
    Max

  • Extensions
    Website Backup

    Website Backup allows you to create and restore full site backups, including the site database, FTP files and admin configurations, from manual backups as well as a custom automatic schedule.

External Resources

There are currently no external resources available.

Please let us know if you have any other contributions or know of any helpful resources you'd like to see added here.


Questions?

We are always happy to help with any questions you may have.
Visit the Treepl Forum for community support and to search previously asked questions or send us a message at support@treepl.co and we will consult you as soon as possible.