Create a new component (agent, team, or workflow).
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Display name for the component |
component_id | string | No | Unique ID (auto-generated from name if omitted) |
component_type | string | Yes | One of: agent, team, workflow |
description | string | No | Description of the component |
metadata | dict | No | Additional metadata |
config | dict | No | Initial configuration |
label | string | No | Version label |
stage | string | No | Version stage (default: draft) |
notes | string | No | Version notes |
set_current | bool | No | Set this version as current |
201ComponentResponse with the created component.