/api/post-v1-projects-projectuuid-scripts-preview-email-html-d847821b7f
Войти
Все методы ScriptScriptController
manifest 0.0.0.118 • 19 июн. 2026 г., 10:15
POST/v1/projects/{projectUuid}/scripts/preview/email-htmlAuthenticated

POST email html

Типизированный preview HTML-фрагмента email.

Operation ID
ScriptController.previewEmailHtml.POST.v1_projects__projectUuid__scripts_preview_email-html
Handler
cdp.gateway.cdp_gateway.company.features.script.controller.ScriptController#previewEmailHtml
Consumes
Produces
Параметры1
Request bodyScriptTypedPreviewGatewayRequestDTO
Response bodyResponseWrapper<Object>
Request map

Маршрут и контракт запроса

POST/v1/projects/{projectUuid}/scripts/preview/email-html
Path segments
v1projects{projectUuid}scriptspreviewemail-html
Security
isAuthenticated()
Parameters

Параметры

ИмяИсточникТипОбязательныйNullableSchema
projectUuid
pathStringДаНет
Request / Response

Тела запроса и ответа

Request bodyScriptTypedPreviewGatewayRequestDTO
Nullable: Нет
ScriptTypedPreviewGatewayRequestDTO
object • ScriptTypedPreviewGatewayRequestDTO
scriptUuid
String
optional • nullable
versionUuid
String
optional • nullable
inlineSourceCode
String
optional • nullable
mode
ScriptModeDTO
optional • not-null • schema=ScriptModeDTO
ScriptModeDTO
enum • ScriptModeDTO
MESSAGE_RENDERSUBJECT_RENDERPUSH_RENDERSMS_RENDERAUTOPUBLISH_RENDEREMAIL_VALUEEMAIL_HTML_FRAGMENTEMAIL_CHARTJOURNEY_CONDITIONJOURNEY_ACTIONSEGMENT_RULEREPORT_CALCULATIONREPORT_FILTERREPORT_CHARTREPORT_DATASETDASHBOARD_WIDGETWEBLAYER_RULEWEBLAYER_CONTENTCHAT_ROUTING_RULECHAT_AUTOREPLYTAG_MANAGER_RULESCRIPT_CONTEXT_SCHEMASCRIPT_USAGE
Поля не описаны в manifest.
returnType
ScriptReturnTypeDTO
optional • nullable • schema=ScriptReturnTypeDTO
ScriptReturnTypeDTO
enum • ScriptReturnTypeDTO
TEXTHTMLBOOLEANNUMBERJSONOBJECTLISTACTION_PLANVOIDCHART_SPECFILTER_PLANDATASETREPORT_DEFINITIONEMAIL_FRAGMENT
Поля не описаны в manifest.
contextJson
String
optional • not-null
callerEntityType
String
optional • nullable
callerEntityUuid
String
optional • nullable
correlationId
String
optional • nullable
Response bodyResponseWrapper<Object>
Nullable: Нет
ResponseWrapper<Object>
object • ResponseWrapper<Object>
success
boolean
required • not-null
data
T
optional • nullable
error
CdpErrorResponse
optional • nullable • schema=CdpErrorResponse
CdpErrorResponse
object • CdpErrorResponse
errorId
String
required • not-null
code
String
required • not-null
message
String
required • not-null
details
Map<String, Object>
optional • not-null
fieldErrors
List<CdpFieldError>
optional • not-null
timestamp
long
optional • not-null
meta
Map<String, Object>
optional • not-null