Create a new variation
Creates a variation and all assignments in spec atomically. Omitted assignment lists start empty. Invalid targets or memory cascades reject the entire request.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Workspace ID.
"workspace_01HXKD2E5NQM3T9AYWCF133E3Q"
Agent ID. Accepts the canonical agent_… form or the external_id:<value> form.
"agent_01HXKD2E5NQM3T9AYWCFMGWT9Y"
Body
Create agent variation request
CreateResourceMetadata contains the user-provided fields for creating a workspace-scoped resource. Read-only fields (id, account_id, workspace_id, profile_id, created_at) are excluded since they are set by the server.
AgentVariationSpec defines the complete operational configuration for a variation, including assignments. Reads always populate both assignment lists, even when include_info is false. Create and update validate and persist the configuration atomically: any invalid target or cascade rejects the entire request. Targets must belong to the variation's workspace and pass the same eligibility checks as the dedicated add methods.