brandContext

API · Context · Create a context document

Create a new context document and link it to the brand kit.

Two creation modes:

  1. Link existing: Provide document_id to link an existing KnowledgeDoc.
  2. Inline creation: Provide doc_type and name (plus optional description, data, content) to create a new KnowledgeDoc and link it automatically.

Singleton constraint: For predefined types (brand_voice, icps, usps, etc.), only one document per type per brandkit is allowed. Attempting to create a duplicate will return a 400 error.

The canonical_key is auto-set from doc_type if it matches a predefined type.

post/api/v1/brandkit/{brand_id}/context-documents

Request

  • Base URL
    https://api.simplified.com
  • Auth
    API key in header Authorization

Path parameters

brand_idstring uuid required

Brand kit UUID

Request body

document_idstring uuid

Link an existing KnowledgeDoc by ID (mutually exclusive with inline fields)

doc_typestring

Document type key for inline creation (e.g. brand_voice, style_guide)

namestring

Document name for inline creation

descriptionstring

Document description (optional, defaults to empty)

dataobject

Structured JSON data (optional, defaults to empty object)

contentstring

Markdown content (optional, defaults to empty)

Response

Context document created

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.