Site
Summary of site endpoints
- GET /admin/api/site - get data for the site.
- PUT /admin/api/site - overwrite all attributes of the site.
- PATCH /admin/api/site - merge new attributes with site's current attributes.
- POST /admin/api/site/favicon - upload a new favicon for the site.
- DELETE /admin/api/site/favicon - delete the current favicon of the site.
- PUT /admin/api/site/data/key_1 - update custom data field of the site.
- DELETE /admin/api/site/data/key_1 - remove a custom field from a site.
Get data for the site
GET /admin/api/site
Example response:
Status: 200 OK
{
"meta_keywords": null,
"created_at": "2014-01-03T09:19:04.000Z",
"updated_at": "2014-01-22T14:58:01.000Z",
"verified": true,
"search_enabled": false,
"branding_enabled": true,
"indexed_at": "2014-01-24T13:08:05.012+03:00",
"robots_header": null,
"title_format": null,
"title_separator": null,
"data": {
"my_key_1": "Value 1",
"my_key_2": 2
},
"public_url": "http://helloworld.voog.co/",
"sitemap_enabled": true,
"sitemap_inc_articles": true,
"sitemap_inc_tags": false,
"sitemap_inc_products": false,
"referral_code": null,
"icon": {
"filename": "favicon.png",
"size": 4923,
"content_type": "image/png",
"width": 48,
"height": 48,
"created_at": "2025-05-26T08:48:00.000Z"
},
"has_custom_robots_txt": false,
"robots_txt": "User-agent: *\nDisallow:\nDisallow: /files/\nDisallow: /photos/\nDisallow: /admin/\n\nsitemap: http://dev.voog.computer/sitemap.xml\n",
"data_usage": 332682,
"custom_design": true,
"seo": {
"full_title": "Home page – My new site"
},
"subscription": {
"subscription_plan": "plus",
"subscription_period": "1M",
"subscription_started_at": "2014-01-03T09:19:05.000Z",
"subscription_expires_at": "2014-02-03T09:19:05.000Z",
"active": true,
"type": "trial"
},
"stats": {
"webtools_verify_key": "googlef52f1d814b8972e9.html",
"stats_google_analytics": "<script type=\"text/javascript\">\n\n var _gaq = _gaq || [];\n _gaq.push(['_setAccount', 'UA-XXXXXXX-X']);\n _gaq.push(['_setDomainName', 'helloworld.voog.co']);\n</script>",
"stats_custom_header": null,
"stats_edicy_code": "<script type=\"text/javascript\">\nvar _ews = _ews || {_account: 'A-36-1', _tzo: '7200'};</script>",
"stats_edicy_timezone": "Tallinn",
"stats_edicy_utc_offset": 7200
}
}
Parameters
include_subscription- includes site subscription related data (eg?include_subscription=true).include_stats- includes statistic related attributes (eg?include_stats=true).
Update attributes of the site
PUT /admin/api/site
This request updates the site attributes with provided attributes. It replaces data attribute with new key set if data attribute is present in request.
PATCH /admin/api/site
This request updates the site attributes with provided attributes. It merges provided keys to data attribute if data attribute is present in request.
Example request:
PUT http://helloworld.voog.co/admin/api/site
Example data:
{
"search_enabled": true,
"webtools_verify_key": "googlef52f1d814b8972e9.html",
"stats_google_analytics": "<script>var analytics=\"1\";</script>",
"stats_edicy_timezone": "London",
"robots_header": "noindex",
"sitemap_enabled": true,
"sitemap_inc_articles": true,
"sitemap_inc_tags": false,
"sitemap_inc_products": false,
"has_custom_robots_txt": true,
"robots_txt": "User-agent: *\nDisallow: /files/\n",
"data": {
"my_new_key": ["foo", "bar"],
"value": "My value"
}
}
Example response:
Status: 200 OK
{
"meta_keywords": null,
"created_at": "2014-01-03T09:19:04.000Z",
"updated_at": "2014-01-22T15:11:02.000Z",
"verified": true,
"search_enabled": true,
"branding_enabled": true,
"title_format": null,
"title_separator": null,
"data": {
"my_new_key": ["foo", "bar"],
"value": "My value"
},
"robots_header": "noindex",
"public_url": "http://helloworld.voog.co/",
"sitemap_enabled": true,
"sitemap_inc_articles": true,
"sitemap_inc_tags": false,
"sitemap_inc_products": false,
"referral_code": null,
"icon": {
"filename": "favicon.png",
"size": 4923,
"content_type": "image/png",
"width": 48,
"height": 48,
"created_at": "2025-05-26T08:48:00.000Z"
},
"has_custom_robots_txt": true,
"robots_txt": "User-agent: *\nDisallow: /files/\n",
"data_usage": 332682,
"custom_design": true
}
Parameters
Optional parameters:
search_enabled- turns site search section on/off when implemented in layouts (default:false).branding_enabled- show Voog brand in site footer (default:true).title_format- default title format for site page title tags. Defaults topage_site. Supported values and their corresponding patterns:page_site-<page_title> <separator> <site_title>site_page-<site_title> <separator> <page_title>page-<page_title>
title_separator- default title format separator for site page title tags. Defaults to–.webtools_verify_key- the Google Webmaster tools verification code (file name) in format "googlexxxxxxxxxxxxxxxx.html" (e.g."googlef52f1d814b8972e9.html", default:null).stats_google_analytics- tracking code for Google Analytics service (default:null).stats_edicy_timezone- name of the timzone (e.g."Pacific Time (US & Canada)", default:null). Sets the time-zone for Voog built in reporting system.stats_custom_header- custom header code (default:null).robots_header- site-levelX-Robots-Tagvalue. Overrides page and article level settings.has_custom_robots_txt- toggle customrobots.txt. Iftrue, butrobots_txtis not set,robots_txtwill receive a default value. Iffalse, any customrobots.txtwill be deleted.robots_txt- customrobots.txtcontents. Ignored ifhas_custom_robots_txtis nottrue.sitemap_enabled- allow servingsitemap.xml, defaults totrue.sitemap_inc_articles- include articles in the sitemap, defaults totrue.sitemap_inc_tags- include blog tags in the sitemap, defaults tofalse.sitemap_inc_products- include e-commerce product canonical pages in the sitemap, defaults tofalse.referral_code- referral code for the site, defaults tonull. Note that this code cannot be changed if code already exists or if site has purchased a plan.data- key/value based custom hash store. If attributedatais present in request then new value replaces existing data value. (NB! Keys with prefixesinternal_are protected and read only.)meta_keywords[deprecated] - cross site keywords set (default:null).
Upload a new favicon for the site
POST /admin/api/site/favicon
Uploads a new favicon for the site. Use a multi-part POST request to send image via API.
When favicon already exists, it will be replaced with the new one.
Expected form field name for image data is favicon.
Example request:
POST http://helloworld.voog.co/admin/api/site/favicon
Example response:
Status: 201 Created
{
"meta_keywords": null,
"created_at": "2014-01-03T09:19:04.000Z",
"updated_at": "2014-01-22T15:11:02.000Z",
"verified": true,
"search_enabled": true,
"branding_enabled": true,
"title_format": null,
"title_separator": null,
"data": {
"my_new_key": ["foo", "bar"],
"value": "My value"
},
"robots_header": "noindex",
"public_url": "http://helloworld.voog.co/",
"sitemap_enabled": true,
"sitemap_inc_articles": true,
"sitemap_inc_tags": false,
"sitemap_inc_products": false,
"referral_code": null,
"icon": {
"filename": "favicon-other.png",
"size": 3249,
"content_type": "image/png",
"width": 48,
"height": 48,
"created_at": "2025-05-26T09:16:00.000Z"
},
"has_custom_robots_txt": true,
"robots_txt": "User-agent: *\nDisallow: /files/\n",
"data_usage": 332682,
"custom_design": true
}
Delete the current favicon of the site
DELETE /admin/api/site/favicon
Deletes the current favicon of the site. If no favicon is set, this request has no effect.
Example request:
DELETE http://helloworld.voog.co/admin/api/site/favicon
Example response:
Status: 204 No Content
Update custom data field of the site
PUT /admin/api/site/data/key_1
Updates or adds a new key to site data keyset.
Example request:
PUT http://helloworld.voog.co/admin/api/site/data/key_1
Example data:
{
"value": "new value"
}
Example response:
Status: 200 OK
{
"meta_keywords": null,
"created_at": "2014-01-03T09:19:04.000Z",
"updated_at": "2014-01-22T15:11:02.000Z",
"verified": true,
"search_enabled": true,
"branding_enabled": true,
"title_format": null,
"title_separator": null,
"data": {
"my_new_key": ["foo", "bar"],
"value": "new value"
},
"robots_header": "noindex",
"public_url": "http://helloworld.voog.co/",
"sitemap_enabled": true,
"sitemap_inc_articles": true,
"sitemap_inc_tags": false,
"sitemap_inc_products": false,
"has_custom_robots_txt": true,
"robots_txt": "User-agent: *\nDisallow: /files/\n",
"data_usage": 332682,
"custom_design": true
}
Remove a custom field from a site
DELETE /admin/api/site/data/key_1
Example request:
DELETE http://helloworld.voog.co/admin/api/site/data/key_1
Example response:
Status: 204 No Content