---
title: "Simulate decision"
method: POST
path: "/api/projects/{projectId}/decisions/simulate"
tags: ["Decision"]
---

# Simulate decision

`POST /api/projects/{projectId}/decisions/simulate`

Simulates a decision graph evaluation without persisting changes, useful for testing decision logic.

## Path parameters

- `projectId` string, uuid, required

## Request body

- object
  - `published` boolean — Indicates if simulation should use published decisions or draft
  - `releaseId` string, nullable — Optional release ID to use for loading dependent decisions
  - `context` object, nullable — Evaluation context
  - `graph` unknown

## Response `200`

Successful simulation result with trace data

- object — Successful simulation result with trace data
  - `result` unknown
  - `performance` string — Total execution time of the decision
  - `trace` object — Detailed trace of each node execution when trace is enabled

## Other responses

- `400` — Simulation failed due to invalid input or decision logic error

---

[API](https://skmtc.dev/gorules/apis/gorules-agent-api.md) · [All operations](https://skmtc.dev/gorules/apis/gorules-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gorules/gorules-agent-api/revisions/52c0773fcd80/schema)
