Add an assignment to a variation
Assigns a tool, tool set, sub-agent, or agent pool to a variation. Exactly one target ID must be set. Adding an existing target returns AlreadyExists. Returns the updated variation with its full spec.
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"
Variation ID. Accepts the canonical agentvar_… form or the external_id:<value> form.
"agentvar_01HXKD2E5NQM3T9AYWCF32BSPP"
Body
- Option 1
- Option 2
- Option 3
- Option 4
Attach a single tool, tool set, sub-agent, or agent pool to a variation. Exactly one of the target fields must be set; the assignment kind is inferred from the populated field. Adding an existing target returns AlreadyExists. All targets must be in the variation's workspace and eligible for assignment.