aWhere Manual
DevelopAPIcore-services

Site settings

The settings of the whole site.

Read the site settings

GET
/api/admin/configuration

Authorization

headerAuthorizationBearer <token>

An access token of an OAuth client: Authorization: Bearer <token>.

Response Body

The answer.

curl -X GET "https://platform.example.com/api/admin/configuration" \  -H "Authorization: Bearer $TOKEN"
Empty

Change the site settings

PUT
/api/admin/configuration

Authorization

headerAuthorizationBearer <token>

An access token of an OAuth client: Authorization: Bearer <token>.

Request Body

application/json
  1. body
[key: string]?any

Response Body

The answer.

curl -X PUT "https://platform.example.com/api/admin/configuration" \  -H "Authorization: Bearer $TOKEN" \  -H "Content-Type: application/json" \  -d '{}'
Empty
GET
/api/admin/public-access

Authorization

headerAuthorizationBearer <token>

An access token of an OAuth client: Authorization: Bearer <token>.

Response Body

Whether it is on, and what it would show.

application/json
  1. response
meta?

The copyright and name of the platform.

data?
curl -X GET "https://platform.example.com/api/admin/public-access" \  -H "Authorization: Bearer $TOKEN"
{  "meta": {},  "data": {    "enabled": true,    "publicItems": {      "count": 0,      "truncated": true,      "groups": [        {          "type": "string",          "count": 0,          "items": [            {              "_id": "string",              "name": "string",              "subtype": "string",              "owner": {                "_id": "string",                "displayName": "string"              }            }          ]        }      ]    }  }}
PUT
/api/admin/public-access

Authorization

headerAuthorizationBearer <token>

An access token of an OAuth client: Authorization: Bearer <token>.

Request Body

application/json
  1. body
enabled*boolean

true to turn it on, false to turn it off.

Response Body

The state it is in now.

application/json
  1. response
meta?

The copyright and name of the platform.

data?
curl -X PUT "https://platform.example.com/api/admin/public-access" \  -H "Authorization: Bearer $TOKEN" \  -H "Content-Type: application/json" \  -d '{  "enabled": false}'
{  "meta": {},  "data": {    "enabled": true  }}