Skip to main content
post/v2/environments/{targetEnvironmentId}/publish
Request example
Response
post/v2/environments/{targetEnvironmentId}/publish

Authorization

Authorizationstringheaderrequired#
API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".

Path parameters

targetEnvironmentIdstringrequired#
Target environment ID (MongoDB ObjectId) to publish resources to

Example:"6615943e7ace93b0540ae377"

Headers

idempotency-keystring#
A header for idempotency purposes

Body

application/json
sourceEnvironmentIdstring#
Source environment ID. Only the Development environment is currently supported; defaults to Development if omitted.

Example:"507f1f77bcf86cd799439011"

dryRunboolean#
Perform a dry run without making actual changes

Default: false

resourcesobject[]#
Array of specific resources to publish. If not provided, all resources will be published.

Responses

application/json
OK
resultsobject[]required#
Sync results by resource type
summaryobjectrequired#
Summary of the sync operation