Asignar nodos de la base de conocimientos a todos los workers de un agente.
POST /v1/knowledge/assignments
Assign knowledge base nodes to all of an agent’s workers.
POST
Asignar nodos de la base de conocimientos a todos los workers de un agente.
Associates one or more knowledge base nodes with an agent. The assignment propagates to all of the agent’s workers (except
supervisor workers), adding the given node_id values to their list of accessible knowledge. The operation is idempotent: if a node was already assigned, it isn’t duplicated.
To list available agents use GET /v1/agents. To get validated node_id values for your folders and documents use GET /v1/knowledge/tree.
After the assignment, a reindex is enqueued to refresh the workers’ cached embeddings.
Endpoint
Required scope
knowledge:assign
Headers
Body
Example request
Response
200 OK
400 / 401 / 403 / 404 / 429
400 BAD_REQUEST:agent_idornode_idswith invalid format, ornode_idsempty.403 FORBIDDENwithcode: INSUFFICIENT_SCOPE: the PAT doesn’t haveknowledge:assign.404 NOT_FOUND: theagent_iddoesn’t exist, or one or morenode_idsdon’t belong to your company.
Authorizations
Personal Access Token con prefijo kbai_pk_. Generar desde el portal con permiso developer.manage_tokens.
Body
application/json
Response
200 - application/json