Layouts

Duplicate a layout

Duplicates a layout by its unique identifier layoutId. This will create a new layout with the content of the original layout.

post/v2/layouts/{layoutId}/duplicate

Path parameters

layoutIdstring required

Headers

idempotency-keystring

A header for idempotency purposes

Request body

namestring required

Name of the layout

layoutIdstring

Identifier for the duplicated layout. When omitted, it is derived from the name.

isTranslationEnabledboolean

Enable or disable translations for this layout

Response

Created

_idstring required

Unique internal identifier of the layout

layoutIdstring required

Unique identifier for the layout

slugstring required

Slug of the layout

namestring required

Name of the layout

isDefaultboolean required

Whether the layout is the default layout

isTranslationEnabledboolean required

Whether the layout translations are enabled

updatedAtstring required

Last updated timestamp

createdAtstring required

Creation timestamp

origin'novu-cloud' | 'novu-cloud-v1' | 'external' required

Origin of the layout

type'REGULAR' | 'ECHO' | 'BRIDGE' required

Type of the layout

variablesobject nullable

The variables JSON Schema for the layout

Changes

Changed in 2 of the 12 revisions of this API.3

    • added the new CHAT_EDITOR_SELECT enum value to the controls/allOf[LayoutControlsDto]/uiSchema/allOf[UiSchema]/properties/additionalProperties/component response property for the response status 201

      response-property-enum-value-added

    • added the new TOOL enum value to the controls/allOf[LayoutControlsDto]/uiSchema/allOf[UiSchema]/group response property for the response status 201

      response-property-enum-value-added

    • added the new TOOL_BODY enum value to the controls/allOf[LayoutControlsDto]/uiSchema/allOf[UiSchema]/properties/additionalProperties/component response property for the response status 201

      response-property-enum-value-added