---
title: "Trigger an agent run on all nodes"
method: POST
path: "/nodes/applyPolicy"
tags: ["Nodes"]
---

# Trigger an agent run on all nodes

`POST /nodes/applyPolicy`

This API allows to trigger an agent run on all nodes. Response contains a json stating if agent could be started on each node, but not if the run went fine and do not display any output from it. You can see the result of the run in Rudder web interface or in the each agent logs.

## Response `200`

Result

- object
  - `result` 'success' | 'error', required — Result of the request
  - `action` 'applyPolicyAllNodes', required — The id of the action
  - `data` object[], required
    - `id` string, uuid (or "root") — Rudder id of the node
    - `hostname` string — Node hostname
    - `result` string — Result or policy application trigger

---

[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)
