---
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 operation, newest first.

## Timeline

Changed in 2 of 20 revisions.

- **2026-10-21** `a5b639d63138`: 8 breaking
- **2026-08-04** `ca78ba235703`: 2 warning

## Changes

- **2026-10-21** `a5b639d63138`: 8 breaking
  - the `resources/items/changes/items/sourceResource` response's property type changed from no type to `object` for status `200`
  - the `resources/items/changes/items/sourceResource/allOf[#/components/schemas/ResourceInfoDto]/updatedBy` response's property type changed from no type to `object` for status `200`
  - the `resources/items/changes/items/targetResource` response's property type changed from no type to `object` for status `200`
  - the `resources/items/changes/items/targetResource/allOf[#/components/schemas/ResourceInfoDto]/updatedBy` response's property type changed from no type to `object` for status `200`
  - the `resources/items/sourceResource` response's property type changed from no type to `object` for status `200`
  - the `resources/items/sourceResource/allOf[#/components/schemas/ResourceInfoDto]/updatedBy` response's property type changed from no type to `object` for status `200`
  - the `resources/items/targetResource` response's property type changed from no type to `object` for status `200`
  - the `resources/items/targetResource/allOf[#/components/schemas/ResourceInfoDto]/updatedBy` response's property type changed from no type to `object` for status `200`
- **2026-08-04** `ca78ba235703`: 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/novu-api/docs/v2/environments/:targetEnvironmentId/diff/post.md) - [API](https://skmtc.dev/novu/apis/novu-api.md) - [Page](https://skmtc.dev/novu/apis/novu-api/changes/v2/environments/:targetEnvironmentId/diff/post)
