Skip to the documentation
API

List knowledge levels

Every level you can see, how many items each holds and whether you may change items there.

GET/knowledge/levels

Runs the real call on your workspace.

GET /knowledge/levels

Every level you can see, how many items each holds and whether you may change items there.

Example

Needs knowledge:read. The whole workspace comes first, then each domain, then each address. Pass a level’s scope when you add an item.

curl
curl "$OE/knowledge/levels" -H "$AUTH"
Response
{  "object": "list",  "data": [    { "object": "knowledge_level", "scope": "", "level": "workspace", "writable": true, "items": 12 },    { "object": "knowledge_level", "scope": "@acme.com", "level": "domain", "writable": true, "items": 4 },    { "object": "knowledge_level", "scope": "[email protected]", "level": "address", "writable": true, "items": 2 }  ]}

writable is true at the whole workspace only for a caller that reaches every address, at a domain for one that holds the whole domain, and at an address for one that holds that address.

Reference