Attach a memory layer to a variation
Attaches a memory layer by its ID. If already attached, returns AlreadyExists regardless of the requested position. Otherwise, an omitted position appends at the most general end. Returns the updated variation.
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
Attach a memory layer to a variation. Use UpdateAgentVariationMemoryLayer or replace the spec list to reposition an existing layer. Rejected when:
- the layer is already assigned, regardless of position (AlreadyExists)
- the layer is system-managed (FailedPrecondition)
- the variation is already at the 10-assignment cap (FailedPrecondition)
- the position is already in use on this variation (InvalidArgument)
Layer to attach. Accepts the canonical memlyr_… form or the external_id:<value> form.
1"memlyr_01HXKD2E5NQM3T9AYWCFFFBMJH"
Position in the baseline cascade (lower = more specific). If omitted, the server appends at the most general end (max existing position + 1).