Skip to content
Last updated

Create a new composite slice that aggregates multiple knowledge slices.

POSThttps://api.aitronos.com/v1/organizations/{organization_id}/knowledge/composites

Creates a composite slice that references one or more existing knowledge slices as members. This allows querying across multiple slices as a single unit. Requires the MANAGE_KNOWLEDGE_SLICES capability.

Path Parameters

organization_id string required

The unique identifier of the organization (format: org_*).

Request Body

name string required

The name of the composite slice (1-255 characters).

description string optional

A description of the composite slice.

member_slice_ids array of strings required

List of knowledge slice IDs to include in this composite (minimum 1).


Returns

The newly created composite slice object (HTTP 201) with is_composite set to true.

cURL
curl -X POST https://api.aitronos.com/v1/organizations/org_xyz789/knowledge/composites \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "All Engineering Knowledge",
    "description": "Combines backend and frontend docs",
    "member_slice_ids": ["kslice_abc123", "kslice_def456"]
  }'