---
title: "Trigger an agent run"
method: POST
path: "/nodes/{nodeId}/applyPolicy"
tags: ["Nodes"]
---

# Trigger an agent run

`POST /nodes/{nodeId}/applyPolicy`

This API allows to trigger an agent run on the target node. Response is a stream of the actual agent run on the node.

## Path parameters

- `nodeId` string, uuid (or "root"), required

## Request body

- ApplyPolicyTriggerInventory
  - `classes` string[] — Parameter to trigger a specific run, like an inventory for instance.

## Response `200`

Agent output

---

[API](https://skmtc.net/rudder/apis/rudder-api.md) · [All operations](https://skmtc.net/rudder/apis/rudder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rudder/rudder-api/revisions/eab988254fba/schema)
