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.
Authorization
Authorization<token>API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".
In: header
Request Body
application/jsonRequiredPublish request configuration
sourceEnvironmentIdstringSource environment ID to sync from. Defaults to the Development environment if not provided.
dryRunbooleanPerform a dry run without making actual changes
falseresourcesarray<object>Array of specific resources to publish. If not provided, all resources will be published.
Path Parameters
targetEnvironmentIdRequiredstringTarget environment ID (MongoDB ObjectId) to publish resources to
Header Parameters
idempotency-keystringA header for idempotency purposes
Response Body
OK
resultsRequiredarray<object>Sync results by resource type
@minItems 0
summaryRequiredobjectSummary of the sync operation
Compare resources between environments POST
Compares workflows and other resources between the source and target environments, returning detailed diff information including additions, modifications, and deletions.
Environment variable schema
Reference the Novu environment variable schema used in API requests and responses. Review fields, data types, and object structure for this resource.