---
title: "Add Agent to run"
method: POST
path: "/runs/{id}/agents"
tags: ["Runs"]
---

# Add Agent to run

`POST /runs/{id}/agents`

## Request

- Base URL: `https://localhost:8446/api/v2`
- URL: `https://localhost:8446/api/v2/runs/{id}/agents`
- Auth: API key in header `Authorization`

Adds new Agents to the currnet job run. Fails if the job is not running.

## Path parameters

- `id` number, required

## Request body

- object
  - `agent_info` string, required: array of Agent ids and paths

## Response `200`

Successful response

- object

## Other responses

- `default`: Error response. Depending on the error, either a 4xx or 5xx response status is returned.

---

[API](https://skmtc.dev/resilio/apis/resilio-api.md) - [All operations](https://skmtc.dev/resilio/apis/resilio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/resilio/apis/resilio-api/revisions/ca39130a395e?raw)
