Create a knowledge record collection
Create an authored record collection — a named kind schema in one writable namespace that authored records are then written to. Requires knowledge:manage where the namespace lives.
v2 compatibility notes
POST /api/v2/knowledge/collections/create creates an authored record collection, the Console’s “new collection”: a named kind schema in one namespace. Authored records are then written to it with records/create. MCP hosts call it through forge_call_operation with operationId createKnowledgeRecordCollection.
The body is { name, namespace, schema }:
name: 1 to 120 characters, with no surrounding spaces;namespace: one namespace in the credential’s writable set (see List knowledge scopes);schema: the kind schema its records follow, withkind,displayName,searchable,titleAttributeandattributes, and optionallyparentKindandrefsnaming kinds that the namespace or a registered provider already holds.
knowledge:manage, and the credential must hold it where the namespace lives: the namespace’s org unit, or the deployment root for company. A namespace outside the writable set, or one whose home the credential does not manage, answers 403 forbidden, recorded. A kind the namespace already holds answers 409 conflict (collection_kind_exists). An invalid name or schema answers 400 bad_request.
The collection is created by, and audited as, the credential:
- an External App or platform key as its principal stamp, with the givers of the grants that allowed it;
- a Personal key as its owner.
201 with the collection, exactly as collections/get reads it. The schema and home cannot be changed later; to change them, create a new collection.
With an Idempotency-Key, a repeat of a completed request returns the recorded response without writing again, but only while the caller may still write that collection.
Authorizations
Headers
1–255 printable ASCII characters. A repeat with the same key and request never runs the write again, a 5xx included. It returns the first response (Idempotency-Replayed: true) only when the route's current authorization policy permits disclosure; otherwise 409 idempotency_result_unavailable. Honoured for External App JWTs and platform and MCP keys; an External App's static companion key is not protected.
1 - 255Body
An authored record collection to create: its name (1 to 120 characters, no surrounding spaces), the namespace it lives in, which must be in the caller's writable namespaces, and the kind schema its records follow. A kind the namespace already holds is refused, and a schema whose parent kind or references name a kind the namespace or a registered provider does not hold is refused.

