Sites
How to list docs-sites
Request Overview
Actions | Returns | Description |
|---|---|---|
|
| Get all sites |
Fields
Site Object
Field | Type | Required | Specifics |
|---|---|---|---|
|
| yes | Some name |
|
| Domain of the site | |
|
| Indicates whether the website is publicly accessible or not. | |
|
| The default locale of a site. | |
|
| Array of locales that are available in public | |
| |||
|
| ||
|
| ||
|
| Last change date of the site, its categories or articles. |
Requests
Get All Sites
GET /api/v1/docs/sites Returns, a collection of sites
GET /api/v1/docs/sites HTTP/1.1
Authorization: Bearer {{token}}
Hs-Client-Id: {{hs_client_id}}
Host: api.helpspace.com
Content-Type: application/json; charset=utf-8200 Response
HTTP/1.1 200 OK
Content-Type: application/json
...
{
"data": [
{
"id": 1,
"name": "Some name",
"url": "http:\/\/support.domain.com",
"is_public": "1",
"locale_default": "en",
"locales_enabled": [
"en",
"de"
],
"is_multi_lingual": 1,
"created_at": "2024-07-12T11:15:59+00:00",
"updated_at": "2024-08-08T11:17:34+00:00",
"last_modified_at": "2024-08-08T13:17:34+00:00"
},
...
],
"links": {
...
},
"meta": {
...
}
}Information about links and meta, please read this article.
Query parameters
By default, the site API will return all sites.
For example: /api/v1/docs/sites?modified-since=2024-08-08T13%3A17%3A34%2B00%3A00
Query Parameters | Possible Values | |
|---|---|---|
Modified Since | ?modified-since=2024-08-08T13%3A17%3A34%2B00%3A00 Returns all sites that had modifications since the given date. |
|