/api/post-v1-projects-projectuuid-scripts-7c27572de9
Войти
Все методы ScriptScriptController
manifest 0.0.0.118 • 1 июн. 2026 г., 13:50
POST/v1/projects/{projectUuid}/scriptsAuthenticated

POST scripts

Создаёт новую script-карточку в проекте.

Operation ID
ScriptController.create.POST.v1_projects__projectUuid__scripts
Handler
cdp.gateway.cdp_gateway.company.features.script.controller.ScriptController#create
Consumes
Produces
Параметры1
Request bodyScriptCreateGatewayRequestDTO
Response bodyResponseWrapper<Object>
Request map

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

POST/v1/projects/{projectUuid}/scripts
Path segments
v1projects{projectUuid}scripts
Security
isAuthenticated()
Parameters

Параметры

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

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

Request bodyScriptCreateGatewayRequestDTO
Nullable: Нет
ScriptCreateGatewayRequestDTO
object • ScriptCreateGatewayRequestDTO
companyUuid
String
optional • nullable
scriptKey
String
required • not-null
name
String
required • not-null
description
String
optional • nullable
mode
ScriptModeDTO
required • not-null • schema=ScriptModeDTO
ScriptModeDTO
enum • ScriptModeDTO
MESSAGE_RENDERSUBJECT_RENDERPUSH_RENDERSMS_RENDERAUTOPUBLISH_RENDERJOURNEY_CONDITIONJOURNEY_ACTIONSEGMENT_RULEREPORT_CALCULATIONDASHBOARD_WIDGETWEBLAYER_RULEWEBLAYER_CONTENTCHAT_ROUTING_RULECHAT_AUTOREPLYTAG_MANAGER_RULE
Поля не описаны в manifest.
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