Environments
Compare resources between environments
Compares workflows and other resources between the source and target environments, returning detailed diff information including additions, modifications, and deletions.
post/v2/environments/{targetEnvironmentId}/diff
Path parameters
targetEnvironmentIdstring required
Target environment ID (MongoDB ObjectId) to compare against
Headers
idempotency-keystring
A header for idempotency purposes
Request body
Example request
{
"sourceEnvironmentId": "507f1f77bcf86cd799439011"
}Response
OK
Example response
{
"resources": [
{
"sourceResource": {
"updatedAt": "2024-01-15T10:30:00.000Z"
},
"targetResource": {
"updatedAt": "2024-01-15T10:30:00.000Z"
},
"changes": [
{
"sourceResource": {
"updatedAt": "2024-01-15T10:30:00.000Z"
},
"targetResource": {
"updatedAt": "2024-01-15T10:30:00.000Z"
}
}
]
}
]
}