Analysis groups
Links multiple agents to the analysis group identified by analysis_group_id in a single call and returns one link_id per created link. Use this to attach a batch of existing agents to the same analysis group at once. The agents must already exist (create them with POST /api/ext/agent).
curl --request POST \
--url 'https://api.nabrah.ai/api/ext/analysis/<analysis_group_id>/agents' \
--header 'X-API-Key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"agent_ids": [
"018f3a2b-9c4d-7e1a-bf52-0a1b2c3d4e5f",
"018f3a2b-8b3c-7e1a-bf52-0a1b2c3d4e5f"
]
}'{
"link_ids": [
"00000000-0000-4000-8000-000000000000"
]
}analysis_group_id (path) comes from GET /api/ext/analysis. Each value in agent_ids comes from GET /api/ext/agent.
Returns { "link_ids": [...] } — one ID per agent linked. Use any with DELETE /api/ext/analysis/link/{link_id} to remove a specific link. For a single agent, POST /api/ext/analysis/{analysis_group_id}/agent is simpler.
link_idsX-API-KeystringheaderrequiredYour workspace API key. Create one in the dashboard under API keys.
analysis_group_idstringrequiredUUID of the analysis group to link agents to.
Get this from GET /api/ext/analysis or from the create response (POST /api/ext/analysis).
Link several agents to this analysis group in one request.
{
"agent_ids": [
"018f3a2b-9c4d-7e1a-bf52-0a1b2c3d4e5f",
"018f3a2b-8b3c-7e1a-bf52-0a1b2c3d4e5f"
]
}Successful Response
application/json
Validation Error
application/json