Skip to main content
POST
Add a Knowledge Base folder

Authorizations

Authorization
string
header
required

A group API key, sent as Authorization: Bearer sw_live_…. Keys from staging and the demo start sw_test_ instead. A group admin creates keys in Settings → Integrations → API keys.

Scopes

files:write

Headers

Idempotency-Key
string

Unique per folder: any printable text up to 255 characters. A retry with the same key and body within 24 hours answers with the first folder instead of making another. Recommended.

Required string length: 1 - 255

Body

application/json

A new folder. It starts open to every leader and shared with nobody else; a folder made inside another follows that folder’s restriction and sharing. An admin changes either in Scoutworks.

name
string
required

Unique among the folders beside it. Up to 100 characters.

Required string length: 1 - 100
parentId
string<uuid> | null

Make it inside this folder. Omit, or send null, for the top level.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
{key}
any

Response

The folder an earlier request with the same Idempotency-Key made.

data
object
required

A Knowledge Base folder. Folders nest: build the tree from parentId.

{key}
any