v4

OpenAPI 3.0.0MIT2026-07-311494532.1 MB
Environments

Publish resources to target environment

Publishes all workflows and resources from the source environment to the target environment. Optionally specify specific resources to publish or use dryRun mode to preview changes.

post/v2/environments/{targetEnvironmentId}/publish

Path parameters

targetEnvironmentIdstring required

Target environment ID (MongoDB ObjectId) to publish resources to

Headers

idempotency-keystring

A header for idempotency purposes

Request body

sourceEnvironmentIdstring

Source environment ID to sync from. Defaults to the Development environment if not provided.

dryRunboolean

Perform a dry run without making actual changes

Example request

{
  "sourceEnvironmentId": "507f1f77bcf86cd799439011",
  "resources": [
    {
      "resourceId": "workflow-id-1"
    }
  ]
}

Response

OK