---
title: "Changes to Compare resources between environments"
method: POST
path: "/v2/environments/{targetEnvironmentId}/diff"
---

# Changes to Compare resources between environments

`POST /v2/environments/{targetEnvironmentId}/diff`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 1 of 13 revisions.

- **2026-08-04** `798a5a42d4c6` — 2 warning

## Changes

- **2026-08-04** `798a5a42d4c6` — 2 warning
  - added the new `AGENT_EXISTS_IN_TARGET` enum value to the `resources/items/dependencies/items/reason` response property for the response status `200`
  - added the new `AGENT_REQUIRED_FOR_WORKFLOW` enum value to the `resources/items/dependencies/items/reason` response property for the response status `200`

---

[Operation](https://skmtc.dev/novu/apis/deprecated-novu-api-use-openapi-json-yaml-instead/docs/v2/environments/:targetEnvironmentId/diff/post.md) · [API](https://skmtc.dev/novu/apis/deprecated-novu-api-use-openapi-json-yaml-instead.md) · [Page](https://skmtc.dev/novu/apis/deprecated-novu-api-use-openapi-json-yaml-instead/changes/v2/environments/:targetEnvironmentId/diff/post)
